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