Skip to content

Commit 1b68bf9

Browse files
committed
Changed the download page with the new naming and all supported platforms
1 parent 24bb482 commit 1b68bf9

File tree

1 file changed

+45
-3
lines changed

1 file changed

+45
-3
lines changed

Eclipse update site/WebContent/download.php

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,43 @@
1616
You still need to configure (step 4 of the installation instructions)
1717

1818

19+
<h2>Linux 64 bit</h2><br>
20+
<?php
21+
$dir = "http://eclipse.baeyens.it/download/product";
22+
$dh = opendir("download/product");
23+
while ($f = readdir($dh)) {
24+
$fullpath = $dir."/".$f;
25+
if ($f{0} == "." || is_dir($fullpath)) continue;
26+
if (substr($f,0,18)=="linux64.")
27+
{
28+
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
29+
}
30+
}
31+
closedir($dh);
32+
?>
33+
1934
<h2>Linux 32 bit</h2><br>
2035
<?php
2136
$dir = "http://eclipse.baeyens.it/download/product";
2237
$dh = opendir("download/product");
2338
while ($f = readdir($dh)) {
2439
$fullpath = $dir."/".$f;
2540
if ($f{0} == "." || is_dir($fullpath)) continue;
26-
if (substr($f,0,18)=="linux.gtk.x86.opt.")
41+
if (substr($f,0,18)=="linux32.")
42+
{
43+
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
44+
}
45+
}
46+
closedir($dh);
47+
?>
48+
<h2>win 64 bit</h2>
49+
<?php
50+
$dir = "http://eclipse.baeyens.it/download/product";
51+
$dh = opendir("download/product");
52+
while ($f = readdir($dh)) {
53+
$fullpath = $dir."/".$f;
54+
if ($f{0} == "." || is_dir($fullpath)) continue;
55+
if (substr($f,0,10)=="win64.")
2756
{
2857
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
2958
}
@@ -37,14 +66,27 @@
3766
while ($f = readdir($dh)) {
3867
$fullpath = $dir."/".$f;
3968
if ($f{0} == "." || is_dir($fullpath)) continue;
40-
if (substr($f,0,10)=="win32.x86.")
69+
if (substr($f,0,10)=="win32")
70+
{
71+
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
72+
}
73+
}
74+
closedir($dh);
75+
?>
76+
<h2>MAC 64 bit</h2>
77+
<?php
78+
$dir = "http://eclipse.baeyens.it/download/product";
79+
$dh = opendir("download/product");
80+
while ($f = readdir($dh)) {
81+
$fullpath = $dir."/".$f;
82+
if ($f{0} == "." || is_dir($fullpath)) continue;
83+
if (substr($f,0,10)=="mac64")
4184
{
4285
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
4386
}
4487
}
4588
closedir($dh);
4689
?>
47-
4890
<br>
4991
</body>
5092
</html>

0 commit comments

Comments
 (0)