/[clonezilla-sysresccd]/trunk/www/working/.404.html
ViewVC logotype

Contents of /trunk/www/working/.404.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 45 - (show annotations)
Wed May 19 15:03:43 2010 UTC (13 years, 10 months ago) by sng
File MIME type: text/html
File size: 4113 byte(s)
tidying up...
1 <?php
2
3 function curPageName() {
4 return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
5 }
6
7
8 error_reporting(E_ALL);
9 ini_set('display_errors', '0');
10
11 $onlyURL=$_SERVER['REQUEST_URI'];
12
13
14 $Text="<meta http-equiv=\"REFRESH\" content=\"20;url=";
15
16 $myRedirURL="index.html";
17
18
19 if (substr($onlyURL,strlen($onlyURL)-4,4) == ".iso"){
20 if (file_exists("clonezilla-sysresccd-full-mod-myVersion.iso"))
21 $myRedirURL="clonezilla-sysresccd-full-mod-myVersion.iso";
22 else
23 $myRedirURL="index.html#download";
24 }else if(substr($onlyURL,strlen($onlyURL)-7,7) == ".tar.gz"){
25 if(substr($onlyURL,1,28) == "create-clonezilla-sysresccd-")
26 $myRedirURL="create-clonezilla-sysresccd-myVersion.tar.gz";
27 }
28
29 echo $Text . $myRedirURL . "\">";
30 ?>
31 <!--seperator-->
32 <table border="0" align="center">
33 <tr><td>&nbsp;</td></tr>
34 <tr><td>&nbsp;</td></tr>
35 <tr><td>&nbsp;</td></tr>
36 <tr><td>&nbsp;</td></tr>
37 <tr><td>&nbsp;</td></tr>
38 <tr><td>&nbsp;</td></tr>
39 <tr valign="top"><td>
40
41 <?php
42
43 $onlyURL=$_SERVER['REQUEST_URI'];
44
45 $lastPartOfText="
46 <tr valign=\"top\"><td><IMG src=\"important.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
47 <td>
48 The page or file you have requested<br>
49 does not exist (error code 404)!!!<br><br>
50 This error usually occurs due to outdated links<br>
51 found in blogs and aggregators<br><br>
52 You will be redirected in 20 seconds<br>
53 If your browser does not support automatic<br>
54 redirection, please click <a href=\"index.html\">here</a>";
55
56 if (substr($onlyURL,strlen($onlyURL)-4,4) == ".iso"){
57 if (file_exists("clonezilla-sysresccd-full-mod-myVersion.iso")) {
58 $lastPartOfText="
59 <tr valign=\"top\"><td><IMG src=\"cdrom.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
60 <td>
61 The ISO file you have requested is part<br>
62 of a previous version of <b>Clonezilla-SysRescCD</b><br>
63 and does not exist (error code 404)!!!<br><br>
64 This error usually occurs due to outdated links<br>
65 found in blogs and aggregators<br><br>
66 You will be redirected in 20 seconds<br>
67 to the new <b>Clonezilla-SysRescCD</b> ISO file<br>
68 If your browser does not support automatic<br>
69 redirection, please click <a href=\"clonezilla-sysresccd-full-mod-myVersion.iso\">here</a><br><br>
70 You may also visit the project's <a href=\"index.html\">index page</a>";
71 }else{
72 $lastPartOfText="<tr valign=\"top\"><td><IMG src=\"important.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
73 <td>
74 The ISO file you have requested is part<br>
75 of a previous version of <b>Clonezilla-SysRescCD</b><br>
76 and does not exist (error code 404)!!!<br>
77 Furthermore, the direct download of the current<br>
78 ISO file is not available yet<br><br>
79 You should download it using the torrent<br>
80 file present on this site<br><br>
81 You will be redirected in 20 seconds<br>
82 to the download section of the site<br><br>
83 If your browser does not support automatic<br>
84 redirection, please click <a href=\"intro.html#download\">here</a>";
85 }
86 }else if(substr($onlyURL,strlen($onlyURL)-7,7) == ".tar.gz"){
87 if(substr($onlyURL,1,28) == "create-clonezilla-sysresccd-"){
88 $lastPartOfText="
89 <tr valign=\"top\"><td><IMG src=\"tgz.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
90 <td>
91 The archive file you have requested is part<br>
92 of a previous version of <b>Clonezilla-SysRescCD</b><br>
93 and does not exist (error code 404)!!!<br><br>
94 This error usually occurs due to outdated links<br>
95 found in blogs and aggregators<br><br>
96 You will be redirected in 20 seconds<br>
97 to the new <b>Clonezilla-SysRescCD</b> archive<br>
98 If your browser does not support automatic<br>
99 redirection, please click <a href=\"create-clonezilla-sysresccd-myVersion.tar.gz\">here</a><br><br>
100 You may also visit the project's <a href=\"index.html\">index page</a>";
101 }
102 }
103 echo $lastPartOfText;
104 ?>
105
106 </td></tr>
107 <tr><td>&nbsp;</td></tr>
108 <tr><td>&nbsp;</td></tr>
109 <tr><td>&nbsp;</td></tr>
110 <tr><td>&nbsp;</td></tr>
111 <tr><td>&nbsp;</td></tr>
112 <tr><td>&nbsp;</td></tr></table>
113 </div>

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26