david_williams | 702bf68 | 2008-06-25 04:53:00 +0000 | [diff] [blame^] | 1 | <html> |
| 2 | <head> |
| 3 | <title>Eclipse WTP Download Click Through</title> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 5 | <link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css"> |
| 6 | <?php |
| 7 | $parts = explode("-", $dropFile); |
| 8 | $clickFile = "clickThroughs/"; |
| 9 | for ($i =0; $i<count($parts); $i++) { |
| 10 | if ($i != 2) { |
| 11 | $clickFile = $clickFile.$parts[$i]; |
| 12 | if ($i < count($parts) - 1) { |
| 13 | $clickFile = $clickFile."-"; |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 | $clickFile = $clickFile.".txt"; |
| 18 | |
| 19 | if (file_exists($clickFile)) { |
| 20 | $fileHandle = fopen($clickFile, "r"); |
| 21 | while (!feof($fileHandle)) { |
| 22 | $aLine = fgets($fileHandle, 4096); |
| 23 | $result = $result.$aLine; |
| 24 | } |
| 25 | fclose($fileHandle); |
| 26 | } else { |
| 27 | echo '<META HTTP-EQUIV="Refresh" CONTENT="0;URL='.$dropFile.'">'; |
| 28 | echo '<b><font size "+4">Downloading: '.$dropFile.'</font></b>'; |
| 29 | echo '<BR>'; |
| 30 | echo '<BR>'; |
| 31 | echo 'If your download does not begin automatically click <a href="'.$dropFile.'">here</a>.'; |
| 32 | } |
| 33 | ?> |
| 34 | </head> |
| 35 | |
| 36 | <body bgcolor="#FFFFFF" text="#000000"> |
| 37 | <?php |
| 38 | if (file_exists($clickFile)) { |
| 39 | echo '<p><b><font size="+4">Important Notes<BR>'; |
| 40 | echo $dropFile; |
| 41 | echo '</font></b></font></p> |
| 42 | <p>It is very important to read the following notes in order to run this version |
| 43 | of Eclipse. Once you have read the notes you can click on the Download link |
| 44 | to download the drop.</p> |
| 45 | '; |
| 46 | echo '<textarea name="textfield" cols="80" rows="20" wrap="PHYSICAL">'.$result; |
| 47 | echo '</textarea>'; |
| 48 | echo '<BR>'; |
| 49 | echo '<BR>'; |
| 50 | echo '<a href="'.$dropFile.'">Download</a>'; |
| 51 | } |
| 52 | ?> |
| 53 | </body> |
| 54 | </html> |