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 | 14 | unreal | <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.5 (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 | 14 | unreal | <link rel="SHORTCUT ICON" href="favicon.ico"> |
30 | 5 | unreal | </head> |
31 | 12 | unreal | <body> |
32 | 1 | unreal | |
33 | 5 | unreal | <h1>Rozcestník CZFree.Net</h1> |
34 | 1 | unreal | |
35 | | | <?php |
36 | | | $group = $_GET["group"]; |
37 | 5 | unreal | $czf_group = $_GET["group"]; |
38 | | | $czf_oblast = $_GET["oblast"]; |
39 | | | $czf_id = $_GET["id"]; |
40 | | | |
41 | 1 | unreal | if($group!=2) { |
42 | 5 | unreal | if($czf_oblast!="") { $aname = "#".$czf_oblast; } else { $aname = ""; } |
43 | 1 | unreal | $group = !$group; |
44 | 5 | unreal | $text = (!empty($group)) ? "seskupit" : "neseskupovat"; |
45 | | | echo "<a class=\"group\" href=\"?group=".$group."&id=".$czf_id."&oblast=".$czf_oblast.$aname."\">$text podle typu služeb</a>"; |
46 | 1 | unreal | } else { |
47 | | | echo "<a class=\"group\" href=\"#\"> </a>"; |
48 | | | } |
49 | | | ?> |
50 | 14 | unreal | <div class="sizer"></div> |
51 | 1 | unreal | |
52 | | | <div class="tree"> |
53 | | | <a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>celá síť</a> |
54 | 14 | unreal | <div class="smallicon"><a title="seznam služeb" href="?oblast="><img width="10" border="0" src="img/point.png"><span>seznam služeb</span></a></div> |
55 | | | <div class="smallicon"><a title="seznam cloudů" href="?group=2"><img width="10" border="0" src="img/point.png"><span>seznam cloudů</span></a></div> |
56 | 1 | unreal | |
57 | | | |
58 | | | <?php |
59 | | | $jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network", |
60 | | | "10.2.0.0/16" => "Praha - Connection.cz", |
61 | | | "10.10.0.0/16" => "reserved", |
62 | | | "10.11.0.0/16" => "Praha - Střeovice, Břevnov, Hradčany, Strahov", |
63 | | | "10.12.0.0/16" => "Praha - Nusle, Michle, Ruská ul.", |
64 | | | "10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Luiny, Řeporyje", |
65 | | | "10.15.0.0/16" => "Praha - Malvazinky, Koíře, Motol", |
66 | | | "10.16.0.0/16" => "Praha - Barrandov", |
67 | | | "10.17.0.0/16" => "Praha - Záběhlice, Zahradní město", |
68 | | | "10.18.0.0/16" => "Praha - Dejvice, Podbaba", |
69 | | | "10.19.0.0/16" => "Praha - Suchdol, Lysolaje, Hanspaulka, Horoměřice", |
70 | | | "10.20.0.0/16" => "Praha - P6 - Dědina, Liboc, Ruzyně", |
71 | | | "10.21.0.0/16" => "Praha - Řepy, Zličín", |
72 | | | "10.22.0.0/16" => "Praha - Holeovice", |
73 | | | "10.23.0.0/16" => "Praha - Vinohrady, Vrovice, ikov", |
74 | | | "10.24.0.0/16" => "Praha - Jarov, Stranice, Maleice, Skalka", |
75 | | | "10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník", |
76 | | | "10.26.0.0/16" => "Praha - Lipence, Zbraslav, Radotín", |
77 | | | "10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky", |
78 | | | "10.28.0.0/16" => "Praha - VYPAL (VYsočany, PAlmovka, Libeň)", |
79 | | | "10.30.0.0/16" => "Praha - Hostivař, Horní Měcholupy, Dolní Měcholupy, Běchovice", |
80 | | | "10.31.0.0/16" => "Praha - Bohnice, Čimice", |
81 | | | "10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna", |
82 | | | "10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice", |
83 | | | "10.34.0.0/16" => "Praha - Letná, trossmajerák", |
84 | | | "10.37.0.0/16" => "Praha - Radotín", |
85 | | | "10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky", |
86 | | | "10.39.0.0/16" => "Praha - ibřina, Újezd nad Lesy, Koloděje, Květnice", |
87 | | | "10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly", |
88 | | | "10.41.0.0/16" => "HMNet - Horní Měcholupy", |
89 | | | "10.43.0.0/16" => "Řepná pole, Vinoř", |
90 | | | "10.44.0.0/16" => "Praha - Podolí", |
91 | | | "10.48.0.0/16" => "Praha 2, 4, 10", |
92 | | | "10.49.0.0/16" => "Praha 1, 3", |
93 | | | "10.50.0.0/16" => "Praha - Centrum Prahy", |
94 | | | "10.51.0.0/16" => "Praha - Petřiny", |
95 | | | "10.52.0.0/16" => "Praha - Vrovice", |
96 | | | "10.55.0.0/16" => "Connection.cz", |
97 | | | "10.63.0.0/17" => "Rakovník a okolí", |
98 | | | "10.66.0.0/16" => "Hostivice, Chýně, Ptice, Červený Újezd, Sobín", |
99 | | | "10.67.0.0/16" => "Rudná u Prahy, Ptice, Úhonice, Drahelčice", |
100 | | | "10.69.0.0/17" => "Mělník a okolí", |
101 | | | "10.69.128.0/17" => "Neratovice a okolí", |
102 | | | "10.70.0.0/16" => "Beroun a okolí", |
103 | | | "10.76.0.0/16" => "Plzeň - PilsFree 1", |
104 | | | "10.78.0.0/16" => "Plzeň - PilsFree 2", |
105 | | | "10.88.0.0/16" => "Říčany a okolí", |
106 | | | "10.89.0.0/16" => "Mnichovice", |
107 | | | "10.91.0.0/19" => "Velké Přílepy", |
108 | | | "10.92.0.0/19" => "Libčice nad Vltavou", |
109 | | | "10.93.0.0/16" => "Čelákovice", |
110 | | | "10.94.0.0/17" => "Mladá Boleslav a okolí", |
111 | | | "10.95.0.0/17" => "Řevnice, Dobřichovice", |
112 | | | "10.96.0.0/16" => "Venory, Karlík, Dobřichovice, Lety, Řevnice, Třebáň", |
113 | | | "10.98.0.0/16" => "Unho, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Brakov, Horní Bezděkov a dalí", |
114 | | | "10.99.0.0/18" => "Třebestovice", |
115 | | | "10.100.0.0/16" => "Říčany", |
116 | | | "10.101.0.0/16" => "Liberec", |
117 | | | "10.102.0.0/16" => "Kladno, Unho a okolí", |
118 | | | "10.103.0.0/16" => "Karlovy Vary", |
119 | | | "10.104.0.0/17" => "Jablonec", |
120 | | | "10.105.0.0/17" => "Kolín", |
121 | | | "10.106.0.0/16" => "Kutná Hora - okres", |
122 | | | "10.107.0.0/16" => "Hradec Králové", |
123 | | | "10.108.0.0/16" => "České Budějovice", |
124 | | | "10.109.0.0/16" => "Plzeň", |
125 | | | "10.110.0.0/17" => "Chrudim", |
126 | | | "10.111.0.0/16" => "Plzeň - sever", |
127 | | | "10.112.0.0/16" => "Lysá nad Labem", |
128 | | | "10.113.0.0/16" => "Louny, atec, Pobořany", |
129 | | | "10.114.0.0/16" => "Příbram", |
130 | | | "10.117.0.0/16" => "Turnov a okolí", |
131 | | | "10.120.0.0/18" => "MH2Net - Mnichovo Hraditě směr Turnov", |
132 | | | "10.128.0.0/15" => "Brno - město", |
133 | | | "10.128.0.0/16" => "Brno - město", |
134 | | | "10.129.0.0/16" => "okolí Brna", |
135 | | | "10.129.24.0/21" => "Tinov", |
136 | | | "10.130.0.0/16" => "Severní Morava", |
137 | | | "10.131.0.0/16" => "Uherské Hraditě", |
138 | | | "10.132.0.0/16" => "Střední Morava - Olomouc", |
139 | | | "10.133.0.0/16" => "Prostějov", |
140 | | | "10.134.0.0/16" => "Přerovsko", |
141 | | | "10.135.0.0/16" => "rezerva pro Moravu", |
142 | | | "10.136.0.0/16" => "testovací sítě pro Moravu", |
143 | | | "10.144.0.0/16" => "Zlín, Vsetín, Valaské Meziříčí - okresy", |
144 | | | "10.145.0.0/16" => "Nový Jičín, Kopřivnice, Frýdek Místek - okresy", |
145 | | | "10.152.0.0/16" => "Ostrava - okres", |
146 | | | "10.153.0.0/16" => "Ostrava - okres", |
147 | | | "10.154.0.0/16" => "Ostrava - okres", |
148 | | | "10.155.0.0/16" => "Ostrava - okres", |
149 | | | "10.161.0.0/16" => "Evkanet - Ostrava", |
150 | | | "10.253.0.0/16" => "NCX - Zápy", |
151 | | | "10.254.0.0/16" => "NCX Labyrint"); |
152 | | | |
153 | 4 | unreal | $sort_cz = 0; |
154 | 1 | unreal | |
155 | 12 | unreal | function arfsort($a,$yes=0) { |
156 | 4 | unreal | global $sort_cz; |
157 | | | $sort_cz = $yes; |
158 | 12 | unreal | usort($a,'arfsort_func'); |
159 | 1 | unreal | return $a; |
160 | | | } |
161 | | | |
162 | 12 | unreal | function arfsort_func($a,$b){ |
163 | 9 | unreal | global $sort_cz; |
164 | | | $order[0][0] = "TYP"; |
165 | | | $order[1][0] = "NAZEV"; |
166 | 2 | unreal | foreach($order as $f) { |
167 | 4 | unreal | if($sort_cz=="1") { |
168 | 5 | unreal | $a[$f[0]]=strtr($a[$f[0]], array("Á" => "azzz", "É" => "ezzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz")); |
169 | | | $b[$f[0]]=strtr($b[$f[0]], array("Á" => "azzz", "É" => "ezzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz")); |
170 | 1 | unreal | } |
171 | 12 | unreal | $strc = strcasecmp($a[$f[0]],$b[$f[0]]); |
172 | | | if ($strc!=0) { |
173 | 5 | unreal | return $strc; |
174 | | | } |
175 | 1 | unreal | } |
176 | 2 | unreal | return 0; |
177 | 1 | unreal | } |
178 | | | |
179 | 12 | unreal | function natsort_func($a,$b){ |
180 | | | $strc = strnatcmp($a,$b); |
181 | | | if ($strc!=0) { |
182 | 5 | unreal | return $strc; |
183 | | | } |
184 | | | return 0; |
185 | | | } |
186 | | | |
187 | 1 | unreal | function show_small($test) { |
188 | | | foreach ($test as $key=>$row) { |
189 | 7 | unreal | $oblastx = $row["OBLAST"]; |
190 | 5 | unreal | $typ = $row["TYP"]; |
191 | | | $nazev = $row["NAZEV"]; |
192 | | | $id = $row["ID"]; |
193 | | | $ikonka = $typ; |
194 | 12 | unreal | if(!file_exists("ikony/".$ikonka.".png")) $ikonka = "none"; |
195 | 14 | 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\"><span>$nazev</span></a></div>\n"; |
196 | 1 | unreal | } |
197 | | | } |
198 | | | |
199 | | | function show_big($test) { |
200 | 4 | unreal | foreach ($test as $row) { |
201 | 7 | unreal | $oblastx = $row["OBLAST"]; |
202 | 5 | unreal | $typ = $row["TYP"]; |
203 | | | $nazev = $row["NAZEV"]; |
204 | | | $popis = $row["POPIS"]; |
205 | | | $id = $row["ID"]; |
206 | | | $ikonka = $typ; |
207 | 12 | unreal | if(!file_exists("ikony/".$ikonka.".png")) $ikonka = "none"; |
208 | 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"; |
209 | 1 | unreal | } |
210 | | | } |
211 | | | |
212 | | | function show_groups($test) { |
213 | 3 | unreal | $pamatuj = ""; |
214 | 12 | unreal | $x = 0; |
215 | 4 | unreal | foreach ($test as $row) { |
216 | 7 | unreal | $oblastx = $row["OBLAST"]; |
217 | 5 | unreal | $typ = $row["TYP"]; |
218 | | | $nazev = $row["NAZEV"]; |
219 | | | $popis = $row["POPIS"]; |
220 | | | $id = $row["ID"]; |
221 | | | $ikonka = $typ; |
222 | 12 | unreal | if(!file_exists("ikony/".$ikonka.".png")) $ikonka = "none"; |
223 | 1 | unreal | |
224 | 5 | unreal | if ($typ===$pamatuj) { |
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 | } else { |
227 | 12 | unreal | if($x==0) { $nomargin = "nomargin "; $x==1; } else { $nomargin = ""; } |
228 | | | echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"".$nomargin."title\">".$typ."</a>\n"; |
229 | 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"; |
230 | 5 | unreal | } |
231 | | | $pamatuj = $typ; |
232 | 1 | unreal | } |
233 | | | } |
234 | | | |
235 | | | function show_clouds($test) { |
236 | | | global $jmena_cloudu; |
237 | 4 | unreal | foreach ($test as $row) { |
238 | 1 | unreal | if($row!="") { |
239 | 4 | unreal | $cl_popis = $jmena_cloudu["$row"]; |
240 | 1 | unreal | $cl_naz = $row; |
241 | | | $cl_nazev = $row."<br>".$cl_popis; |
242 | | | |
243 | | | 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"; |
244 | | | } |
245 | | | } |
246 | | | } |
247 | | | |
248 | | | function show_details($test) { |
249 | 4 | unreal | $ikonka_det = $test["TYP"]; |
250 | 12 | unreal | if(!file_exists("ikony/".$ikonka_det.".png")) $ikonka_det = "none"; |
251 | 1 | unreal | echo "<div class=\"det\">"; |
252 | | | echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>"; |
253 | | | echo "<div class=\"info_det\">"; |
254 | | | foreach ($test as $key=>$row) { |
255 | 14 | unreal | if(!preg_match('%^(?:HESLOEDIT|SOURCE|#)%',$key)) { |
256 | | | if (preg_match('%^URL(?:|IP|INET)%',$key)) { |
257 | | | $row = "<a href=\"".$row."\">".$row."</a>"; |
258 | | | } |
259 | | | echo "<strong>".$key."</strong>: ".$row."<br>"; |
260 | 1 | unreal | } |
261 | | | } |
262 | | | echo "</div><div class=\"info_cut\"></div></div>"; |
263 | | | } |
264 | | | |
265 | | | |
266 | 5 | unreal | if(!empty($seznam)) { |
267 | | | |
268 | 11 | unreal | $item = array(); |
269 | | | $items = array(); |
270 | | | $oblast = array(); |
271 | | | |
272 | 1 | unreal | $polozka=-1; |
273 | | | |
274 | 12 | unreal | foreach($seznam as $fil) { |
275 | | | $dat = file_get_contents($fil); |
276 | 1 | unreal | $data = explode("\n", $dat); |
277 | | | $soucet = count($data); |
278 | | | |
279 | 5 | unreal | for ($j=0; $j<=$soucet; ++$j) { |
280 | 1 | unreal | if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) { |
281 | 12 | unreal | if (preg_match('%^TYP:%i',$data[$j])) $polozka++; |
282 | 1 | unreal | $item[$polozka]=$item[$polozka].$data[$j]."<br>"; |
283 | | | } |
284 | | | } |
285 | | | } |
286 | | | |
287 | | | // ------- naladujem data do 3-rozmernyho pole ------- |
288 | | | |
289 | 12 | unreal | $trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (chr(9)) => "", "á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň", "ž" => "ž", "š" => "š"); |
290 | | | |
291 | 5 | unreal | for ($k=0; $k<=$polozka; ++$k) { |
292 | 12 | unreal | $item[$k]=strtr($item[$k], $trans); |
293 | | | $item[$k]=preg_replace('%\:(?:\s|\t)+%', ':', $item[$k]); // tydyt pridelava praci |
294 | | | if(preg_match('%OBLAST:%i', $item[$k])) { |
295 | | | preg_match('%OBLAST:(.*?)(<br)%i', $item[$k], $cloud); |
296 | 11 | unreal | if (!isset($obl["$cloud[1]"])) { |
297 | 9 | unreal | $oblast[] = $cloud[1]; |
298 | | | $jmena_cloudu["$cloud[1]"]=strtr($jmena_cloudu["$cloud[1]"], array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň")); |
299 | | | } |
300 | | | } else { |
301 | | | $cloud[1] = "10.0.0.0/8"; |
302 | | | } |
303 | 12 | unreal | |
304 | 1 | unreal | $ic = explode("<br>", $item[$k]); |
305 | | | $cnt_ic = (count($ic)); |
306 | 5 | unreal | for ($b=0; $b<=$cnt_ic; ++$b) { |
307 | 9 | unreal | if($b===$cnt_ic) { |
308 | 12 | unreal | $items[$k]["ID"]=$k; |
309 | 1 | unreal | } else { |
310 | | | if(($ic[$b])!="") { |
311 | | | $pole = strpos($ic[$b], ":"); |
312 | 14 | unreal | $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1)); |
313 | 1 | unreal | } |
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 | 14 | unreal | <div id="copy">czf4bfu v1.5 - made <a href="http://www.jklir.net/">Unreal][</a> </div> |
471 | 1 | unreal | </body> |
472 | | | </html> |