3 include ('config.php');
5 function dm_usort_cmp ($a, $b) {
6 if ($a == $b) return 0;
7 return ($a > $b) ?
-1 : 1;
10 function printHeader()
13 <!doctype html
public "-//W3C//DTD HTML 4.0 Transitional//EN">
16 <title
>ReactOS Revison ISOs
</title
>
17 <meta name
="generator" content
="Editpad">
18 <meta name
="keywords" content
="OS, ReactOS, operating system">
19 <meta name
="author" content
="ReactOS Project (ros-dev@reactos.com)">
24 background
-color
: #88aadd;
25 border
-left
: 1px solid
#f0f0f0;
26 border
-right
: 1px solid
#000000;
27 border
-top
: 1px solid
#f0f0f0;
28 border
-bottom
: 1px solid
#000000;
32 <body bgcolor
="#88aadd">
33 <form method
="post" action
="">
40 <table border
="0" class="box" cellpadding
="5">
48 <table border
="0" cellpadding
="0" cellspacing
="0">
54 <select name
="branch" tabindex
="1">
60 while (false !== ($entry = $d->read())) {
61 if ((strcasecmp($entry, ".") != 0) && (strcasecmp($entry, "..") != 0) && is_dir(ISO_PATH
. "\\" . $entry)=="dir") {
62 $dirlist[$i++
] = $entry;
67 if (is_array($dirlist)) {
68 usort($dirlist, "dm_usort_cmp");
70 while (list($key, $val) = each($dirlist)) {
72 if ($branch == $_POST["branch"] ||
(!isset($_POST["branch"]) && $branch == "trunk"))
73 $selected = " selected";
76 echo "<option$selected>$branch</option>";
91 $revision = $_POST["revision"];
92 echo "<input type=\"text\" name=\"revision\" size=\"10\" maxlength=\"10\" tabindex=\"2\" value=\"" . $revision . "\"></input>";
99 <input type
="submit" name
="getiso" value
="Download" tabindex
="3" style
="border: 1px solid #000000"></input
>
114 function printFooter()
120 var revision
= document
.getElementById('revision');
121 if (revision
) revision
.focus();
130 $branch = $_POST["branch"];
131 $revision = $_POST["revision"];
133 $filename = "ReactOS-" . $branch . "-r" . $revision . ".iso";
134 if (file_exists(ISO_PATH
. $branch . "\\" . $filename))
136 $location = ISO_BASE_URL
. $branch . "/" . $filename;
137 header("Location: $location");
144 echo "<br><b>No ISO exist for branch '" . $branch . "' and revision " . $revision . ".</b><br><br>";
149 if (!empty($_POST["getiso"]) && !empty($_POST["branch"]) && !empty($_POST["revision"]) && is_numeric($_POST["revision"]))