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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 121 - (hide annotations)
Thu Sep 16 11:30:36 2010 UTC (11 years, 1 month ago) by sng
File MIME type: text/html
File size: 4135 byte(s)
fixing links in 404.html
1 sng 28 <?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 sng 56 <tr valign=\"top\"><td><IMG src=\"images/important.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
47 sng 28 <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 sng 56 <tr valign=\"top\"><td><IMG src=\"images/cdrom.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
60 sng 28 <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 sng 56 $lastPartOfText="<tr valign=\"top\"><td><IMG src=\"images/important.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
73 sng 28 <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 sng 121 redirection, please click <a href=\"download.html\">here</a>";
85 sng 28 }
86     }else if(substr($onlyURL,strlen($onlyURL)-7,7) == ".tar.gz"){
87     if(substr($onlyURL,1,28) == "create-clonezilla-sysresccd-"){
88     $lastPartOfText="
89 sng 56 <tr valign=\"top\"><td><IMG src=\"images/tgz.png\" width=\"64\" height=\"64\" align=\"right\" border=\"0\"></td>
90 sng 28 <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