jablonka.czprosek.czf

czf4bfu

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

 

Line No. Rev Author Line
11unreal<?php
25unrealerror_reporting(0);
33unreal// Nastavime, aby se nam zbytecne nelogovaly chyby
44unrealini_set('log_errors',false);
512unreal// max_execution_time, pro fungovani je nutne vypnout Safe_mod
6set_time_limit(0);
73unreal 
811unreal$seznam = array();
95unrealecho "<!--CZF4BFU ";
1016unrealif (function_exists('scandir')) {
11 $scan = scandir(".");
12 foreach($scan as $file) {
13 if (preg_match('/^(?:global|local)-.*.txt$/',$file)) {
14 echo $file." ";
15 $seznam[] = $file;
16 }
17 }
18} else {
19 if ($dir = opendir(".")) {
20 while (($file = readdir($dir)) !== false)
21 if (preg_match('/^(?:global|local)-.*.txt$/',$file)) {
22 echo $file." ";
23 $seznam[] = $file;
24 }
25 }
261unreal}
275unrealecho "-->\n";
281unreal?>
29 
30<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
31<html>
325unreal<head>
3316unreal <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.6 (c) Jirka Klír 2010 for CZFree.net ;-) # -->
34 <title>CZF4BFU<?php if($_GET["oblast"]!="") echo " | ".$_GET["oblast"]; ?><?php if($_GET["group"]=="2") echo " | Cloudy"; ?></title>
355unreal <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
3612unreal <meta http-equiv="Content-language" content="cs" />
375unreal <meta name="author" content="Unreal][, http://www.jklir.net">
38 <link href="styl.css" rel="stylesheet" type="text/css">
3914unreal <link rel="SHORTCUT ICON" href="favicon.ico">
405unreal</head>
4112unreal<body>
421unreal 
435unreal<h1>Rozcestn&#237;k CZFree.Net</h1>
441unreal 
45<?php
46$group = $_GET["group"];
475unreal$czf_group = $_GET["group"];
48$czf_oblast = $_GET["oblast"];
49$czf_id = $_GET["id"];
50 
511unrealif($group!=2) {
525unreal if($czf_oblast!="") { $aname = "#".$czf_oblast; } else { $aname = ""; }
531unreal $group = !$group;
545unreal $text = (!empty($group)) ? "seskupit" : "neseskupovat";
55 echo "<a class=\"group\" href=\"?group=".$group."&amp;id=".$czf_id."&amp;oblast=".$czf_oblast.$aname."\">$text podle typu slu&#382;eb</a>";
561unreal} else {
57 echo "<a class=\"group\" href=\"#\">&nbsp;</a>";
58}
59?>
6014unreal<div class="sizer"></div>
611unreal 
62<div class="tree">
63 <a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>cel&#225; s&#237;&#357;</a>
6416unreal <div class="smallicon"><a title="seznam slu&#382;eb" href="?oblast="><img class="dot" src="img/point.png"><span>seznam slu&#382;eb</span></a></div>
65 <div class="smallicon"><a title="seznam cloud&#367;" href="?group=2"><img class="dot" src="img/point.png"><span>seznam cloud&#367;</span></a></div>
661unreal 
67 
68<?php
69$jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network",
70"10.2.0.0/16" => "Praha - Connection.cz",
71"10.10.0.0/16" => "reserved",
72"10.11.0.0/16" => "Praha - Střešovice, Břevnov, Hradčany, Strahov",
73"10.12.0.0/16" => "Praha - Nusle, Michle, Ruská ul.",
74"10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Lužiny, Řeporyje",
75"10.15.0.0/16" => "Praha - Malvazinky, Košíře, Motol",
76"10.16.0.0/16" => "Praha - Barrandov",
77"10.17.0.0/16" => "Praha - Záběhlice, Zahradní město",
78"10.18.0.0/16" => "Praha - Dejvice, Podbaba",
79"10.19.0.0/16" => "Praha - Suchdol, Lysolaje, Hanspaulka, Horoměřice",
80"10.20.0.0/16" => "Praha - P6 - Dědina, Liboc, Ruzyně",
81"10.21.0.0/16" => "Praha - Řepy, Zličín",
82"10.22.0.0/16" => "Praha - Holešovice",
83"10.23.0.0/16" => "Praha - Vinohrady, Vršovice, Žižkov",
84"10.24.0.0/16" => "Praha - Jarov, Strašnice, Malešice, Skalka",
85"10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník",
86"10.26.0.0/16" => "Praha - Lipence, Zbraslav, Radotín",
87"10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky",
88"10.28.0.0/16" => "Praha - VYPAL (VYsočany, PAlmovka, Libeň)",
89"10.30.0.0/16" => "Praha - Hostivař, Horní Měcholupy, Dolní Měcholupy, Běchovice",
90"10.31.0.0/16" => "Praha - Bohnice, Čimice",
91"10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna",
92"10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice",
93"10.34.0.0/16" => "Praha - Letná, Štrossmajerák",
94"10.37.0.0/16" => "Praha - Radotín",
95"10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky",
96"10.39.0.0/16" => "Praha - Šibřina, Újezd nad Lesy, Koloděje, Květnice",
97"10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly",
98"10.41.0.0/16" => "HMNet - Horní Měcholupy",
99"10.43.0.0/16" => "Řepná pole, Vinoř",
100"10.44.0.0/16" => "Praha - Podolí",
101"10.48.0.0/16" => "Praha 2, 4, 10",
102"10.49.0.0/16" => "Praha 1, 3",
103"10.50.0.0/16" => "Praha - Centrum Prahy",
104"10.51.0.0/16" => "Praha - Petřiny",
105"10.52.0.0/16" => "Praha - Vršovice",
106"10.55.0.0/16" => "Connection.cz",
107"10.63.0.0/17" => "Rakovník a okolí",
10816unreal"10.64.0.0/17" => "Křivoklátsko a okolí",
1091unreal"10.66.0.0/16" => "Hostivice, Chýně, Ptice, Červený Újezd, Sobín",
110"10.67.0.0/16" => "Rudná u Prahy, Ptice, Úhonice, Drahelčice",
111"10.69.0.0/17" => "Mělník a okolí",
112"10.69.128.0/17" => "Neratovice a okolí",
113"10.70.0.0/16" => "Beroun a okolí",
114"10.76.0.0/16" => "Plzeň - PilsFree 1",
115"10.78.0.0/16" => "Plzeň - PilsFree 2",
116"10.88.0.0/16" => "Říčany a okolí",
117"10.89.0.0/16" => "Mnichovice",
118"10.91.0.0/19" => "Velké Přílepy",
119"10.92.0.0/19" => "Libčice nad Vltavou",
120"10.93.0.0/16" => "Čelákovice",
121"10.94.0.0/17" => "Mladá Boleslav a okolí",
122"10.95.0.0/17" => "Řevnice, Dobřichovice",
123"10.96.0.0/16" => "Všenory, Karlík, Dobřichovice, Lety, Řevnice, Třebáň",
124"10.98.0.0/16" => "Unhoš, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Braškov, Horní Bezděkov a další",
125"10.99.0.0/18" => "Třebestovice",
126"10.100.0.0/16" => "Říčany",
127"10.101.0.0/16" => "Liberec",
128"10.102.0.0/16" => "Kladno, Unhoš a okolí",
129"10.103.0.0/16" => "Karlovy Vary",
130"10.104.0.0/17" => "Jablonec",
131"10.105.0.0/17" => "Kolín",
132"10.106.0.0/16" => "Kutná Hora - okres",
133"10.107.0.0/16" => "Hradec Králové",
134"10.108.0.0/16" => "České Budějovice",
135"10.109.0.0/16" => "Plzeň",
13616unreal"10.110.0.0/17" => "Chrudim, Pradubice a okolí",
137"10.110.128.0/17" => "Starý Plzenec",
138"10.111.0.0/16" => "Třemošná a okolí, Plzeň - sever",
1391unreal"10.112.0.0/16" => "Lysá nad Labem",
140"10.113.0.0/16" => "Louny, Žatec, Pobořany",
141"10.114.0.0/16" => "Příbram",
14216unreal"10.115.0.0/16" => "Nové Strašecí a okolí",
1431unreal"10.117.0.0/16" => "Turnov a okolí",
144"10.120.0.0/18" => "MH2Net - Mnichovo Hradiště směr Turnov",
145"10.128.0.0/15" => "Brno - město",
146"10.128.0.0/16" => "Brno - město",
147"10.129.0.0/16" => "okolí Brna",
148"10.129.24.0/21" => "Tišnov",
149"10.130.0.0/16" => "Severní Morava",
150"10.131.0.0/16" => "Uherské Hradiště",
151"10.132.0.0/16" => "Střední Morava - Olomouc",
152"10.133.0.0/16" => "Prostějov",
153"10.134.0.0/16" => "Přerovsko",
15416unreal"10.135.0.0/16" => "BrNet - Brno",
1551unreal"10.136.0.0/16" => "testovací sítě pro Moravu",
156"10.144.0.0/16" => "Zlín, Vsetín, Valašské Meziříčí - okresy",
157"10.145.0.0/16" => "Nový Jičín, Kopřivnice, Frýdek Místek - okresy",
158"10.152.0.0/16" => "Ostrava - okres",
159"10.153.0.0/16" => "Ostrava - okres",
160"10.154.0.0/16" => "Ostrava - okres",
161"10.155.0.0/16" => "Ostrava - okres",
162"10.161.0.0/16" => "Evkanet - Ostrava",
16316unreal"10.193.64.0/18" => "Varnsdorf a okolí",
164"10.225.0.0/16" => "CZFree-ol - Olomouc",
1651unreal"10.253.0.0/16" => "NCX - Zápy",
166"10.254.0.0/16" => "NCX Labyrint");
167 
1684unreal$sort_cz = 0;
1691unreal 
17012unrealfunction arfsort($a,$yes=0) {
1714unreal global $sort_cz;
172 $sort_cz = $yes;
17312unreal usort($a,'arfsort_func');
1741unreal return $a;
175}
176 
17712unrealfunction arfsort_func($a,$b){
1789unreal global $sort_cz;
179 $order[0][0] = "TYP";
180 $order[1][0] = "NAZEV";
1812unreal foreach($order as $f) {
1824unreal if($sort_cz=="1") {
1835unreal $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"));
184 $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"));
1851unreal }
18612unreal $strc = strcasecmp($a[$f[0]],$b[$f[0]]);
187 if ($strc!=0) {
1885unreal return $strc;
189 }
1901unreal }
1912unreal return 0;
1921unreal}
193 
19412unrealfunction natsort_func($a,$b){
195 $strc = strnatcmp($a,$b);
196 if ($strc!=0) {
1975unreal return $strc;
198 }
199 return 0;
200}
201 
20216unrealfunction get_icon($bfufile, $icon, $typ) {
203 if(isset($icon)) {
204 preg_match('/^(.*)\/([^\/]+)$/i', $icon, $iconname);
205 $ikonka = "cache/".$bfufile."_".$iconname[2];
206 if(!file_exists($ikonka)) {
207 $ikonka = "ikony/".$typ.".png";
208 if(!file_exists($ikonka)) {
209 $ikonka = "ikony/none.png";
210 }
211 }
212 } else {
213 $ikonka = "ikony/".$typ.".png";
214 if(!file_exists($ikonka)) { $ikonka = "ikony/none.png"; }
215 }
216 return $ikonka;
217}
218 
2191unrealfunction show_small($test) {
220 foreach ($test as $key=>$row) {
2217unreal $oblastx = $row["OBLAST"];
2225unreal $typ = $row["TYP"];
223 $nazev = $row["NAZEV"];
224 $id = $row["ID"];
22516unreal $ikonka = $row["BFUICON"];
226 echo "<div class=\"smallicon\"><a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblastx#$oblastx\"><img title=\"$nazev\" src=\"$ikonka\"><span>$nazev</span></a></div>\n";
2271unreal }
228}
229 
230function show_big($test) {
2314unreal foreach ($test as $row) {
2327unreal $oblastx = $row["OBLAST"];
2335unreal $typ = $row["TYP"];
234 $nazev = $row["NAZEV"];
235 $popis = $row["POPIS"];
236 $id = $row["ID"];
23716unreal $ikonka = $row["BFUICON"];
238 echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
2391unreal }
240}
241 
242function show_groups($test) {
2433unreal $pamatuj = "";
24412unreal $x = 0;
2454unreal foreach ($test as $row) {
2467unreal $oblastx = $row["OBLAST"];
2475unreal $typ = $row["TYP"];
248 $nazev = $row["NAZEV"];
249 $popis = $row["POPIS"];
250 $id = $row["ID"];
25116unreal $ikonka = $row["BFUICON"];
2521unreal 
2535unreal if ($typ===$pamatuj) {
25416unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
2555unreal } else {
25612unreal if($x==0) { $nomargin = "nomargin "; $x==1; } else { $nomargin = ""; }
257 echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"".$nomargin."title\">".$typ."</a>\n";
25816unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
2595unreal }
260 $pamatuj = $typ;
2611unreal }
262}
263 
264function show_clouds($test) {
265 global $jmena_cloudu;
2664unreal foreach ($test as $row) {
2671unreal if($row!="") {
2684unreal $cl_popis = $jmena_cloudu["$row"];
2691unreal $cl_naz = $row;
270 $cl_nazev = $row."<br>".$cl_popis;
271 
27216unreal echo "<div class=\"icon2\"><a title=\"".$cl_popis."\" href=\"?oblast=".$cl_naz."#".$cl_naz."\"><img title=\"".$cl_popis."\" src=\"img/cloud.png\"><br>".$cl_nazev."</a></div>\n";
2731unreal }
274 }
275}
276 
277function show_details($test) {
2784unreal $ikonka_det = $test["TYP"];
27916unreal $ikonka_url = $test["BFUICON"];
2801unreal echo "<div class=\"det\">";
28116unreal echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"$ikonka_url\"></div>";
2821unreal echo "<div class=\"info_det\">";
283 foreach ($test as $key=>$row) {
28416unreal if(!preg_match('%^(?:HESLOEDIT|SOURCE|BFUFILE|BFUICON|#)%',$key)) {
28514unreal if (preg_match('%^URL(?:|IP|INET)%',$key)) {
286 $row = "<a href=\"".$row."\">".$row."</a>";
287 }
288 echo "<strong>".$key."</strong>:&nbsp;".$row."<br>";
2891unreal }
290 }
291 echo "</div><div class=\"info_cut\"></div></div>";
292}
293 
2945unrealif(!empty($seznam)) {
295 
29611unreal$item = array();
297$items = array();
298$oblast = array();
299 
3001unreal$polozka=-1;
30116unreal$patterns = array('%\:(?:\s|\t)+%', '%(?:\s|\t)+$%', '%(?:\s|\t)\\\\$%', '%OBLAST\:$%i');
302$replacements = array(":", "", "", "OBLAST:10.0.0.0/8");
303$trans = array((chr(13)) => "", (chr(9)) => "", "á" => "&#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");
3041unreal 
30512unrealforeach($seznam as $fil) {
306 $dat = file_get_contents($fil);
3071unreal $data = explode("\n", $dat);
308 $soucet = count($data);
309 
3105unreal for ($j=0; $j<=$soucet; ++$j) {
3111unreal if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) {
31216unreal if (preg_match('%^TYP:%i',$data[$j])) {
313 $polozka++;
314 preg_match('/^(?:global|local)-(.*).txt$/i', $fil, $filen);
315 $item[$polozka]=$item[$polozka]."BFUFILE:".$filen[1]."<br>";
316 }
317 $data[$j] = preg_replace($patterns, $replacements, $data[$j]);
318 $data[$j] = strtr($data[$j], $trans);
3191unreal $item[$polozka]=$item[$polozka].$data[$j]."<br>";
320 }
321 }
322}
323 
324// ------- naladujem data do 3-rozmernyho pole -------
325 
3265unrealfor ($k=0; $k<=$polozka; ++$k) {
32712unreal if(preg_match('%OBLAST:%i', $item[$k])) {
328 preg_match('%OBLAST:(.*?)(<br)%i', $item[$k], $cloud);
32911unreal if (!isset($obl["$cloud[1]"])) {
3309unreal $oblast[] = $cloud[1];
331 $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;"));
332 }
333 } else {
334 $cloud[1] = "10.0.0.0/8";
335 }
33612unreal 
3371unreal $ic = explode("<br>", $item[$k]);
338 $cnt_ic = (count($ic));
3395unreal for ($b=0; $b<=$cnt_ic; ++$b) {
3409unreal if($b===$cnt_ic) {
34116unreal $items[$k]["BFUICON"]=get_icon($items[$k]["BFUFILE"], $items[$k]["ICON"], $items[$k]["TYP"]);
34212unreal $items[$k]["ID"]=$k;
3431unreal } else {
344 if(($ic[$b])!="") {
345 $pole = strpos($ic[$b], ":");
34614unreal $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1));
3471unreal }
348 }
349 }
35011unreal $obl["$cloud[1]"][] = $items[$k];
3511unreal}
352 
3539unrealunset($item);
35412unrealunset($trans);
3555unreal$pocet_oblasti = count($oblast)-1;
3561unreal 
3575unreal// -- seradime oblasti (bublinkovy razeni je silene pomaly)
35812unrealusort($oblast,'natsort_func');
3591unreal 
360 
361// ------- vypis ve sloupecku vlevo -------
362 
363for ($o=0; $o<=$pocet_oblasti; $o++) {
364echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n";
36512unreal if(isset($jmena_cloudu["$oblast[$o]"])) {
366 echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>";
367 } else {
368 echo "</a>";
369 }
370 $sorted["$oblast[$o]"] = arfsort($obl["$oblast[$o]"]);
371 show_small($sorted["$oblast[$o]"]);
3721unreal}
37312unrealunset($obl);
3741unreal?>
375 
376</div>
377<div class="items">
378 
379<?php
380 
381//############# PODMINKY ZOBRAZENI ###############//
382 
3836unrealif(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; }
3841unreal 
385// ------- pokud neni uvedena oblast ani id ani groupa -------
386 
3875unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) {
38812unreal $sorted0 = arfsort($items, 1);
389 show_big($sorted0);
390 echo "<div class=\"sizer\"></div></div>";
3911unreal}
392 
393// ------- pokud neni uvedena oblast ani id ale groupa ano -------
394 
39512unrealelseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) {
396 $sorted0 = arfsort($items, 1);
397 show_groups($sorted0);
398 echo "<div class=\"sizer\"></div></div>";
3991unreal}
400 
401// ------- pokud neni uvedena oblast ani id ale groupa je 2 -------
402 
40312unrealelseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) {
404 show_clouds($oblast);
405 echo "<div class=\"sizer\"></div></div>";
4061unreal}
407 
408 
409// ------- pokud je uvedena oblast i id sluzby ale groupa ne -------
410 
41112unrealelseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
412 show_big($sorted["$czf_oblast"]);
413 echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
414 if ($czf_id<=$polozka) {
415 show_details($items[$czf_id]);
416 } else {
417 echo "<br>Polo&#382;ka neexistuje<br>";
418 }
419 echo "</div></div>\n";
4201unreal}
421 
422// ------- pokud je uvedena oblast i id sluzby i groupa -------
423 
42412unrealelseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
425 show_groups($sorted["$czf_oblast"]);
426 echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
427 if ($czf_id<=$polozka) {
428 show_details($items[$czf_id]);
429 } else {
430 echo "<br>Polo&#382;ka neexistuje<br>";
431 }
432 echo "</div></div>\n";
4331unreal}
434 
435 
436// ------- pokud neni uvedena oblast ale id a groupa ne -------
437 
43812unrealelseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
439 if ($czf_id<=$polozka) {
440 if(($items[$czf_id]["OBLAST"])=="") {
441 $sorted4 = $sorted["10.0.0.0/8"];
442 } else {
443 $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
444 }
445 show_big($sorted4);
446 } else {
447 $sorted0 = arfsort($items, 1);
448 show_big($sorted0);
449 }
4501unreal 
45112unreal echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
452 if ($czf_id<=$polozka) {
453 show_details($items[$czf_id]);
454 } else {
455 echo "<br>Polo&#382;ka neexistuje<br>";
456 }
457 echo "</div></div>\n";
4581unreal}
459 
460// ------- pokud neni uvedena oblast ale id a groupa ano -------
461 
46212unrealelseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
463 if ($czf_id<=$polozka) {
464 if(($items[$czf_id]["OBLAST"])=="") {
465 $sorted4 = $sorted["10.0.0.0/8"];
466 } else {
467 $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
468 }
469 show_groups($sorted4);
470 } else {
471 $sorted0 = arfsort($items, 1);
472 show_groups($sorted0);
473 }
4741unreal 
47512unreal echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
476 if ($czf_id<=$polozka) {
477 show_details($items[$czf_id]);
478 } else {
479 echo "<br>Polo&#382;ka neexistuje<br>";
480 }
481 echo "</div></div>\n";
4821unreal}
483 
484// ------- pokud je uvedena oblast ale ne id ani groupa -------
485 
48612unrealelseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
487 show_big($sorted["$czf_oblast"]);
488 echo "<div class=\"sizer\"></div></div>\n";
4891unreal}
490 
491// ------- pokud je uvedena oblast a groupa ale ne id -------
492 
49312unrealelseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
494 show_groups($sorted["$czf_oblast"]);
495 echo "<div class=\"sizer\"></div></div>\n";
496} else { break; }
4971unreal 
49811unrealunset($items);
49912unrealunset($oblast);
500} // end seznam
50111unreal 
5021unreal?>
503 
50416unreal<div id="copy">czf4bfu v1.6 - made <a href="http://www.jklir.net/">Unreal][</a>&nbsp;</div>
5051unreal</body>
506</html>

Powered by WebSVN 2.2.1