-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.php
More file actions
130 lines (111 loc) · 4.49 KB
/
Copy pathindex.php
File metadata and controls
130 lines (111 loc) · 4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
/*
* PROJECT: ReactOS Website
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Easily download prebuilt ReactOS Revisions
* COPYRIGHT: Copyright 2007-2020 Colin Finck (colin@reactos.org)
* Copyright 2012-2013 Aleksey Bragin (aleksey@reactos.org)
*/
require_once("config.inc.php");
require_once("languages.inc.php");
require_once(ROOT_PATH . "rosweb/gitinfo.php");
require_once(ROOT_PATH . "rosweb/rosweb.php");
//$rw = new RosWeb($supported_languages);
$rw = new RosWeb();
$lang = $rw->getLanguage();
require_once(ROOT_PATH . "rosweb/lang/$lang.inc.php");
require_once("lang/$lang.inc.php");
try
{
$gi = new GitInfo();
$revisions = $gi->getLatestRevisions(2);
$rev = $gi->getShortHash($revisions[0]);
$rev_before = $gi->getShortHash($revisions[1]);
}
catch (Exception $e)
{
die($e->getFile() . ":" . $e->getLine() . " - " . $e->getMessage());
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $getbuilds_langres["title"]; ?></title>
<?php $rw->printHead(); ?>
<link rel="stylesheet" type="text/css" href="getbuilds.css" />
<script type="text/javascript">
var ISO_DOWNLOAD_URL = '<?php echo $ISO_DOWNLOAD_URL; ?>';
var MAX_FILES_PER_PAGE = <?php echo $MAX_FILES_PER_PAGE; ?>;
</script>
<script type="text/javascript" src="/rosweb/lang/<?php echo $lang; ?>.js"></script>
<script type="text/javascript" src="/rosweb/js/ajax.js"></script>
<script type="text/javascript" src="lang/<?php echo $lang; ?>.js"></script>
<script type="text/javascript" src="getbuilds.js"></script>
</head>
<body onload="Load()">
<?php $rw->printHeader(); ?>
<div class="row" id="heading-breadcrumbs">
<div class="col-md-offset-1 col-md-10">
<div class="breadcrumbs">
<a href="/">home</a> / <a href="/getbuilds">getbuilds</a>
</div>
<h1><?php echo $getbuilds_langres["title"]; ?></h1>
</div>
</div>
<section id="content" class="row">
<div class="col-md-10 col-md-offset-1">
<p class="lead center"><?php echo $getbuilds_langres["intro"]; ?></p>
<hr>
<div class="form-horizontal">
<div class="form-group">
<label for="revision" class="col-sm-2 control-label"><?php echo $shared_langres["revision"]; ?></label>
<div class="col-sm-10 form-inline">
<button class="btn btn-default" id="previous_button" disabled="disabled"><i class="fa fa-chevron-left"></i></button>
<input class="form-control" type="text" id="revision" value="<?php echo $rev; ?>" size="50">
<button class="btn btn-default" id="next_button" disabled="disabled"><i class="fa fa-chevron-right"></i></button><br>
<?php printf($shared_langres["rangeinfo"], $rev, $rev_before, $rev); ?>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $getbuilds_langres["imagetypes"]; ?></label>
<div class="col-sm-3">
<?php
foreach ($PREFIXES as $k => $v)
printf('<div class="checkbox"><label><input type="checkbox" name="prefixes" id="%s" checked="checked"> %s</label></div>', $k, $v);
?>
</div>
<div class="col-sm-3">
<?php
foreach ($SUFFIXES as $k => $v)
printf('<div class="checkbox"><label><input type="checkbox" name="suffixes" id="%s" %s> %s</label></div>', $k, $v[1] == TRUE ? 'checked="checked"' : '', $v[0]);
?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-1">
<button class="btn btn-primary" onclick="SearchButton_OnClick()"><i class="fa fa-search"></i> <?php echo $shared_langres["search_button"]; ?></button>
<i class="fa fa-cog fa-spin" id="ajax_loading"></i><br><br>
</div>
<div class="col-md-6">
<a class="btn btn-default" href="<?php echo $ISO_DOWNLOAD_URL; ?>" target="_blank"><?php echo $getbuilds_langres["browsebuilds"]; ?></a>
<a class="btn btn-default" href="<?php echo $GITHUB_URL; ?>" target="_blank"><?php echo $getbuilds_langres["browsegithub"]; ?></a>
</div>
</div>
<div id="filetable">
<!-- Filled by the JavaScript -->
</div>
<hr>
<h3><?php echo $getbuilds_langres["legend"]; ?></h3>
<ul class="list-unstyled">
<li><strong>Boot Media</strong> - <?php echo $getbuilds_langres["build_bootcd"]; ?></li>
<li><strong>Live CD (deprecated)</strong> - <?php echo $getbuilds_langres["build_livecd"]; ?></li>
<li><strong>Debug</strong> - <?php echo $getbuilds_langres["build_dbg"]; ?></li>
<li><strong>Release</strong> - <?php echo $getbuilds_langres["build_rel"]; ?></li>
</ul>
</div>
</section>
<?php $rw->printFooter(); ?>
</body>
</html>