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