jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [index.php] - Blame information for rev 6

 

Line No. Rev Author Line
11unreal<?php
25unrealerror_reporting(0);
33unreal// Nastavime, aby se nam zbytecne nelogovaly chyby
44unrealini_set('log_errors',false);
53unreal 
65unreal$i=0;
7$seznam = array();
8$oblast = array();
9$item = array();
10$items = array();
11echo "<!--CZF4BFU ";
121unrealif ($dir = @opendir(".")) {
13 while (($file = readdir($dir)) !== false)
145unreal if (preg_match('/^(global|local)-.*.txt/',$file)) {
15 echo $file." ";
16 $seznam[$i] = $file;
17 ++$i;
18 }
191unreal}
205unrealecho "-->\n";
211unreal?>
22 
23<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
24<html>
255unreal<head>
26 <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.3 (c) Jirka Klír 2008 for CZFree.net ;-) # -->
27 <title>CZF4BFU</title>
28 <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
29 <meta http-equiv="Content-language" content="cz" />
30 <meta name="author" content="Unreal][, http://www.jklir.net">
31 <link href="styl.css" rel="stylesheet" type="text/css">
32</head>
331unreal<body style="background: #D4D0C8">
34 
355unreal<h1>Rozcestn&#237;k CZFree.Net</h1>
361unreal 
37<?php
38$group = $_GET["group"];
395unreal$czf_group = $_GET["group"];
40$czf_oblast = $_GET["oblast"];
41$czf_id = $_GET["id"];
42 
431unrealif($group!=2) {
445unreal if($czf_oblast!="") { $aname = "#".$czf_oblast; } else { $aname = ""; }
451unreal $group = !$group;
465unreal $text = (!empty($group)) ? "seskupit" : "neseskupovat";
47 echo "<a class=\"group\" href=\"?group=".$group."&amp;id=".$czf_id."&amp;oblast=".$czf_oblast.$aname."\">$text podle typu slu&#382;eb</a>";
481unreal} else {
49 echo "<a class=\"group\" href=\"#\">&nbsp;</a>";
50}
51?>
52 
53<div class="tree">
54 <a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>cel&#225; s&#237;&#357;</a>
55 <div class="smallicon"><a title="seznam slu&#382;eb" href="?oblast="><img width="10" border="0" src="img/point.png"></a>&nbsp;<a title="seznam slu&#382;eb" href="?oblast=">seznam slu&#382;eb</a></div>
56 <div class="smallicon"><a title="seznam cloud&#367;" href="?group=2"><img width="10" border="0" src="img/point.png"></a>&nbsp;<a title="seznam cloud&#367;" href="?group=2">seznam cloud&#367;</a></div>
57 
58 
59<?php
60$jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network",
61"10.2.0.0/16" => "Praha - Connection.cz",
62"10.10.0.0/16" => "reserved",
63"10.11.0.0/16" => "Praha - Střešovice, Břevnov, Hradčany, Strahov",
64"10.12.0.0/16" => "Praha - Nusle, Michle, Ruská ul.",
65"10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Lužiny, Řeporyje",
66"10.15.0.0/16" => "Praha - Malvazinky, Košíře, Motol",
67"10.16.0.0/16" => "Praha - Barrandov",
68"10.17.0.0/16" => "Praha - Záběhlice, Zahradní město",
69"10.18.0.0/16" => "Praha - Dejvice, Podbaba",
70"10.19.0.0/16" => "Praha - Suchdol, Lysolaje, Hanspaulka, Horoměřice",
71"10.20.0.0/16" => "Praha - P6 - Dědina, Liboc, Ruzyně",
72"10.21.0.0/16" => "Praha - Řepy, Zličín",
73"10.22.0.0/16" => "Praha - Holešovice",
74"10.23.0.0/16" => "Praha - Vinohrady, Vršovice, Žižkov",
75"10.24.0.0/16" => "Praha - Jarov, Strašnice, Malešice, Skalka",
76"10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník",
77"10.26.0.0/16" => "Praha - Lipence, Zbraslav, Radotín",
78"10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky",
79"10.28.0.0/16" => "Praha - VYPAL (VYsočany, PAlmovka, Libeň)",
80"10.30.0.0/16" => "Praha - Hostivař, Horní Měcholupy, Dolní Měcholupy, Běchovice",
81"10.31.0.0/16" => "Praha - Bohnice, Čimice",
82"10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna",
83"10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice",
84"10.34.0.0/16" => "Praha - Letná, Štrossmajerák",
85"10.37.0.0/16" => "Praha - Radotín",
86"10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky",
87"10.39.0.0/16" => "Praha - Šibřina, Újezd nad Lesy, Koloděje, Květnice",
88"10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly",
89"10.41.0.0/16" => "HMNet - Horní Měcholupy",
90"10.43.0.0/16" => "Řepná pole, Vinoř",
91"10.44.0.0/16" => "Praha - Podolí",
92"10.48.0.0/16" => "Praha 2, 4, 10",
93"10.49.0.0/16" => "Praha 1, 3",
94"10.50.0.0/16" => "Praha - Centrum Prahy",
95"10.51.0.0/16" => "Praha - Petřiny",
96"10.52.0.0/16" => "Praha - Vršovice",
97"10.55.0.0/16" => "Connection.cz",
98"10.63.0.0/17" => "Rakovník a okolí",
99"10.66.0.0/16" => "Hostivice, Chýně, Ptice, Červený Újezd, Sobín",
100"10.67.0.0/16" => "Rudná u Prahy, Ptice, Úhonice, Drahelčice",
101"10.69.0.0/17" => "Mělník a okolí",
102"10.69.128.0/17" => "Neratovice a okolí",
103"10.70.0.0/16" => "Beroun a okolí",
104"10.76.0.0/16" => "Plzeň - PilsFree 1",
105"10.78.0.0/16" => "Plzeň - PilsFree 2",
106"10.88.0.0/16" => "Říčany a okolí",
107"10.89.0.0/16" => "Mnichovice",
108"10.91.0.0/19" => "Velké Přílepy",
109"10.92.0.0/19" => "Libčice nad Vltavou",
110"10.93.0.0/16" => "Čelákovice",
111"10.94.0.0/17" => "Mladá Boleslav a okolí",
112"10.95.0.0/17" => "Řevnice, Dobřichovice",
113"10.96.0.0/16" => "Všenory, Karlík, Dobřichovice, Lety, Řevnice, Třebáň",
114"10.98.0.0/16" => "Unhoš, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Braškov, Horní Bezděkov a další",
115"10.99.0.0/18" => "Třebestovice",
116"10.100.0.0/16" => "Říčany",
117"10.101.0.0/16" => "Liberec",
118"10.102.0.0/16" => "Kladno, Unhoš a okolí",
119"10.103.0.0/16" => "Karlovy Vary",
120"10.104.0.0/17" => "Jablonec",
121"10.105.0.0/17" => "Kolín",
122"10.106.0.0/16" => "Kutná Hora - okres",
123"10.107.0.0/16" => "Hradec Králové",
124"10.108.0.0/16" => "České Budějovice",
125"10.109.0.0/16" => "Plzeň",
126"10.110.0.0/17" => "Chrudim",
127"10.111.0.0/16" => "Plzeň - sever",
128"10.112.0.0/16" => "Lysá nad Labem",
129"10.113.0.0/16" => "Louny, Žatec, Pobořany",
130"10.114.0.0/16" => "Příbram",
131"10.117.0.0/16" => "Turnov a okolí",
132"10.120.0.0/18" => "MH2Net - Mnichovo Hradiště směr Turnov",
133"10.128.0.0/15" => "Brno - město",
134"10.128.0.0/16" => "Brno - město",
135"10.129.0.0/16" => "okolí Brna",
136"10.129.24.0/21" => "Tišnov",
137"10.130.0.0/16" => "Severní Morava",
138"10.131.0.0/16" => "Uherské Hradiště",
139"10.132.0.0/16" => "Střední Morava - Olomouc",
140"10.133.0.0/16" => "Prostějov",
141"10.134.0.0/16" => "Přerovsko",
142"10.135.0.0/16" => "rezerva pro Moravu",
143"10.136.0.0/16" => "testovací sítě pro Moravu",
144"10.144.0.0/16" => "Zlín, Vsetín, Valašské Meziříčí - okresy",
145"10.145.0.0/16" => "Nový Jičín, Kopřivnice, Frýdek Místek - okresy",
146"10.152.0.0/16" => "Ostrava - okres",
147"10.153.0.0/16" => "Ostrava - okres",
148"10.154.0.0/16" => "Ostrava - okres",
149"10.155.0.0/16" => "Ostrava - okres",
150"10.161.0.0/16" => "Evkanet - Ostrava",
151"10.253.0.0/16" => "NCX - Zápy",
152"10.254.0.0/16" => "NCX Labyrint");
153 
1544unreal$order[0][0] = "TYP";
155$order[1][0] = "NAZEV";
156$sort_cz = 0;
1571unreal 
1584unrealfunction arfsort( $a, $yes ) {
159 global $sort_cz;
160 $sort_cz = $yes;
1611unreal usort( $a, 'arfsort_func' );
162 return $a;
163}
164 
165function arfsort_func( $a, $b ){
1665unreal global $order,$sort_cz;
1672unreal foreach($order as $f) {
1684unreal if($sort_cz=="1") {
1695unreal $a[$f[0]]=strtr($a[$f[0]], array("&#193;" => "azzz", "&#201;" => "ezzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "rzzz"));
170 $b[$f[0]]=strtr($b[$f[0]], array("&#193;" => "azzz", "&#201;" => "ezzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "rzzz"));
1711unreal }
1725unreal $strc = strcasecmp( $a[$f[0]], $b[$f[0]] );
173 if ( $strc != 0 ) {
174 return $strc;
175 }
1761unreal }
1772unreal return 0;
1781unreal}
179 
1805unrealfunction natsort_func( $a, $b ){
181 $strc = strnatcmp( $a,$b );
182 if ( $strc != 0 ) {
183 return $strc;
184 }
185 return 0;
186}
187 
1881unrealfunction show_small($test) {
189 foreach ($test as $key=>$row) {
1905unreal $oblast = $row["OBLAST"];
191 $typ = $row["TYP"];
192 $nazev = $row["NAZEV"];
193 $id = $row["ID"];
194 if($oblast==="") { $oblast="10.0.0.0/8"; }
195 $ikonka = $typ;
1961unreal if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
1975unreal// echo "<div class=\"smallicon\"><a title=\"".$nazev."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img width=\"16\" title=\"".$nazev."\" border=\"0\" src=\"ikony/$ikonka.png\"></a>&nbsp;<a title=\"".$nazev."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\">".$nazev."</a></div>\n";
198 echo "<div class=\"smallicon\"><a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblast#$oblast\"><img width=\"16\" title=\"$nazev\" border=\"0\" src=\"ikony/$ikonka.png\"></a>&nbsp;<a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblast#$oblast\">$nazev</a></div>\n";
1991unreal }
200}
201 
202function show_big($test) {
2034unreal foreach ($test as $row) {
2045unreal $oblast = $row["OBLAST"];
205 $typ = $row["TYP"];
206 $nazev = $row["NAZEV"];
207 $popis = $row["POPIS"];
208 $id = $row["ID"];
209 if($oblast==="") { $oblast="10.0.0.0/8"; }
210 $ikonka = $typ;
2111unreal if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
212 
2135unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
2141unreal }
215}
216 
217function show_groups($test) {
2183unreal $pamatuj = "";
2194unreal foreach ($test as $row) {
2205unreal $oblast = $row["OBLAST"];
221 $typ = $row["TYP"];
222 $nazev = $row["NAZEV"];
223 $popis = $row["POPIS"];
224 $id = $row["ID"];
225 if($oblast==="") { $oblast="10.0.0.0/8"; }
226 $ikonka = $typ;
227 if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
2281unreal 
2295unreal if ($typ===$pamatuj) {
230 echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
231 } else {
232 echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"title\">".$typ."</a>\n";
233 echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
234 }
235 $pamatuj = $typ;
2361unreal }
237}
238 
239function show_clouds($test) {
240 global $jmena_cloudu;
2414unreal foreach ($test as $row) {
2421unreal if($row!="") {
2434unreal $cl_popis = $jmena_cloudu["$row"];
2441unreal $cl_naz = $row;
245 $cl_nazev = $row."<br>".$cl_popis;
246 
247 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";
248 }
249 }
250}
251 
252function show_details($test) {
2534unreal $ikonka_det = $test["TYP"];
2541unreal if(!file_exists("ikony/".$ikonka_det.".png")) { $ikonka_det = "none"; }
255 echo "<div class=\"det\">";
256 echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>";
257 echo "<div class=\"info_det\">";
258 foreach ($test as $key=>$row) {
259 if($key!="HESLOEDIT") {
2604unreal echo "<strong>".$key."</strong>:&nbsp;".$test["$key"]."<br>";
2611unreal }
262 }
263 echo "</div><div class=\"info_cut\"></div></div>";
264}
265 
266 
2675unrealif(!empty($seznam)) {
268 
2691unreal$pocet_globalu = $i;
270$polozka=-1;
2715unrealfor ($g=0; $g<$pocet_globalu; ++$g) {
2721unreal 
2735unreal $file = "./".$seznam[$g];
274// $fp = fopen($file, "r");
275// $dat = fread($fp, filesize($file));
276// fclose($fp);
277 $dat = file_get_contents($file);
2781unreal $data = explode("\n", $dat);
279 $soucet = count($data);
280 
2815unreal for ($j=0; $j<=$soucet; ++$j) {
2821unreal if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) {
2835unreal if (strtoupper(substr($data[$j], 0, 4))=="TYP:") { ++$polozka; }
2841unreal $item[$polozka]=$item[$polozka].$data[$j]."<br>";
285 }
286 $trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", ": " => ":", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (chr(9)) => "");
287 $item[$polozka]=strtr($item[$polozka], $trans);
288 
289 $trans_code = array("á" => "&#225;", "é" => "&#233;", "ě" => "&#283;", "í" => "&#237;", "ó" => "&#243;", "ú" => "&#250;", "ů" => "&#367;", "ý" => "&#253;", "ž" => "&#382;", "š" => "&#353;", "č" => "&#269;", "ř" => "&#345;", "ď" => "&#271;", "" => "&#357;", "ň" => "&#328;", "Á" => "&#193;", "É" => "&#201;", "Ě" => "&#282;", "Í" => "&#205;", "Ó" => "&#211;", "Ú" => "&#218;", "Ů" => "&#366;", "Ý" => "&#221;", "Ž" => "&#381;", "Š" => "&#352;", "Č" => "&#268;", "Ř" => "&#344;", "Ď" => "&#270;", "" => "&#356;", "Ň" => "&#327;", "ž" => "&#382", "š" => "&#353");
290 $item[$polozka]=strtr($item[$polozka], $trans_code);
291 }
292}
293 
294// ------- naladujem data do 3-rozmernyho pole -------
295 
2965unrealfor ($k=0; $k<=$polozka; ++$k) {
2971unreal $ic = explode("<br>", $item[$k]);
298 $cnt_ic = (count($ic));
2995unreal for ($b=0; $b<=$cnt_ic; ++$b) {
3001unreal if($b==$cnt_ic) {
301 $items[$k]['ID']=$k;
302 } else {
303 if(($ic[$b])!="") {
304 $pole = strpos($ic[$b], ":");
305 if((((substr($ic[$b], 0, $pole))=="URL") or ((substr($ic[$b], 0, $pole))=="URLIP")) or ((substr($ic[$b], 0, $pole))=="URLINET")) {
306 $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]="<a href=\"".(substr($ic[$b], $pole+1))."\">".(substr($ic[$b], $pole+1))."</a>";
307 } else {
308 $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1));
309 }
310 }
311 }
312 }
313}
314 
315// -- zjisteni a serazeni oblasti
3164unreal$cloudy = "";
3171unreal 
3185unrealfor ($k=0; $k<=$polozka; ++$k) {
319 if ((preg_match("/OBLAST:/i", $item[$k])) and (!preg_match("/OBLAST:<br>/i", $item[$k]))) {
3204unreal preg_match('%OBLAST:(.*?)(<br)%s', $item[$k], $cloud);
321 if (!eregi($cloud[1], $cloudy)) {
322 $cloudy .= $cloud[1].";";
3231unreal }
324 }
325}
3265unreal$cloudy = substr($cloudy, 0, -1);
3271unreal$oblast = explode(";", $cloudy);
3285unreal$pocet_oblasti = count($oblast)-1;
3291unreal 
3305unreal// -- seradime oblasti (bublinkovy razeni je silene pomaly)
331usort( $oblast, 'natsort_func' );
3321unreal 
333 
334// ------- zapiseme hodnoty do cloudovskych poli -------
335 
3365unrealfor ($o=0; $o<=$pocet_oblasti; ++$o) {
3374unrealforeach ($items as $row) {
338 if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; }
339 if($row["OBLAST"]==$oblast[$o]) {
340 $obl["$oblast[$o]"][]=$row;
3413unreal }
3421unreal }
343}
344 
345// ------- prekodujem nazvy cloudu, aby nam nedelaly bordel pri spatnym kodovani -------
346 
347for ($o=0; $o<=$pocet_oblasti; $o++) {
348 $trans_code = array("á" => "&#225;", "é" => "&#233;", "ě" => "&#283;", "í" => "&#237;", "ó" => "&#243;", "ú" => "&#250;", "ů" => "&#367;", "ý" => "&#253;", "ž" => "&#382;", "š" => "&#353;", "č" => "&#269;", "ř" => "&#345;", "ď" => "&#271;", "" => "&#357;", "ň" => "&#328;", "Á" => "&#193;", "É" => "&#201;", "Ě" => "&#282;", "Í" => "&#205;", "Ó" => "&#211;", "Ú" => "&#218;", "Ů" => "&#366;", "Ý" => "&#221;", "Ž" => "&#381;", "Š" => "&#352;", "Č" => "&#268;", "Ř" => "&#344;", "Ď" => "&#270;", "" => "&#356;", "Ň" => "&#327;");
349 $jmena_cloudu["$oblast[$o]"]=strtr($jmena_cloudu["$oblast[$o]"], $trans_code);
350}
351 
352// ------- vypis ve sloupecku vlevo -------
353 
354for ($o=0; $o<=$pocet_oblasti; $o++) {
355echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n";
3564unreal if(strlen($jmena_cloudu["$oblast[$o]"])>=1) {
357 echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>";
3581unreal } else {
359 echo "</a>";
360 }
361 
3622unreal$sorted["$oblast[$o]"] = arfsort( $obl["$oblast[$o]"], 0);
3631unrealshow_small($sorted["$oblast[$o]"]);
364 
365}
366 
367?>
368 
369</div>
370<div class="items">
371 
372<?php
373 
374//############# PODMINKY ZOBRAZENI ###############//
375 
3766unrealif(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; }
3771unreal 
378 
379// ------- pokud neni uvedena oblast ani id ani groupa -------
380 
3815unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) {
3822unreal $sorted0 = arfsort( $items, 1);
3831unreal show_big($sorted0);
384 
385 echo "<div class=\"sizer\"></div></div>";
386}
387 
388// ------- pokud neni uvedena oblast ani id ale groupa ano -------
389 
3905unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) {
3912unreal $sorted0 = arfsort( $items, 1);
3921unreal show_groups($sorted0);
393 
394 echo "<div class=\"sizer\"></div></div>";
395}
396 
397// ------- pokud neni uvedena oblast ani id ale groupa je 2 -------
398 
3995unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) {
4001unreal 
401 show_clouds($oblast);
402 
403 echo "<div class=\"sizer\"></div></div>";
404}
405 
406 
407// ------- pokud je uvedena oblast i id sluzby ale groupa ne -------
408 
4095unrealif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
4101unreal 
4115unreal show_big($sorted[$czf_oblast]);
4121unreal 
413 echo "<div class=\"sizer\"></div></div>\n";
414 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
415 echo "<div class=\"contents\">\n";
4165unreal if ($czf_id<=$polozka) {
4171unreal 
4185unreal show_details($items[$czf_id]);
4191unreal 
420 } else {
421 echo "<br>Polo&#382;ka neexistuje<br>";
422 }
423 echo "</div></div>\n";
424 
425}
426 
427// ------- pokud je uvedena oblast i id sluzby i groupa -------
428 
4295unrealif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
4301unreal 
4315unreal show_groups($sorted[$czf_oblast]);
4321unreal 
433 echo "<div class=\"sizer\"></div></div>\n";
434 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
435 echo "<div class=\"contents\">\n";
4365unreal if ($czf_id<=$polozka) {
4371unreal 
4385unreal show_details($items[$czf_id]);
4391unreal 
440 } else {
441 echo "<br>Polo&#382;ka neexistuje<br>";
442 }
443 echo "</div></div>\n";
444 
445}
446 
447 
448// ------- pokud neni uvedena oblast ale id a groupa ne -------
449 
4505unrealif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
451if ($czf_id<=$polozka) {
4521unreal 
4535unreal if(($items[$czf_id]["OBLAST"])=="") {
4541unreal $sorted4 = $sorted["10.0.0.0/8"];
455 } else {
4565unreal $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
4571unreal }
458 
459 show_big($sorted4);
460 
461} else {
462 
4632unreal $sorted0 = arfsort( $items, 1);
4641unreal show_big($sorted0);
465 
466}
467 
468 
469 echo "<div class=\"sizer\"></div></div>\n";
470 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
471 echo "<div class=\"contents\">\n";
4725unreal if ($czf_id<=$polozka) {
4731unreal 
4745unreal show_details($items[$czf_id]);
4751unreal 
476 } else {
477 echo "<br>Polo&#382;ka neexistuje<br>";
478 }
479 echo "</div></div>\n";
480 
481}
482 
483// ------- pokud neni uvedena oblast ale id a groupa ano -------
484 
4855unrealif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
486if ($czf_id<=$polozka) {
4871unreal 
4885unreal if(($items[$czf_id]["OBLAST"])=="") {
4891unreal $sorted4 = $sorted["10.0.0.0/8"];
490 } else {
4915unreal $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
4921unreal }
493 
494 show_groups($sorted4);
495 
496} else {
497 
4982unreal $sorted0 = arfsort( $items, 1);
4991unreal show_groups($sorted0);
500 
501}
502 
503 
504 echo "<div class=\"sizer\"></div></div>\n";
505 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
506 echo "<div class=\"contents\">\n";
5075unreal if ($czf_id<=$polozka) {
5081unreal 
5095unreal show_details($items[$czf_id]);
5101unreal 
511 } else {
512 echo "<br>Polo&#382;ka neexistuje<br>";
513 }
514 echo "</div></div>\n";
515 
516}
517 
518// ------- pokud je uvedena oblast ale ne id ani groupa -------
519 
5205unrealif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
5211unreal 
5225unreal show_big($sorted[$czf_oblast]);
5231unreal 
524 echo "<div class=\"sizer\"></div></div>\n";
525 
526}
527 
528// ------- pokud je uvedena oblast a groupa ale ne id -------
529 
5305unrealif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
5311unreal 
5325unreal show_groups($sorted[$czf_oblast]);
5331unreal 
534 echo "<div class=\"sizer\"></div></div>\n";
535 
536}
537 
5385unrealunset($oblast);
539unset($item);
540unset($items);
5411unreal 
542} // end
543 
5445unrealunset($seznam);
545 
5461unreal?>
547 
548<div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;</div>
549</body>
550</html>

Powered by WebSVN 2.2.1