jablonka.czprosek.czf

czf4bfu

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

 

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;
711unreal$seznam = array();
85unrealecho "<!--CZF4BFU ";
97unrealif ($dir = opendir(".")) {
101unreal while (($file = readdir($dir)) !== false)
115unreal if (preg_match('/^(global|local)-.*.txt/',$file)) {
12 echo $file." ";
13 $seznam[$i] = $file;
14 ++$i;
15 }
161unreal}
175unrealecho "-->\n";
181unreal?>
19 
20<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
21<html>
225unreal<head>
23 <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.3 (c) Jirka Klír 2008 for CZFree.net ;-) # -->
24 <title>CZF4BFU</title>
25 <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
26 <meta http-equiv="Content-language" content="cz" />
27 <meta name="author" content="Unreal][, http://www.jklir.net">
28 <link href="styl.css" rel="stylesheet" type="text/css">
29</head>
301unreal<body style="background: #D4D0C8">
31 
325unreal<h1>Rozcestn&#237;k CZFree.Net</h1>
331unreal 
34<?php
35$group = $_GET["group"];
365unreal$czf_group = $_GET["group"];
37$czf_oblast = $_GET["oblast"];
38$czf_id = $_GET["id"];
39 
401unrealif($group!=2) {
415unreal if($czf_oblast!="") { $aname = "#".$czf_oblast; } else { $aname = ""; }
421unreal $group = !$group;
435unreal $text = (!empty($group)) ? "seskupit" : "neseskupovat";
44 echo "<a class=\"group\" href=\"?group=".$group."&amp;id=".$czf_id."&amp;oblast=".$czf_oblast.$aname."\">$text podle typu slu&#382;eb</a>";
451unreal} else {
46 echo "<a class=\"group\" href=\"#\">&nbsp;</a>";
47}
48?>
49 
50<div class="tree">
51 <a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>cel&#225; s&#237;&#357;</a>
52 <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>
53 <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>
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řešovice, 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, Lužiny, Ř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 - Holešovice",
71"10.23.0.0/16" => "Praha - Vinohrady, Vršovice, Žižkov",
72"10.24.0.0/16" => "Praha - Jarov, Strašnice, Malešice, 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 - Vršovice",
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" => "Všenory, Karlík, Dobřichovice, Lety, Řevnice, Třebáň",
111"10.98.0.0/16" => "Unhoš, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Braškov, 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 Hradiště 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" => "Tišnov",
134"10.130.0.0/16" => "Severní Morava",
135"10.131.0.0/16" => "Uherské Hradiště",
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, Valašské 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 
1514unreal$sort_cz = 0;
1521unreal 
1534unrealfunction arfsort( $a, $yes ) {
154 global $sort_cz;
155 $sort_cz = $yes;
1561unreal usort( $a, 'arfsort_func' );
157 return $a;
158}
159 
160function arfsort_func( $a, $b ){
1619unreal global $sort_cz;
162 $order[0][0] = "TYP";
163 $order[1][0] = "NAZEV";
1642unreal foreach($order as $f) {
1654unreal if($sort_cz=="1") {
1665unreal $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"));
167 $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"));
1681unreal }
1695unreal $strc = strcasecmp( $a[$f[0]], $b[$f[0]] );
170 if ( $strc != 0 ) {
171 return $strc;
172 }
1731unreal }
1742unreal return 0;
1751unreal}
176 
1775unrealfunction natsort_func( $a, $b ){
178 $strc = strnatcmp( $a,$b );
179 if ( $strc != 0 ) {
180 return $strc;
181 }
182 return 0;
183}
184 
1851unrealfunction show_small($test) {
186 foreach ($test as $key=>$row) {
1877unreal $oblastx = $row["OBLAST"];
1885unreal $typ = $row["TYP"];
189 $nazev = $row["NAZEV"];
190 $id = $row["ID"];
191 $ikonka = $typ;
1921unreal if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
1937unreal echo "<div class=\"smallicon\"><a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblastx#$oblastx\"><img width=\"16\" title=\"$nazev\" border=\"0\" src=\"ikony/$ikonka.png\"></a>&nbsp;<a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblastx#$oblastx\">$nazev</a></div>\n";
1941unreal }
195}
196 
197function show_big($test) {
1984unreal foreach ($test as $row) {
1997unreal $oblastx = $row["OBLAST"];
2005unreal $typ = $row["TYP"];
201 $nazev = $row["NAZEV"];
202 $popis = $row["POPIS"];
203 $id = $row["ID"];
204 $ikonka = $typ;
2051unreal if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
206 
2077unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
2081unreal }
209}
210 
211function show_groups($test) {
2123unreal $pamatuj = "";
2134unreal foreach ($test as $row) {
2147unreal $oblastx = $row["OBLAST"];
2155unreal $typ = $row["TYP"];
216 $nazev = $row["NAZEV"];
217 $popis = $row["POPIS"];
218 $id = $row["ID"];
219 $ikonka = $typ;
220 if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
2211unreal 
2225unreal if ($typ===$pamatuj) {
2237unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
2245unreal } else {
225 echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"title\">".$typ."</a>\n";
2267unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
2275unreal }
228 $pamatuj = $typ;
2291unreal }
230}
231 
232function show_clouds($test) {
233 global $jmena_cloudu;
2344unreal foreach ($test as $row) {
2351unreal if($row!="") {
2364unreal $cl_popis = $jmena_cloudu["$row"];
2371unreal $cl_naz = $row;
238 $cl_nazev = $row."<br>".$cl_popis;
239 
240 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";
241 }
242 }
243}
244 
245function show_details($test) {
2464unreal $ikonka_det = $test["TYP"];
2471unreal if(!file_exists("ikony/".$ikonka_det.".png")) { $ikonka_det = "none"; }
248 echo "<div class=\"det\">";
249 echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>";
250 echo "<div class=\"info_det\">";
251 foreach ($test as $key=>$row) {
2529unreal if(($key!="HESLOEDIT") and (substr($key, 0, 1)!="#")) {
2534unreal echo "<strong>".$key."</strong>:&nbsp;".$test["$key"]."<br>";
2541unreal }
255 }
256 echo "</div><div class=\"info_cut\"></div></div>";
257}
258 
259 
2605unrealif(!empty($seznam)) {
261 
26211unreal$item = array();
263$items = array();
264$oblast = array();
265 
2661unreal$pocet_globalu = $i;
267$polozka=-1;
2685unrealfor ($g=0; $g<$pocet_globalu; ++$g) {
2691unreal 
2705unreal $file = "./".$seznam[$g];
271// $fp = fopen($file, "r");
272// $dat = fread($fp, filesize($file));
273// fclose($fp);
274 $dat = file_get_contents($file);
2751unreal $data = explode("\n", $dat);
276 $soucet = count($data);
277 
2785unreal for ($j=0; $j<=$soucet; ++$j) {
2791unreal if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) {
2805unreal if (strtoupper(substr($data[$j], 0, 4))=="TYP:") { ++$polozka; }
2811unreal $item[$polozka]=$item[$polozka].$data[$j]."<br>";
282 }
283 $trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", ": " => ":", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (chr(9)) => "");
284 $item[$polozka]=strtr($item[$polozka], $trans);
285 
286 $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");
287 $item[$polozka]=strtr($item[$polozka], $trans_code);
288 }
289}
290 
291// ------- naladujem data do 3-rozmernyho pole -------
292 
2935unrealfor ($k=0; $k<=$polozka; ++$k) {
2949unreal if ((preg_match("/OBLAST:/i", $item[$k])) and (!preg_match("/OBLAST:<br>/i", $item[$k]))) {
295 preg_match('%OBLAST:(.*?)(<br)%s', $item[$k], $cloud);
29611unreal if (!isset($obl["$cloud[1]"])) {
2979unreal $oblast[] = $cloud[1];
298 $jmena_cloudu["$cloud[1]"]=strtr($jmena_cloudu["$cloud[1]"], 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;"));
299 }
300 } else {
301 $cloud[1] = "10.0.0.0/8";
302 }
3031unreal $ic = explode("<br>", $item[$k]);
304 $cnt_ic = (count($ic));
3055unreal for ($b=0; $b<=$cnt_ic; ++$b) {
3069unreal if($b===$cnt_ic) {
3071unreal $items[$k]['ID']=$k;
308 } else {
309 if(($ic[$b])!="") {
310 $pole = strpos($ic[$b], ":");
311 if((((substr($ic[$b], 0, $pole))=="URL") or ((substr($ic[$b], 0, $pole))=="URLIP")) or ((substr($ic[$b], 0, $pole))=="URLINET")) {
312 $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]="<a href=\"".(substr($ic[$b], $pole+1))."\">".(substr($ic[$b], $pole+1))."</a>";
313 } else {
314 $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1));
315 }
316 }
317 }
318 }
31911unreal $obl["$cloud[1]"][] = $items[$k];
3201unreal}
321 
3229unrealunset($item);
3235unreal$pocet_oblasti = count($oblast)-1;
3241unreal 
3255unreal// -- seradime oblasti (bublinkovy razeni je silene pomaly)
326usort( $oblast, 'natsort_func' );
3271unreal 
328 
329// ------- vypis ve sloupecku vlevo -------
330 
331for ($o=0; $o<=$pocet_oblasti; $o++) {
332echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n";
3339unreal if(isset($jmena_cloudu["$oblast[$o]"])) {
3344unreal echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>";
3351unreal } else {
336 echo "</a>";
337 }
338 
3399unreal $sorted["$oblast[$o]"] = arfsort( $obl["$oblast[$o]"], 0);
340 show_small($sorted["$oblast[$o]"]);
3411unreal 
342}
343 
344?>
345 
346</div>
347<div class="items">
348 
349<?php
350 
351//############# PODMINKY ZOBRAZENI ###############//
352 
3536unrealif(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; }
3541unreal 
355 
356// ------- pokud neni uvedena oblast ani id ani groupa -------
357 
3585unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) {
3592unreal $sorted0 = arfsort( $items, 1);
3601unreal show_big($sorted0);
361 
362 echo "<div class=\"sizer\"></div></div>";
363}
364 
365// ------- pokud neni uvedena oblast ani id ale groupa ano -------
366 
3675unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) {
3682unreal $sorted0 = arfsort( $items, 1);
3691unreal show_groups($sorted0);
370 
371 echo "<div class=\"sizer\"></div></div>";
372}
373 
374// ------- pokud neni uvedena oblast ani id ale groupa je 2 -------
375 
3765unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) {
3771unreal 
378 show_clouds($oblast);
379 
380 echo "<div class=\"sizer\"></div></div>";
381}
382 
383 
384// ------- pokud je uvedena oblast i id sluzby ale groupa ne -------
385 
3865unrealif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
3871unreal 
3888unreal show_big($sorted["$czf_oblast"]);
3891unreal 
390 echo "<div class=\"sizer\"></div></div>\n";
391 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
392 echo "<div class=\"contents\">\n";
3935unreal if ($czf_id<=$polozka) {
3941unreal 
3955unreal show_details($items[$czf_id]);
3961unreal 
397 } else {
398 echo "<br>Polo&#382;ka neexistuje<br>";
399 }
400 echo "</div></div>\n";
401 
402}
403 
404// ------- pokud je uvedena oblast i id sluzby i groupa -------
405 
4065unrealif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
4071unreal 
4088unreal show_groups($sorted["$czf_oblast"]);
4091unreal 
410 echo "<div class=\"sizer\"></div></div>\n";
411 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
412 echo "<div class=\"contents\">\n";
4135unreal if ($czf_id<=$polozka) {
4141unreal 
4155unreal show_details($items[$czf_id]);
4161unreal 
417 } else {
418 echo "<br>Polo&#382;ka neexistuje<br>";
419 }
420 echo "</div></div>\n";
421 
422}
423 
424 
425// ------- pokud neni uvedena oblast ale id a groupa ne -------
426 
4275unrealif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
428if ($czf_id<=$polozka) {
4291unreal 
4305unreal if(($items[$czf_id]["OBLAST"])=="") {
4311unreal $sorted4 = $sorted["10.0.0.0/8"];
432 } else {
4335unreal $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
4341unreal }
435 
436 show_big($sorted4);
437 
438} else {
439 
4402unreal $sorted0 = arfsort( $items, 1);
4411unreal show_big($sorted0);
442 
443}
444 
445 
446 echo "<div class=\"sizer\"></div></div>\n";
447 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
448 echo "<div class=\"contents\">\n";
4495unreal if ($czf_id<=$polozka) {
4501unreal 
4515unreal show_details($items[$czf_id]);
4521unreal 
453 } else {
454 echo "<br>Polo&#382;ka neexistuje<br>";
455 }
456 echo "</div></div>\n";
457 
458}
459 
460// ------- pokud neni uvedena oblast ale id a groupa ano -------
461 
4625unrealif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
463if ($czf_id<=$polozka) {
4641unreal 
4655unreal if(($items[$czf_id]["OBLAST"])=="") {
4661unreal $sorted4 = $sorted["10.0.0.0/8"];
467 } else {
4685unreal $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
4691unreal }
470 
471 show_groups($sorted4);
472 
473} else {
474 
4752unreal $sorted0 = arfsort( $items, 1);
4761unreal show_groups($sorted0);
477 
478}
479 
480 
481 echo "<div class=\"sizer\"></div></div>\n";
482 echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
483 echo "<div class=\"contents\">\n";
4845unreal if ($czf_id<=$polozka) {
4851unreal 
4865unreal show_details($items[$czf_id]);
4871unreal 
488 } else {
489 echo "<br>Polo&#382;ka neexistuje<br>";
490 }
491 echo "</div></div>\n";
492 
493}
494 
495// ------- pokud je uvedena oblast ale ne id ani groupa -------
496 
4975unrealif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
4981unreal 
4998unreal show_big($sorted["$czf_oblast"]);
5001unreal 
501 echo "<div class=\"sizer\"></div></div>\n";
502 
503}
504 
505// ------- pokud je uvedena oblast a groupa ale ne id -------
506 
5075unrealif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
5081unreal 
5098unreal show_groups($sorted["$czf_oblast"]);
5101unreal 
511 echo "<div class=\"sizer\"></div></div>\n";
512 
513}
514 
51511unrealunset($items);
516 
5171unreal} // end
518 
519?>
520 
521<div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;</div>
522</body>
523</html>

Powered by WebSVN 2.2.1