Skip to content

Commit 9c28e83

Browse files
committed
Improved the download page and made the news less screamy
1 parent 760fefa commit 9c28e83

File tree

3 files changed

+49
-69
lines changed

3 files changed

+49
-69
lines changed

Eclipse update site/WebContent/download.php

Lines changed: 38 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -12,80 +12,59 @@
1212
</div>
1313
<h1>here you can find product versions build by the build machine.</h1>
1414
product versions can be run without having to install eclipse as the product versions contain eclipse.<br>
15-
Yust download the correct version for your os unpack and start eclipse.
16-
You still need to configure (step 4 of the installation instructions)
15+
Yust download the correct version for your os unpack and start eclipse.<br>
16+
You still need to configure (step 4 of the installation instructions)<br>
17+
<br>
18+
Note1: All versions before 213-11-29 are only tarred even though they are called tar.gz. <br>
19+
Note2: All this is still pre beta (but working) so there are still some things to do (like spash screen, icons ..). <br>
20+
<?php
1721

1822

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,8)=="linux64.")
27-
{
28-
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
29-
}
23+
function ListFileNames( $prefix)
24+
{
25+
26+
$location="download/product";
27+
$dir = opendir($location);
28+
while(false != ($file = readdir($dir)))
29+
{
30+
if(($file != ".") and ($file != "..") and ($file != "index.php"))
31+
{
32+
$files[] = $file; // put in array.
33+
}
34+
}
35+
rsort($files); // sort.
36+
closedir($dir);
37+
38+
foreach($files as $file)
39+
{
40+
$fullpath = $location."/".$file;
41+
if (substr($file,0,strlen($prefix))==$prefix)
42+
echo "<a href=\"$fullpath\" target=\"_blank\">$file</a>\n<br>";
43+
}
3044
}
31-
closedir($dh);
45+
?>
46+
<h2>Linux 64 bit</h2>
47+
<?php
48+
ListFileNames("linux64.");
3249
?>
3350

34-
<h2>Linux 32 bit</h2><br>
51+
<h2>Linux 32 bit</h2>
3552
<?php
36-
$dir = "http://eclipse.baeyens.it/download/product";
37-
$dh = opendir("download/product");
38-
while ($f = readdir($dh)) {
39-
$fullpath = $dir."/".$f;
40-
if ($f{0} == "." || is_dir($fullpath)) continue;
41-
if (substr($f,0,8)=="linux32.")
42-
{
43-
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
44-
}
45-
}
46-
closedir($dh);
53+
ListFileNames("linux32.");
4754
?>
55+
4856
<h2>win 64 bit</h2>
4957
<?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,6)=="win64.")
56-
{
57-
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
58-
}
59-
}
60-
closedir($dh);
58+
ListFileNames("win64.");
6159
?>
6260
<h2>win 32 bit</h2>
6361
<?php
64-
$dir = "http://eclipse.baeyens.it/download/product";
65-
$dh = opendir("download/product");
66-
while ($f = readdir($dh)) {
67-
$fullpath = $dir."/".$f;
68-
if ($f{0} == "." || is_dir($fullpath)) continue;
69-
if (substr($f,0,6)=="win32.")
70-
{
71-
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
72-
}
73-
}
74-
closedir($dh);
62+
ListFileNames("win32.");
7563
?>
64+
7665
<h2>Mac 64 bit</h2>
7766
<?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,6)=="mac64.")
84-
{
85-
echo "<a href=\"$fullpath\" target=\"_blank\">$f</a>\n<br>";
86-
}
87-
}
88-
closedir($dh);
67+
ListFileNames("mac64.");
8968
?>
9069
<br>
9170
</body>

Eclipse update site/WebContent/installAdvice.shtml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<div id="header">
1010
<a href="http://www.eclipse.org/"><img src="http://download.eclipse.org/eclipse/eclipse.org-common/stylesheets/header_logo.gif" width="163" height="68" border="0" alt="Eclipse Logo" class="logo" /></a>
1111
<SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="news.js"></SCRIPT>
12+
1213
</div>
1314

1415
<h1>Which version to install?</h1>
@@ -19,18 +20,18 @@
1920
<li>are willing to do some alfa testing</li>
2021
<li>want to use Arduino IDE 1.5.2 beta</li>
2122
</ul>
22-
I can strongly advice to download the "brand new" product.
23-
These downloads simply need to be extracted (and sometimes you also need to make the eclipse program executable) and you can immediatly configure (read show where your arduino IDE is installed) the plugin and play.
24-
You can find the download page <a href="/eclipse/download.php">here</a>.
25-
26-
For the others:
27-
There are 3 main components in the deployment of the plugin.
23+
I can strongly advice to download the "brand new" product.<br>
24+
These downloads simply need to be extracted (and sometimes you also need to make the eclipse program executable) and you can immediatly configure (read show where your arduino IDE is installed) the plugin and play.<br>
25+
You can find the download page <a href="download.php">here</a>.<br>
26+
<br>
27+
For the others:<br>
28+
There are 3 main components in the deployment of the plugin.<br>
2829
<ul>
2930
<li>The Arduino IDE(s) you want to use</li>
3031
<li>The Eclipse version you want to use</li>
3132
<li>The Plugin version you want to use</li>
3233
</ul>
33-
The Arduino IDE has 3 major breakpoints.
34+
The Arduino IDE has 3 major breakpoints.<br>
3435
<ul><li>before 1.5</li>
3536
<li>between 1.5.0 and 1.5.2 (included)</li>
3637
<li>after 1.5.2</li>
@@ -42,8 +43,8 @@
4243

4344
V1 of the plugin runs in juno and indigo. I don't know wether kepler works.<br>
4445
V2 of the plugin runs in juno only. (kepler does not work)<br>
45-
46-
If we summarize this in a table we get:
46+
<br>
47+
If we summarize this in a table we get:<br>
4748
<table border="1">
4849
<tr><th>Arduino</th><th>plugin</th><th>eclipse</th></tr>
4950
<tr><td>before 1.5 beta</td><td>V1</td><td>juno or indigo</td></tr>

Eclipse update site/WebContent/news.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)