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