jablonka.czprosek.czf

czf4bfu

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

 

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>
3319unreal <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.8 (c) Jirka Klír 2011 for CZFree.net ;-) # -->
3416unreal <title>CZF4BFU<?php if($_GET["oblast"]!="") echo " | ".$_GET["oblast"]; ?><?php if($_GET["group"]=="2") echo " | Cloudy"; ?></title>
3519unreal <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
36 <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;
17919unreal $arr = array("&#193;" => "azzz", "&#201;" => "ezzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "rzzz");
1809unreal $order[0][0] = "TYP";
181 $order[1][0] = "NAZEV";
1822unreal foreach($order as $f) {
1834unreal if($sort_cz=="1") {
18419unreal $a[$f[0]]=strtr($a[$f[0]], $arr);
185 $b[$f[0]]=strtr($b[$f[0]], $arr);
1861unreal }
18712unreal $strc = strcasecmp($a[$f[0]],$b[$f[0]]);
188 if ($strc!=0) {
1895unreal return $strc;
190 }
1911unreal }
1922unreal return 0;
1931unreal}
194 
19512unrealfunction natsort_func($a,$b){
196 $strc = strnatcmp($a,$b);
197 if ($strc!=0) {
1985unreal return $strc;
199 }
200 return 0;
201}
202 
20316unrealfunction get_icon($bfufile, $icon, $typ) {
204 if(isset($icon)) {
205 preg_match('/^(.*)\/([^\/]+)$/i', $icon, $iconname);
206 $ikonka = "cache/".$bfufile."_".$iconname[2];
207 if(!file_exists($ikonka)) {
208 $ikonka = "ikony/".$typ.".png";
209 if(!file_exists($ikonka)) {
210 $ikonka = "ikony/none.png";
211 }
212 }
213 } else {
214 $ikonka = "ikony/".$typ.".png";
215 if(!file_exists($ikonka)) { $ikonka = "ikony/none.png"; }
216 }
217 return $ikonka;
218}
219 
2201unrealfunction show_small($test) {
221 foreach ($test as $key=>$row) {
2227unreal $oblastx = $row["OBLAST"];
2235unreal $typ = $row["TYP"];
224 $nazev = $row["NAZEV"];
225 $id = $row["ID"];
22616unreal $ikonka = $row["BFUICON"];
227 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";
2281unreal }
229}
230 
231function show_big($test) {
2324unreal foreach ($test as $row) {
2337unreal $oblastx = $row["OBLAST"];
2345unreal $typ = $row["TYP"];
235 $nazev = $row["NAZEV"];
236 $popis = $row["POPIS"];
237 $id = $row["ID"];
23816unreal $ikonka = $row["BFUICON"];
239 echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
2401unreal }
241}
242 
243function show_groups($test) {
2443unreal $pamatuj = "";
24512unreal $x = 0;
2464unreal foreach ($test as $row) {
2477unreal $oblastx = $row["OBLAST"];
2485unreal $typ = $row["TYP"];
249 $nazev = $row["NAZEV"];
250 $popis = $row["POPIS"];
251 $id = $row["ID"];
25216unreal $ikonka = $row["BFUICON"];
2531unreal 
2545unreal if ($typ===$pamatuj) {
25516unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
2565unreal } else {
25712unreal if($x==0) { $nomargin = "nomargin "; $x==1; } else { $nomargin = ""; }
258 echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"".$nomargin."title\">".$typ."</a>\n";
25916unreal echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
2605unreal }
261 $pamatuj = $typ;
2621unreal }
263}
264 
265function show_clouds($test) {
266 global $jmena_cloudu;
2674unreal foreach ($test as $row) {
2681unreal if($row!="") {
2694unreal $cl_popis = $jmena_cloudu["$row"];
2701unreal $cl_naz = $row;
271 $cl_nazev = $row."<br>".$cl_popis;
272 
27316unreal 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";
2741unreal }
275 }
276}
277 
278function show_details($test) {
2794unreal $ikonka_det = $test["TYP"];
28016unreal $ikonka_url = $test["BFUICON"];
2811unreal echo "<div class=\"det\">";
28216unreal echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"$ikonka_url\"></div>";
2831unreal echo "<div class=\"info_det\">";
284 foreach ($test as $key=>$row) {
28516unreal if(!preg_match('%^(?:HESLOEDIT|SOURCE|BFUFILE|BFUICON|#)%',$key)) {
28614unreal if (preg_match('%^URL(?:|IP|INET)%',$key)) {
28717unreal if (!preg_match('%\://%',$row)) {
288 $row = "<a href=\"http://".$row."\">http://".$row."</a>";
289 } else {
290 $row = "<a href=\"".$row."\">".$row."</a>";
291 }
29214unreal }
293 echo "<strong>".$key."</strong>:&nbsp;".$row."<br>";
2941unreal }
295 }
296 echo "</div><div class=\"info_cut\"></div></div>";
297}
298 
2995unrealif(!empty($seznam)) {
300 
30111unreal$item = array();
302$items = array();
303$oblast = array();
304 
3051unreal$polozka=-1;
30619unreal$patterns = array('%OBLAST\:([\s\t]+)?([\r\v\n]+)%i', '%ICON\:([\s\t]+)?([\r\v\n]+)%i', '%\:(?:\s|\t)+%', '%\\\\([\r\v\n])+%');
307$replacements = array("OBLAST:10.0.0.0/8\n", "", ":", "\\");
30817unreal$trans = array("\\" => "\\n", (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");
3091unreal 
31012unrealforeach($seznam as $fil) {
311 $dat = file_get_contents($fil);
31219unreal $dat = strtr(preg_replace($patterns, $replacements, $dat), $trans);
3131unreal $data = explode("\n", $dat);
314 $soucet = count($data);
315 
31619unreal for($j=0; $j<=$soucet; ++$j) {
3171unreal if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) {
31816unreal if (preg_match('%^TYP:%i',$data[$j])) {
319 $polozka++;
320 preg_match('/^(?:global|local)-(.*).txt$/i', $fil, $filen);
32119unreal $item[$polozka]="BFUFILE:".$filen[1]."<br>";
32216unreal }
3231unreal $item[$polozka]=$item[$polozka].$data[$j]."<br>";
324 }
32519unreal }
3261unreal}
327 
328// ------- naladujem data do 3-rozmernyho pole -------
329 
3305unrealfor ($k=0; $k<=$polozka; ++$k) {
33112unreal if(preg_match('%OBLAST:%i', $item[$k])) {
332 preg_match('%OBLAST:(.*?)(<br)%i', $item[$k], $cloud);
33311unreal if (!isset($obl["$cloud[1]"])) {
3349unreal $oblast[] = $cloud[1];
335 $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;"));
336 }
337 } else {
338 $cloud[1] = "10.0.0.0/8";
339 }
34012unreal 
3411unreal $ic = explode("<br>", $item[$k]);
342 $cnt_ic = (count($ic));
3435unreal for ($b=0; $b<=$cnt_ic; ++$b) {
3449unreal if($b===$cnt_ic) {
34516unreal $items[$k]["BFUICON"]=get_icon($items[$k]["BFUFILE"], $items[$k]["ICON"], $items[$k]["TYP"]);
34612unreal $items[$k]["ID"]=$k;
3471unreal } else {
348 if(($ic[$b])!="") {
34917unreal $ic[$b] = strtr($ic[$b], array("\\n\\n" => "<br>", "\\n" => "<br>"));
3501unreal $pole = strpos($ic[$b], ":");
35114unreal $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1));
3521unreal }
353 }
354 }
35511unreal $obl["$cloud[1]"][] = $items[$k];
3561unreal}
357 
3589unrealunset($item);
35912unrealunset($trans);
3605unreal$pocet_oblasti = count($oblast)-1;
3611unreal 
3625unreal// -- seradime oblasti (bublinkovy razeni je silene pomaly)
36312unrealusort($oblast,'natsort_func');
3641unreal 
365 
366// ------- vypis ve sloupecku vlevo -------
367 
368for ($o=0; $o<=$pocet_oblasti; $o++) {
369echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n";
37012unreal if(isset($jmena_cloudu["$oblast[$o]"])) {
371 echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>";
372 } else {
373 echo "</a>";
374 }
375 $sorted["$oblast[$o]"] = arfsort($obl["$oblast[$o]"]);
376 show_small($sorted["$oblast[$o]"]);
3771unreal}
37812unrealunset($obl);
3791unreal?>
380 
381</div>
382<div class="items">
383 
384<?php
385 
386//############# PODMINKY ZOBRAZENI ###############//
387 
3886unrealif(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; }
3891unreal 
390// ------- pokud neni uvedena oblast ani id ani groupa -------
391 
3925unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) {
39312unreal $sorted0 = arfsort($items, 1);
394 show_big($sorted0);
395 echo "<div class=\"sizer\"></div></div>";
3961unreal}
397 
398// ------- pokud neni uvedena oblast ani id ale groupa ano -------
399 
40012unrealelseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) {
401 $sorted0 = arfsort($items, 1);
402 show_groups($sorted0);
403 echo "<div class=\"sizer\"></div></div>";
4041unreal}
405 
406// ------- pokud neni uvedena oblast ani id ale groupa je 2 -------
407 
40812unrealelseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) {
409 show_clouds($oblast);
410 echo "<div class=\"sizer\"></div></div>";
4111unreal}
412 
413 
414// ------- pokud je uvedena oblast i id sluzby ale groupa ne -------
415 
41612unrealelseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
417 show_big($sorted["$czf_oblast"]);
418 echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
419 if ($czf_id<=$polozka) {
420 show_details($items[$czf_id]);
421 } else {
422 echo "<br>Polo&#382;ka neexistuje<br>";
423 }
424 echo "</div></div>\n";
4251unreal}
426 
427// ------- pokud je uvedena oblast i id sluzby i groupa -------
428 
42912unrealelseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
430 show_groups($sorted["$czf_oblast"]);
431 echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
432 if ($czf_id<=$polozka) {
433 show_details($items[$czf_id]);
434 } else {
435 echo "<br>Polo&#382;ka neexistuje<br>";
436 }
437 echo "</div></div>\n";
4381unreal}
439 
440 
441// ------- pokud neni uvedena oblast ale id a groupa ne -------
442 
44312unrealelseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
444 if ($czf_id<=$polozka) {
445 if(($items[$czf_id]["OBLAST"])=="") {
446 $sorted4 = $sorted["10.0.0.0/8"];
447 } else {
448 $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
449 }
450 show_big($sorted4);
451 } else {
452 $sorted0 = arfsort($items, 1);
453 show_big($sorted0);
454 }
4551unreal 
45612unreal echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
457 if ($czf_id<=$polozka) {
458 show_details($items[$czf_id]);
459 } else {
460 echo "<br>Polo&#382;ka neexistuje<br>";
461 }
462 echo "</div></div>\n";
4631unreal}
464 
465// ------- pokud neni uvedena oblast ale id a groupa ano -------
466 
46712unrealelseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
468 if ($czf_id<=$polozka) {
469 if(($items[$czf_id]["OBLAST"])=="") {
470 $sorted4 = $sorted["10.0.0.0/8"];
471 } else {
472 $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
473 }
474 show_groups($sorted4);
475 } else {
476 $sorted0 = arfsort($items, 1);
477 show_groups($sorted0);
478 }
4791unreal 
48012unreal echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
481 if ($czf_id<=$polozka) {
482 show_details($items[$czf_id]);
483 } else {
484 echo "<br>Polo&#382;ka neexistuje<br>";
485 }
486 echo "</div></div>\n";
4871unreal}
488 
489// ------- pokud je uvedena oblast ale ne id ani groupa -------
490 
49112unrealelseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
492 show_big($sorted["$czf_oblast"]);
493 echo "<div class=\"sizer\"></div></div>\n";
4941unreal}
495 
496// ------- pokud je uvedena oblast a groupa ale ne id -------
497 
49812unrealelseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
499 show_groups($sorted["$czf_oblast"]);
500 echo "<div class=\"sizer\"></div></div>\n";
501} else { break; }
5021unreal 
50311unrealunset($items);
50412unrealunset($oblast);
505} // end seznam
50611unreal 
5071unreal?>
508 
50919unreal<div id="copy">czf4bfu v1.8 - made <a href="http://www.jklir.net/">Unreal][</a>&nbsp;</div>
5101unreal</body>
511</html>

Powered by WebSVN 2.2.1