1 | 1 | unreal | <?php |
2 | 3 | unreal | // Nastavime, aby se nam zbytecne nelogovaly chyby |
3 | 4 | unreal | ini_set('log_errors',false); |
4 | 3 | unreal | |
5 | 1 | unreal | if ($dir = @opendir(".")) { |
6 | | | echo("<!--CZF4BFU "); |
7 | | | while (($file = readdir($dir)) !== false) |
8 | | | if (preg_match('/^(global|local)-.*.txt/',$file)) |
9 | | | echo $file." "; |
10 | | | echo("-->"); |
11 | | | closedir($dir); |
12 | | | } |
13 | | | ?> |
14 | | | |
15 | | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
16 | | | <html> |
17 | | | <head> |
18 | | | <!-- |
19 | | | |
20 | | | ##################################################### |
21 | | | # # # |
22 | | | # This script built Unreal][ # http://www.jklir.net # |
23 | | | # # # |
24 | | | ##################################################### |
25 | | | # # |
26 | | | # Licence: GNU/GPL # |
27 | | | # Some Icons was downloaded from the internet and # |
28 | | | # have copyrights. Please use it with GNU/GPL # |
29 | | | # licence and in non-comercial projects. # |
30 | | | # # |
31 | | | ##################################################### |
32 | | | # # |
33 | | | # v 1.3 (c) Jirka Klír 2008 for CZFree.net ;-) # |
34 | | | # # |
35 | | | ##################################################### |
36 | | | |
37 | | | --> |
38 | | | <title>CZF4BFU</title> |
39 | | | <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" /> |
40 | | | <meta http-equiv="Content-language" content="cz" /> |
41 | | | <meta name="author" content="Unreal][, http://www.jklir.net"> |
42 | | | <link href="styl.css" rel="stylesheet" type="text/css"> |
43 | | | </head> |
44 | | | <body style="background: #D4D0C8"> |
45 | | | |
46 | | | <H1>Rozcestník CZFree.Net</H1> |
47 | | | |
48 | | | <?php |
49 | | | $group = $_GET["group"]; |
50 | | | if($group!=2) { |
51 | | | if($_GET["oblast"]!="") { $aname = "#".$_GET["oblast"]; } else { $aname = ""; } |
52 | | | $group = !$group; |
53 | | | $text = ($group) ? "seskupit" : "neseskupovat"; |
54 | | | echo "<a class=\"group\" href=\"?group=".$group."&id=".$_GET["id"]."&oblast=".$_GET["oblast"].$aname."\">$text podle typu služeb</a>"; |
55 | | | } else { |
56 | | | echo "<a class=\"group\" href=\"#\"> </a>"; |
57 | | | } |
58 | | | ?> |
59 | | | |
60 | | | <div class="tree"> |
61 | | | <a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>celá síť</a> |
62 | | | <div class="smallicon"><a title="seznam služeb" href="?oblast="><img width="10" border="0" src="img/point.png"></a> <a title="seznam služeb" href="?oblast=">seznam služeb</a></div> |
63 | | | <div class="smallicon"><a title="seznam cloudů" href="?group=2"><img width="10" border="0" src="img/point.png"></a> <a title="seznam cloudů" href="?group=2">seznam cloudů</a></div> |
64 | | | |
65 | | | |
66 | | | <?php |
67 | | | $jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network", |
68 | | | "10.2.0.0/16" => "Praha - Connection.cz", |
69 | | | "10.10.0.0/16" => "reserved", |
70 | | | "10.11.0.0/16" => "Praha - Střeovice, Břevnov, Hradčany, Strahov", |
71 | | | "10.12.0.0/16" => "Praha - Nusle, Michle, Ruská ul.", |
72 | | | "10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Luiny, Řeporyje", |
73 | | | "10.15.0.0/16" => "Praha - Malvazinky, Koíře, Motol", |
74 | | | "10.16.0.0/16" => "Praha - Barrandov", |
75 | | | "10.17.0.0/16" => "Praha - Záběhlice, Zahradní město", |
76 | | | "10.18.0.0/16" => "Praha - Dejvice, Podbaba", |
77 | | | "10.19.0.0/16" => "Praha - Suchdol, Lysolaje, Hanspaulka, Horoměřice", |
78 | | | "10.20.0.0/16" => "Praha - P6 - Dědina, Liboc, Ruzyně", |
79 | | | "10.21.0.0/16" => "Praha - Řepy, Zličín", |
80 | | | "10.22.0.0/16" => "Praha - Holeovice", |
81 | | | "10.23.0.0/16" => "Praha - Vinohrady, Vrovice, ikov", |
82 | | | "10.24.0.0/16" => "Praha - Jarov, Stranice, Maleice, Skalka", |
83 | | | "10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník", |
84 | | | "10.26.0.0/16" => "Praha - Lipence, Zbraslav, Radotín", |
85 | | | "10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky", |
86 | | | "10.28.0.0/16" => "Praha - VYPAL (VYsočany, PAlmovka, Libeň)", |
87 | | | "10.30.0.0/16" => "Praha - Hostivař, Horní Měcholupy, Dolní Měcholupy, Běchovice", |
88 | | | "10.31.0.0/16" => "Praha - Bohnice, Čimice", |
89 | | | "10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna", |
90 | | | "10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice", |
91 | | | "10.34.0.0/16" => "Praha - Letná, trossmajerák", |
92 | | | "10.37.0.0/16" => "Praha - Radotín", |
93 | | | "10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky", |
94 | | | "10.39.0.0/16" => "Praha - ibřina, Újezd nad Lesy, Koloděje, Květnice", |
95 | | | "10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly", |
96 | | | "10.41.0.0/16" => "HMNet - Horní Měcholupy", |
97 | | | "10.43.0.0/16" => "Řepná pole, Vinoř", |
98 | | | "10.44.0.0/16" => "Praha - Podolí", |
99 | | | "10.48.0.0/16" => "Praha 2, 4, 10", |
100 | | | "10.49.0.0/16" => "Praha 1, 3", |
101 | | | "10.50.0.0/16" => "Praha - Centrum Prahy", |
102 | | | "10.51.0.0/16" => "Praha - Petřiny", |
103 | | | "10.52.0.0/16" => "Praha - Vrovice", |
104 | | | "10.55.0.0/16" => "Connection.cz", |
105 | | | "10.63.0.0/17" => "Rakovník a okolí", |
106 | | | "10.66.0.0/16" => "Hostivice, Chýně, Ptice, Červený Újezd, Sobín", |
107 | | | "10.67.0.0/16" => "Rudná u Prahy, Ptice, Úhonice, Drahelčice", |
108 | | | "10.69.0.0/17" => "Mělník a okolí", |
109 | | | "10.69.128.0/17" => "Neratovice a okolí", |
110 | | | "10.70.0.0/16" => "Beroun a okolí", |
111 | | | "10.76.0.0/16" => "Plzeň - PilsFree 1", |
112 | | | "10.78.0.0/16" => "Plzeň - PilsFree 2", |
113 | | | "10.88.0.0/16" => "Říčany a okolí", |
114 | | | "10.89.0.0/16" => "Mnichovice", |
115 | | | "10.91.0.0/19" => "Velké Přílepy", |
116 | | | "10.92.0.0/19" => "Libčice nad Vltavou", |
117 | | | "10.93.0.0/16" => "Čelákovice", |
118 | | | "10.94.0.0/17" => "Mladá Boleslav a okolí", |
119 | | | "10.95.0.0/17" => "Řevnice, Dobřichovice", |
120 | | | "10.96.0.0/16" => "Venory, Karlík, Dobřichovice, Lety, Řevnice, Třebáň", |
121 | | | "10.98.0.0/16" => "Unho, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Brakov, Horní Bezděkov a dalí", |
122 | | | "10.99.0.0/18" => "Třebestovice", |
123 | | | "10.100.0.0/16" => "Říčany", |
124 | | | "10.101.0.0/16" => "Liberec", |
125 | | | "10.102.0.0/16" => "Kladno, Unho a okolí", |
126 | | | "10.103.0.0/16" => "Karlovy Vary", |
127 | | | "10.104.0.0/17" => "Jablonec", |
128 | | | "10.105.0.0/17" => "Kolín", |
129 | | | "10.106.0.0/16" => "Kutná Hora - okres", |
130 | | | "10.107.0.0/16" => "Hradec Králové", |
131 | | | "10.108.0.0/16" => "České Budějovice", |
132 | | | "10.109.0.0/16" => "Plzeň", |
133 | | | "10.110.0.0/17" => "Chrudim", |
134 | | | "10.111.0.0/16" => "Plzeň - sever", |
135 | | | "10.112.0.0/16" => "Lysá nad Labem", |
136 | | | "10.113.0.0/16" => "Louny, atec, Pobořany", |
137 | | | "10.114.0.0/16" => "Příbram", |
138 | | | "10.117.0.0/16" => "Turnov a okolí", |
139 | | | "10.120.0.0/18" => "MH2Net - Mnichovo Hraditě směr Turnov", |
140 | | | "10.128.0.0/15" => "Brno - město", |
141 | | | "10.128.0.0/16" => "Brno - město", |
142 | | | "10.129.0.0/16" => "okolí Brna", |
143 | | | "10.129.24.0/21" => "Tinov", |
144 | | | "10.130.0.0/16" => "Severní Morava", |
145 | | | "10.131.0.0/16" => "Uherské Hraditě", |
146 | | | "10.132.0.0/16" => "Střední Morava - Olomouc", |
147 | | | "10.133.0.0/16" => "Prostějov", |
148 | | | "10.134.0.0/16" => "Přerovsko", |
149 | | | "10.135.0.0/16" => "rezerva pro Moravu", |
150 | | | "10.136.0.0/16" => "testovací sítě pro Moravu", |
151 | | | "10.144.0.0/16" => "Zlín, Vsetín, Valaské Meziříčí - okresy", |
152 | | | "10.145.0.0/16" => "Nový Jičín, Kopřivnice, Frýdek Místek - okresy", |
153 | | | "10.152.0.0/16" => "Ostrava - okres", |
154 | | | "10.153.0.0/16" => "Ostrava - okres", |
155 | | | "10.154.0.0/16" => "Ostrava - okres", |
156 | | | "10.155.0.0/16" => "Ostrava - okres", |
157 | | | "10.161.0.0/16" => "Evkanet - Ostrava", |
158 | | | "10.253.0.0/16" => "NCX - Zápy", |
159 | | | "10.254.0.0/16" => "NCX Labyrint"); |
160 | | | |
161 | | | // prasarna, ale dokaze to radit cesky retezce :-) |
162 | | | $trans_cz = array("Á" => "azzz", "É" => "ezzz", "Ě" => "ezzzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz", "Ď" => "dzzz", "Ť" => "tzzz", "Ň" => "nzzz"); |
163 | 4 | unreal | $order[0][0] = "TYP"; |
164 | | | $order[1][0] = "NAZEV"; |
165 | | | $sort_cz = 0; |
166 | 1 | unreal | |
167 | 4 | unreal | function arfsort( $a, $yes ) { |
168 | | | global $sort_cz; |
169 | | | $sort_cz = $yes; |
170 | 1 | unreal | usort( $a, 'arfsort_func' ); |
171 | | | return $a; |
172 | | | } |
173 | | | |
174 | | | function arfsort_func( $a, $b ){ |
175 | 4 | unreal | global $trans_cz,$order,$sort_cz; |
176 | 2 | unreal | foreach($order as $f) { |
177 | 4 | unreal | if($sort_cz=="1") { |
178 | 1 | unreal | $a[$f[0]]=strtr($a[$f[0]], $trans_cz); |
179 | | | $b[$f[0]]=strtr($b[$f[0]], $trans_cz); |
180 | | | } |
181 | | | $strc = strcmp( strtolower($a[$f[0]]), strtolower($b[$f[0]]) ); |
182 | | | if ( $strc != 0 ) { |
183 | | | return $strc; |
184 | | | } |
185 | | | } |
186 | 2 | unreal | return 0; |
187 | 1 | unreal | } |
188 | | | |
189 | | | function show_small($test) { |
190 | | | foreach ($test as $key=>$row) { |
191 | 4 | unreal | if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; } |
192 | | | $ikonka = $row["TYP"]; |
193 | 1 | unreal | if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
194 | 4 | unreal | echo "<div class=\"smallicon\"><a title=\"".$row["NAZEV"]."\" href=\"?id=".$row["ID"]."&oblast=".$row["OBLAST"]."#".$row["OBLAST"]."\"><img width=\"16\" title=\"".$row["NAZEV"]."\" border=\"0\" src=\"ikony/$ikonka.png\"></a> <a title=\"".$row["NAZEV"]."\" href=\"?id=".$row["ID"]."&oblast=".$row["OBLAST"]."#".$row["OBLAST"]."\">".$row["NAZEV"]."</a></div>\n"; |
195 | 1 | unreal | } |
196 | | | } |
197 | | | |
198 | | | function show_big($test) { |
199 | 4 | unreal | foreach ($test as $row) { |
200 | 1 | unreal | |
201 | 4 | unreal | if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; } |
202 | | | $ikonka = $row["TYP"]; |
203 | 1 | unreal | if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
204 | | | |
205 | 4 | unreal | echo "<div class=\"icon\"><a title=\"".$row["POPIS"]."\" href=\"?id=".$row["ID"]."&oblast=".$row["OBLAST"]."#".$row["OBLAST"]."\"><img title=\"".$row["POPIS"]."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$row["NAZEV"]."</a></div>\n"; |
206 | 1 | unreal | } |
207 | | | } |
208 | | | |
209 | | | function show_groups($test) { |
210 | 3 | unreal | $pamatuj = ""; |
211 | 4 | unreal | foreach ($test as $row) { |
212 | 1 | unreal | |
213 | 4 | unreal | if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } |
214 | | | $ikonka = $row['TYP']; |
215 | | | if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
216 | | | |
217 | 1 | unreal | if ($row['TYP']==$pamatuj) { |
218 | | | |
219 | | | echo "<div class=\"icon\"><a title=\"".$row['POPIS']."\" href=\"?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."\"><img title=\"".$row['POPIS']."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$row['NAZEV']."</a></div>\n"; |
220 | | | } else { |
221 | | | echo "<div class=\"sizer\"></div><a name=\"".$row['TYP']."\" href=\"#".$row['TYP']."\" class=\"title\">".$row['TYP']."</a>\n"; |
222 | | | echo "<div class=\"icon\"><a title=\"".$row['POPIS']."\" href=\"?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."\"><img title=\"".$row['POPIS']."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$row['NAZEV']."</a></div>\n"; |
223 | | | } |
224 | | | $pamatuj = $row['TYP']; |
225 | | | } |
226 | | | } |
227 | | | |
228 | | | function show_clouds($test) { |
229 | | | global $jmena_cloudu; |
230 | 4 | unreal | foreach ($test as $row) { |
231 | 1 | unreal | if($row!="") { |
232 | 4 | unreal | $cl_popis = $jmena_cloudu["$row"]; |
233 | 1 | unreal | $cl_naz = $row; |
234 | | | $cl_nazev = $row."<br>".$cl_popis; |
235 | | | |
236 | | | echo "<div class=\"icon2\"><a title=\"".$cl_popis."\" href=\"?oblast=".$cl_naz."#".$cl_naz."\"><img title=\"".$cl_popis."\" border=\"0\" width=\"50\" src=\"img/cloud.png\"><br>".$cl_nazev."</a></div>\n"; |
237 | | | } |
238 | | | } |
239 | | | } |
240 | | | |
241 | | | function show_details($test) { |
242 | 4 | unreal | $ikonka_det = $test["TYP"]; |
243 | 1 | unreal | if(!file_exists("ikony/".$ikonka_det.".png")) { $ikonka_det = "none"; } |
244 | | | echo "<div class=\"det\">"; |
245 | | | echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>"; |
246 | | | echo "<div class=\"info_det\">"; |
247 | | | foreach ($test as $key=>$row) { |
248 | | | if($key!="HESLOEDIT") { |
249 | 4 | unreal | echo "<strong>".$key."</strong>: ".$test["$key"]."<br>"; |
250 | 1 | unreal | } |
251 | | | } |
252 | | | echo "</div><div class=\"info_cut\"></div></div>"; |
253 | | | } |
254 | | | |
255 | | | $i=0; |
256 | | | if ($dir = @opendir(".")) { |
257 | | | while (($file = readdir($dir)) !== false) |
258 | | | if (preg_match('/^(global|local)-.*.txt/',$file)) { |
259 | | | $seznam[$i] = $file; |
260 | | | $i++; |
261 | | | } |
262 | | | |
263 | | | $pocet_globalu = $i; |
264 | | | $polozka=-1; |
265 | | | for ($g=0; $g<$pocet_globalu; $g++) { |
266 | | | |
267 | | | $file = "./".$seznam[$g]; // $g |
268 | | | $fp = Fopen($file, "r"); |
269 | | | $dat = Fread($fp, filesize($file)); |
270 | 2 | unreal | // $dat = file_get_contents($file); |
271 | 1 | unreal | $data = explode("\n", $dat); |
272 | | | $soucet = count($data); |
273 | | | |
274 | | | for ($j=0; $j<=$soucet; $j++) { |
275 | | | if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) { |
276 | 4 | unreal | if (strtoupper(substr($data[$j], 0, 4))=="TYP:") { $polozka++; } |
277 | 1 | unreal | $item[$polozka]=$item[$polozka].$data[$j]."<br>"; |
278 | | | } |
279 | | | $trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", ": " => ":", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (chr(9)) => ""); |
280 | | | $item[$polozka]=strtr($item[$polozka], $trans); |
281 | | | |
282 | | | $trans_code = array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň", "ž" => "ž", "š" => "š"); |
283 | | | $item[$polozka]=strtr($item[$polozka], $trans_code); |
284 | | | } |
285 | | | } |
286 | | | |
287 | | | // ------- naladujem data do 3-rozmernyho pole ------- |
288 | | | |
289 | | | for ($k=0; $k<=$polozka; $k++) { |
290 | | | $ic = explode("<br>", $item[$k]); |
291 | | | $cnt_ic = (count($ic)); |
292 | | | for ($b=0; $b<=$cnt_ic; $b++) { |
293 | | | if($b==$cnt_ic) { |
294 | | | $items[$k]['ID']=$k; |
295 | | | } else { |
296 | | | if(($ic[$b])!="") { |
297 | | | $pole = strpos($ic[$b], ":"); |
298 | | | if((((substr($ic[$b], 0, $pole))=="URL") or ((substr($ic[$b], 0, $pole))=="URLIP")) or ((substr($ic[$b], 0, $pole))=="URLINET")) { |
299 | | | $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]="<a href=\"".(substr($ic[$b], $pole+1))."\">".(substr($ic[$b], $pole+1))."</a>"; |
300 | | | } else { |
301 | | | $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1)); |
302 | | | } |
303 | | | } |
304 | | | } |
305 | | | } |
306 | | | } |
307 | | | |
308 | | | // -- zjisteni a serazeni oblasti |
309 | 4 | unreal | $cloudy = ""; |
310 | 1 | unreal | |
311 | | | for ($k=0; $k<=$polozka; $k++) { |
312 | | | if ((eregi("OBLAST:", $item[$k])) and (!eregi("OBLAST:<br>", $item[$k]))){ |
313 | 4 | unreal | preg_match('%OBLAST:(.*?)(<br)%s', $item[$k], $cloud); |
314 | | | if (!eregi($cloud[1], $cloudy)) { |
315 | | | $cloudy .= $cloud[1].";"; |
316 | 1 | unreal | } |
317 | | | } |
318 | | | } |
319 | | | $oblast = explode(";", $cloudy); |
320 | | | $pocet_oblasti = count($oblast)-2; |
321 | | | |
322 | | | for ($l=0; $l<=$pocet_oblasti; $l++) { |
323 | | | for ($m=0; $m<=$pocet_oblasti; $m++) { |
324 | | | if ((intval(substr($oblast[$m], 3, 3)))<(intval(substr($oblast[$m-1], 3, 3)))) { |
325 | | | $x=$oblast[$m]; |
326 | | | $oblast[$m]=$oblast[$m-1]; |
327 | | | $oblast[$m-1]=$x; |
328 | | | } |
329 | | | } |
330 | | | } |
331 | | | |
332 | | | |
333 | | | // ------- zapiseme hodnoty do cloudovskych poli ------- |
334 | | | |
335 | | | for ($o=0; $o<=$pocet_oblasti; $o++) { |
336 | 4 | unreal | foreach ($items as $row) { |
337 | | | if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; } |
338 | | | if($row["OBLAST"]==$oblast[$o]) { |
339 | | | $obl["$oblast[$o]"][]=$row; |
340 | 3 | unreal | } |
341 | 1 | unreal | } |
342 | | | } |
343 | | | |
344 | | | // ------- prekodujem nazvy cloudu, aby nam nedelaly bordel pri spatnym kodovani ------- |
345 | | | |
346 | | | for ($o=0; $o<=$pocet_oblasti; $o++) { |
347 | | | $trans_code = array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň"); |
348 | | | $jmena_cloudu["$oblast[$o]"]=strtr($jmena_cloudu["$oblast[$o]"], $trans_code); |
349 | | | } |
350 | | | |
351 | | | // ------- vypis ve sloupecku vlevo ------- |
352 | | | |
353 | | | for ($o=0; $o<=$pocet_oblasti; $o++) { |
354 | | | echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n"; |
355 | 4 | unreal | if(strlen($jmena_cloudu["$oblast[$o]"])>=1) { |
356 | | | echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>"; |
357 | 1 | unreal | } else { |
358 | | | echo "</a>"; |
359 | | | } |
360 | | | |
361 | 2 | unreal | $sorted["$oblast[$o]"] = arfsort( $obl["$oblast[$o]"], 0); |
362 | 1 | unreal | show_small($sorted["$oblast[$o]"]); |
363 | | | |
364 | | | } |
365 | | | |
366 | | | ?> |
367 | | | |
368 | | | </div> |
369 | | | <div class="items"> |
370 | | | |
371 | | | <?php |
372 | | | |
373 | | | //############# PODMINKY ZOBRAZENI ###############// |
374 | | | |
375 | | | if(($_GET["group"]!="1") and ($_GET["group"]!="2")) { $_GET["group"] = ""; } |
376 | | | |
377 | | | |
378 | | | // ------- pokud neni uvedena oblast ani id ani groupa ------- |
379 | | | |
380 | | | if ((($_GET["oblast"]=="") and ($_GET["id"]=="")) and ($_GET["group"]=="")) { |
381 | 2 | unreal | $sorted0 = arfsort( $items, 1); |
382 | 1 | unreal | show_big($sorted0); |
383 | | | |
384 | | | echo "<div class=\"sizer\"></div></div>"; |
385 | | | } |
386 | | | |
387 | | | // ------- pokud neni uvedena oblast ani id ale groupa ano ------- |
388 | | | |
389 | | | if ((($_GET["oblast"]=="") and ($_GET["id"]=="")) and ($_GET["group"]=="1")) { |
390 | 2 | unreal | $sorted0 = arfsort( $items, 1); |
391 | 1 | unreal | show_groups($sorted0); |
392 | | | |
393 | | | echo "<div class=\"sizer\"></div></div>"; |
394 | | | } |
395 | | | |
396 | | | // ------- pokud neni uvedena oblast ani id ale groupa je 2 ------- |
397 | | | |
398 | | | if ((($_GET["oblast"]=="") and ($_GET["id"]=="")) and ($_GET["group"]=="2")) { |
399 | | | |
400 | | | show_clouds($oblast); |
401 | | | |
402 | | | echo "<div class=\"sizer\"></div></div>"; |
403 | | | } |
404 | | | |
405 | | | |
406 | | | // ------- pokud je uvedena oblast i id sluzby ale groupa ne ------- |
407 | | | |
408 | | | if ((($_GET["oblast"]!="") and ($_GET["id"]!="")) and ($_GET["group"]=="")) { |
409 | | | |
410 | | | show_big($sorted[$_GET["oblast"]]); |
411 | | | |
412 | | | echo "<div class=\"sizer\"></div></div>\n"; |
413 | | | echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; |
414 | | | echo "<div class=\"contents\">\n"; |
415 | | | if ($_GET["id"]<=$polozka) { |
416 | | | |
417 | | | show_details($items[$_GET["id"]]); |
418 | | | |
419 | | | } else { |
420 | | | echo "<br>Položka neexistuje<br>"; |
421 | | | } |
422 | | | echo "</div></div>\n"; |
423 | | | |
424 | | | } |
425 | | | |
426 | | | // ------- pokud je uvedena oblast i id sluzby i groupa ------- |
427 | | | |
428 | | | if ((($_GET["oblast"]!="") and ($_GET["id"]!="")) and ($_GET["group"]=="1")) { |
429 | | | |
430 | | | show_groups($sorted[$_GET["oblast"]]); |
431 | | | |
432 | | | echo "<div class=\"sizer\"></div></div>\n"; |
433 | | | echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; |
434 | | | echo "<div class=\"contents\">\n"; |
435 | | | if ($_GET["id"]<=$polozka) { |
436 | | | |
437 | | | show_details($items[$_GET["id"]]); |
438 | | | |
439 | | | } else { |
440 | | | echo "<br>Položka neexistuje<br>"; |
441 | | | } |
442 | | | echo "</div></div>\n"; |
443 | | | |
444 | | | } |
445 | | | |
446 | | | |
447 | | | // ------- pokud neni uvedena oblast ale id a groupa ne ------- |
448 | | | |
449 | | | if ((($_GET["oblast"]=="") and ($_GET["id"]!="")) and ($_GET["group"]=="")) { |
450 | | | if ($_GET["id"]<=$polozka) { |
451 | | | |
452 | | | if(($items[$_GET["id"]]["OBLAST"])=="") { |
453 | | | $sorted4 = $sorted["10.0.0.0/8"]; |
454 | | | } else { |
455 | | | $sorted4 = $sorted[$items[$_GET["id"]]['OBLAST']]; |
456 | | | } |
457 | | | |
458 | | | show_big($sorted4); |
459 | | | |
460 | | | } else { |
461 | | | |
462 | 2 | unreal | $sorted0 = arfsort( $items, 1); |
463 | 1 | unreal | show_big($sorted0); |
464 | | | |
465 | | | } |
466 | | | |
467 | | | |
468 | | | echo "<div class=\"sizer\"></div></div>\n"; |
469 | | | echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; |
470 | | | echo "<div class=\"contents\">\n"; |
471 | | | if ($_GET["id"]<=$polozka) { |
472 | | | |
473 | | | show_details($items[$_GET["id"]]); |
474 | | | |
475 | | | } else { |
476 | | | echo "<br>Položka neexistuje<br>"; |
477 | | | } |
478 | | | echo "</div></div>\n"; |
479 | | | |
480 | | | } |
481 | | | |
482 | | | // ------- pokud neni uvedena oblast ale id a groupa ano ------- |
483 | | | |
484 | | | if ((($_GET["oblast"]=="") and ($_GET["id"]!="")) and ($_GET["group"]=="1")) { |
485 | | | if ($_GET["id"]<=$polozka) { |
486 | | | |
487 | | | if(($items[$_GET["id"]]["OBLAST"])=="") { |
488 | | | $sorted4 = $sorted["10.0.0.0/8"]; |
489 | | | } else { |
490 | | | $sorted4 = $sorted[$items[$_GET["id"]]['OBLAST']]; |
491 | | | } |
492 | | | |
493 | | | show_groups($sorted4); |
494 | | | |
495 | | | } else { |
496 | | | |
497 | 2 | unreal | $sorted0 = arfsort( $items, 1); |
498 | 1 | unreal | show_groups($sorted0); |
499 | | | |
500 | | | } |
501 | | | |
502 | | | |
503 | | | echo "<div class=\"sizer\"></div></div>\n"; |
504 | | | echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; |
505 | | | echo "<div class=\"contents\">\n"; |
506 | | | if ($_GET["id"]<=$polozka) { |
507 | | | |
508 | | | show_details($items[$_GET["id"]]); |
509 | | | |
510 | | | } else { |
511 | | | echo "<br>Položka neexistuje<br>"; |
512 | | | } |
513 | | | echo "</div></div>\n"; |
514 | | | |
515 | | | } |
516 | | | |
517 | | | // ------- pokud je uvedena oblast ale ne id ani groupa ------- |
518 | | | |
519 | | | if ((($_GET["oblast"]!="") and ($_GET["id"]=="")) and ($_GET["group"]=="")){ |
520 | | | |
521 | | | show_big($sorted[$_GET["oblast"]]); |
522 | | | |
523 | | | echo "<div class=\"sizer\"></div></div>\n"; |
524 | | | |
525 | | | } |
526 | | | |
527 | | | // ------- pokud je uvedena oblast a groupa ale ne id ------- |
528 | | | |
529 | | | if ((($_GET["oblast"]!="") and ($_GET["id"]=="")) and ($_GET["group"]=="1")){ |
530 | | | |
531 | | | show_groups($sorted[$_GET["oblast"]]); |
532 | | | |
533 | | | echo "<div class=\"sizer\"></div></div>\n"; |
534 | | | |
535 | | | } |
536 | | | |
537 | | | |
538 | | | } // end |
539 | | | |
540 | | | ?> |
541 | | | |
542 | | | <div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a> </div> |
543 | | | </body> |
544 | | | </html> |