1 | 21 | unreal | <?php $verze = "1.9"; ?> |
2 | | | |
3 | 1 | unreal | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
4 | | | <html> |
5 | 5 | unreal | <head> |
6 | 21 | unreal | <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v <?php echo $verze; ?> (c) Jirka Klír 2013 for CZFree.net ;-) # --> |
7 | 5 | unreal | <title>CZF4BFU INFO</title> |
8 | 19 | unreal | <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> |
9 | | | <meta http-equiv="Content-language" content="cs"> |
10 | 5 | unreal | <meta name="Author" content="Unreal][, http://www.jklir.net"> |
11 | | | <link href="styl.css" rel="stylesheet" type="text/css"> |
12 | | | </head> |
13 | 12 | unreal | <body> |
14 | 1 | unreal | |
15 | 5 | unreal | <h1>CZF4BFU INFORMATION</h1> |
16 | 1 | unreal | |
17 | 5 | unreal | <div class="sizer"></div> |
18 | 12 | unreal | |
19 | | | <div class="info"> |
20 | | | <a class="title"><strong>Information</strong></a> |
21 | | | <div class="pad"> |
22 | 1 | unreal | <table> |
23 | 21 | unreal | <td>Version:</td><td> <?php echo $verze; ?></td></tr> |
24 | 12 | unreal | <td>Author:</td><td> Unreal][</td></tr> |
25 | | | <td>Licence:</td><td> GNU/GPL </td></tr> |
26 | | | <td>Modification:</td><td> --- </td></tr> |
27 | | | </table></div></div> |
28 | 1 | unreal | |
29 | 12 | unreal | <div class="sizer"></div> |
30 | | | |
31 | | | <div class="info"> |
32 | | | <a class="title"><strong>DEU Files</strong></a> |
33 | | | <div class="pad"> |
34 | 1 | unreal | <table> |
35 | | | <?php |
36 | 12 | unreal | if ($dir = @opendir(".")) { |
37 | | | while (($file = readdir($dir)) !== false) |
38 | | | if (preg_match('/^(global|local)-.*.txt$/',$file)) |
39 | 21 | unreal | echo " <tr><td>".$file."</td><td> - poslední změna: ".date("d.m.Y h:i:s", (filemtime($file)))."</td></tr>\n"; |
40 | 12 | unreal | closedir($dir); |
41 | | | } |
42 | 1 | unreal | ?> |
43 | 12 | unreal | </table></div></div> |
44 | 1 | unreal | |
45 | 12 | unreal | <div class="sizer"></div> |
46 | 1 | unreal | |
47 | 12 | unreal | <div class="info"> |
48 | | | <a class="title"><strong>Server list info</strong></a> |
49 | | | <div class="pad"> |
50 | 1 | unreal | <?php |
51 | | | |
52 | | | $file = "servers.list"; |
53 | | | $fp = Fopen($file, "r"); |
54 | | | $dat = Fread($fp, filesize($file)); |
55 | | | $data = explode("\n", $dat); |
56 | | | $soucet = (count($data))-2; |
57 | | | |
58 | 21 | unreal | echo "soubor servers.list - poslední změna: ".date("d.m.Y h:i:s", (filemtime("servers.list")))."<br>\n"; |
59 | | | echo "soubor servers.list - obsahuje ".($soucet+1)." serverů\n"; |
60 | 1 | unreal | |
61 | 12 | unreal | echo "</div></div><div class=\"info\">"; |
62 | | | echo "<a class=\"title\"><strong>servers.list</strong></a>\n<div class=\"pad\">\n"; |
63 | 1 | unreal | |
64 | | | for ($j=0; $j<=$soucet; $j++) { |
65 | 12 | unreal | echo $data[$j]."<br>\n"; |
66 | 1 | unreal | } |
67 | | | |
68 | | | ?> |
69 | 12 | unreal | </div></div> |
70 | 1 | unreal | |
71 | 12 | unreal | <div class="sizer"></div> |
72 | | | |
73 | | | <div class="info"> |
74 | | | <a class="title"><strong>Icons</strong></a> |
75 | | | <div style="border: 1px solid silver;"> |
76 | 5 | unreal | <a class="title">.</a> |
77 | 1 | unreal | <?php |
78 | 12 | unreal | $path = "ikony"; |
79 | 21 | unreal | $adresar = Dir("$path"); |
80 | 12 | unreal | while ($polozka=$adresar->Read()) { |
81 | | | $info = substr($polozka, 0, (strpos($polozka, "."))); |
82 | | | if (eregi(".png", $polozka)) { |
83 | | | echo "<div class=\"icon\" style=\"height: 58px;_height: 63px;\"><img src=\"".$path."/".$polozka."\" alt=\"".substr($polozka,0,-4)."\" title=\"".substr($polozka,0,-4)."\" width=\"32\"><br>".$info."</div>"; |
84 | | | } |
85 | | | } |
86 | | | $adresar->Close(); |
87 | 1 | unreal | |
88 | 12 | unreal | $patha = "ikony"; |
89 | 21 | unreal | $adresara = Dir("$patha"); |
90 | 12 | unreal | while ($polozkaa=$adresara->Read()) { |
91 | | | if ((((is_dir($patha."/".$polozkaa)) and ($polozkaa!=".")) and ($polozkaa!="..")) and ($polozkaa!=".svn")) { |
92 | | | echo "<div class=\"sizer\"></div>\n<a class=\"nomargin title\">".$polozkaa."/*</a>\n"; |
93 | | | $adresar2 = Dir($patha."/".$polozkaa); |
94 | | | while ($polozka2=$adresar2->Read()) { |
95 | | | $info2 = substr($polozka2, 0, (strpos($polozka2, "."))); |
96 | | | if (eregi(".png", $polozka2)) { |
97 | | | echo "<div class=\"icon\" style=\"height: 58px;_height: 63px;\"><img src=\"".$patha."/".$polozkaa."/".$polozka2."\" alt=\"".$polozkaa."/".substr($polozka2,0,-4)."\" title=\"".$polozkaa."/".substr($polozka2,0,-4)."\" width=\"32\"><br>".$info2."</div>"; |
98 | | | } |
99 | | | } |
100 | | | } |
101 | | | } |
102 | | | $adresara->Close(); |
103 | | | $adresar2->Close(); |
104 | 1 | unreal | ?> |
105 | 12 | unreal | <div class="sizer"></div></div></div></div> |
106 | | | |
107 | 21 | unreal | <div id="copy">czf4bfu v<?php echo $verze; ?> - made <a href="http://www.jklir.net">Unreal][</a> </div> |
108 | 12 | unreal | |
109 | 1 | unreal | </body> |
110 | | | </html> |