1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
2 |
<html> |
3 |
<head> |
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
5 |
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss"> |
6 |
<link rel="shortcut icon" href="favicon.ico"> |
7 |
<?php |
8 |
error_reporting(E_ALL); |
9 |
ini_set('display_errors', '1'); |
10 |
|
11 |
// $pageUrlName=basename ($_SERVER['HTTP_REFERER']); |
12 |
// if ( $pageUrlName == 'clonezilla-sysresccd.hellug.gr' ) $pageUrlName='index.html'; |
13 |
// |
14 |
// if (substr($pageUrlName,strlen($pageUrlName)-3,3) == "php") |
15 |
// $thePage = "http://clonezilla-sysresccd.hellug.gr/" . $pageUrlName; |
16 |
// else { |
17 |
// $thePage = getcwd() . '/' . basename ($_SERVER['HTTP_REFERER']); |
18 |
// $thePage = getcwd() . '/' . $pageUrlName; |
19 |
// } |
20 |
// |
21 |
// $file = file_get_contents ($thePage); |
22 |
|
23 |
$file = file_get_contents ('el-index.html'); |
24 |
|
25 |
$eReg="<title>[^<]*</title>"; |
26 |
// $reg=array("0","0","0"); |
27 |
$reg=array(); |
28 |
ereg($eReg,$file,$reg); |
29 |
echo "$reg[0]"; |
30 |
|
31 |
$eReg="Copyright: .*@.*gr></a>"; |
32 |
if(ereg($eReg,$file,$reg)){ |
33 |
$copr="$reg[0]"; |
34 |
}else{ |
35 |
$eReg="Πνευματικά δικαιώματα: .*@.*gr></a>"; |
36 |
ereg($eReg,$file,$reg); |
37 |
$copr="$reg[0]"; |
38 |
} |
39 |
$eReg="<font size=\"-1\">[^<]*: [0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]</font>"; |
40 |
ereg($eReg,$file,$reg); |
41 |
$upd="$reg[0]"; |
42 |
?> |
43 |
<style type="text/css"> |
44 |
body { background : url(null) fixed no-repeat; background-color: White; } |
45 |
H1,H2,H3{color: #990000; text-align: left;} |
46 |
H2{margin-top: 2em;} |
47 |
H3{margin-top: 1.5em} |
48 |
li{margin-top: 1em;} |
49 |
a{text-decoration: none;} |
50 |
a:hover{text-decoration: underline;} |
51 |
p,td,table,tr,li{margin-left: 15pt;} |
52 |
.nav{margin-left: 0pt;} |
53 |
.newcode{font-family : "Courier New", Courier, monospace, sans-serif, serif; font-weight: bold; background-color: #F2F2F2; border: solid 1px #DEDEDE;padding: 20pt;} |
54 |
.note{margin-top: 30pt; margin-bottom: 30pt; text-align: center; background-color: #FFEFEF; border: solid 1px; border-color: #FFD5D5;} |
55 |
hr{color: Black; background-color: Black; height: 1px; border: none;} |
56 |
</style> |
57 |
<META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd"> |
58 |
</head> |
59 |
<body style="margin-left: 40pt; margin-right: 40pt;"> |
60 |
|
61 |
<?php |
62 |
$eReg=".*<body[^>]*>"; |
63 |
$file = ereg_replace($eReg,"",$file); |
64 |
$eReg="<.body>.*"; |
65 |
$file = ereg_replace($eReg,"",$file); |
66 |
|
67 |
// find starting headers |
68 |
$eReg=".*<hr style=\"margin: 0;\"><!--end-site-only-->"; |
69 |
ereg($eReg,$file,$reg); |
70 |
$startPart=str_replace("index.html","onepage.php","$reg[0]"); |
71 |
|
72 |
$file = ereg_replace($eReg,"",$file); |
73 |
|
74 |
// echo "$startPart"; |
75 |
|
76 |
// find ending headers |
77 |
$eReg="<!--site-only--><hr style=\"margin: 0;\">.*"; |
78 |
ereg($eReg,$file,$reg); |
79 |
$endPart=str_replace("index.html","onepage.php","$reg[0]"); |
80 |
$file = ereg_replace($eReg,"",$file); |
81 |
|
82 |
$eReg="\n<a href=[^>]*>"; |
83 |
$count=ereg($eReg,$file,$reg); |
84 |
// echo "$reg[0]"; |
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
// echo everything |
91 |
echo "$startPart"; |
92 |
echo "\n"; |
93 |
echo "<p>count = \"$count\"</p>"; |
94 |
echo "\n"; |
95 |
|
96 |
|
97 |
// echo "$reg[0]"; |
98 |
// echo "\n"; |
99 |
// echo "\n"; |
100 |
// echo "\n"; |
101 |
// echo "$file"; |
102 |
|
103 |
echo "\n"; |
104 |
echo "$endPart"; |
105 |
?> |
106 |
</body> |
107 |
</html> |