jablonka.czprosek.czf

czf4bfu

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

 

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 
821unreal/*$starttime = microtime();
9$startarray = explode(" ", $starttime);
10$starttime = $startarray[1] + $startarray[0];*/
111unreal 
1221unrealheader("Content-Type: text/html; charset=windows-1250");
13setlocale(LC_ALL, 'cs_CZ', 'czech', 'cs_CZ.windows.1250');
14$verze = "1.9";
151unreal 
16$jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network",
17"10.2.0.0/16" => "Praha - Connection.cz",
18"10.10.0.0/16" => "reserved",
19"10.11.0.0/16" => "Praha - Střešovice, Břevnov, Hradčany, Strahov",
2021unreal"10.12.0.0/16" => "Praha - Nusle, Michle, Vršovice, Vinohrady",
21"10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Lužiny, Řeporyje, Jinonice",
221unreal"10.15.0.0/16" => "Praha - Malvazinky, Košíře, Motol",
23"10.16.0.0/16" => "Praha - Barrandov",
24"10.17.0.0/16" => "Praha - Záběhlice, Zahradní město",
25"10.18.0.0/16" => "Praha - Dejvice, Podbaba",
26"10.19.0.0/16" => "Praha - Suchdol, Lysolaje, Hanspaulka, Horoměřice",
27"10.20.0.0/16" => "Praha - P6 - Dědina, Liboc, Ruzyně",
28"10.21.0.0/16" => "Praha - Řepy, Zličín",
29"10.22.0.0/16" => "Praha - Holešovice",
3021unreal"10.23.0.0/16" => "Praha - Vinohrady, Vršovice, Michle, Nusle, Žižkov",
311unreal"10.24.0.0/16" => "Praha - Jarov, Strašnice, Malešice, Skalka",
32"10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník",
3321unreal"10.26.0.0/16" => "Praha - Radotín, Zbraslav, Lipence",
341unreal"10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky",
35"10.28.0.0/16" => "Praha - VYPAL (VYsočany, PAlmovka, Libeň)",
3621unreal"10.30.0.0/16" => "Praha - Jarov, Strašnice, Malešice, Skalka, Hostivař",
371unreal"10.31.0.0/16" => "Praha - Bohnice, Čimice",
38"10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna",
39"10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice",
40"10.34.0.0/16" => "Praha - Letná, Štrossmajerák",
41"10.37.0.0/16" => "Praha - Radotín",
42"10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky",
43"10.39.0.0/16" => "Praha - Šibřina, Újezd nad Lesy, Koloděje, Květnice",
44"10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly",
4521unreal"10.41.0.0/16" => "HMNet - Horní Měcholupy, Horní Počernice, Kyje, Dubeč",
461unreal"10.43.0.0/16" => "Řepná pole, Vinoř",
47"10.44.0.0/16" => "Praha - Podolí",
48"10.51.0.0/16" => "Praha - Petřiny",
4921unreal"10.55.0.0/16" => "Praha - Centrum",
50"10.58.0.0/16" => "Praha 1",
511unreal"10.63.0.0/17" => "Rakovník a okolí",
5216unreal"10.64.0.0/17" => "Křivoklátsko a okolí",
531unreal"10.66.0.0/16" => "Hostivice, Chýně, Ptice, Červený Újezd, Sobín",
54"10.67.0.0/16" => "Rudná u Prahy, Ptice, Úhonice, Drahelčice",
55"10.69.0.0/17" => "Mělník a okolí",
56"10.69.128.0/17" => "Neratovice a okolí",
57"10.70.0.0/16" => "Beroun a okolí",
5821unreal"10.76.0.0/16" => "Plzeň - PilsFree",
59"10.80.0.0/16" => "České Budějovice",
601unreal"10.88.0.0/16" => "Říčany a okolí",
61"10.89.0.0/16" => "Mnichovice",
62"10.92.0.0/19" => "Libčice nad Vltavou",
63"10.93.0.0/16" => "Čelákovice",
64"10.94.0.0/17" => "Mladá Boleslav a okolí",
65"10.98.0.0/16" => "Unhoš, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Braškov, Horní Bezděkov a další",
66"10.101.0.0/16" => "Liberec",
6721unreal"10.102.0.0/16" => "Klfree.net - Kladno, Unhoš a okolí",
681unreal"10.103.0.0/16" => "Karlovy Vary",
69"10.105.0.0/17" => "Kolín",
7021unreal"10.106.0.0/16" => "KHnet - Kutná Hora",
711unreal"10.107.0.0/16" => "Hradec Králové",
72"10.108.0.0/16" => "České Budějovice",
73"10.109.0.0/16" => "Plzeň",
7421unreal"10.110.0.0/17" => "Chrudim, Pardubice, Křižánovice a okolí",
75"10.110.128.0/17" => "PlzenecNET o.s. - Starý Plzenec",
76"10.111.0.0/20" => "Žihle",
77"10.111.64.0/18" => "Touškov.NET",
78"10.111.128.0/17" => "Tremnet - Třemošná a okolí",
791unreal"10.113.0.0/16" => "Louny, Žatec, Pobořany",
80"10.114.0.0/16" => "Příbram",
8121unreal"10.115.0.0/16" => "Bubakov.czf - Nové Strašecí a okolí",
821unreal"10.117.0.0/16" => "Turnov a okolí",
83"10.120.0.0/18" => "MH2Net - Mnichovo Hradiště směr Turnov",
8421unreal"10.121.0.0/18" => "Steadynet - Nové Město na Moravě a okolí",
851unreal"10.128.0.0/15" => "Brno - město",
86"10.128.0.0/16" => "Brno - město",
87"10.129.0.0/16" => "okolí Brna",
88"10.129.24.0/21" => "Tišnov",
89"10.130.0.0/16" => "Severní Morava",
90"10.131.0.0/16" => "Uherské Hradiště",
91"10.132.0.0/16" => "Střední Morava - Olomouc",
9221unreal"10.133.0.0/16" => "PVfree.net - Prostějov",
931unreal"10.134.0.0/16" => "Přerovsko",
9416unreal"10.135.0.0/16" => "BrNet - Brno",
951unreal"10.136.0.0/16" => "testovací sítě pro Moravu",
9621unreal"10.143.0.0/16" => "UnArt Slavičín",
97"10.145.0.0/16" => "Vsetín a okolí",
98"10.152.0.0/14" => "Ostrava - okres",
991unreal"10.152.0.0/16" => "Ostrava - okres",
100"10.153.0.0/16" => "Ostrava - okres",
101"10.154.0.0/16" => "Ostrava - okres",
102"10.155.0.0/16" => "Ostrava - okres",
103"10.161.0.0/16" => "Evkanet - Ostrava",
10416unreal"10.193.64.0/18" => "Varnsdorf a okolí",
105"10.225.0.0/16" => "CZFree-ol - Olomouc",
10621unreal"10.253.0.0/16" => "NFX z.s.p.o.",
1071unreal"10.254.0.0/16" => "NCX Labyrint");
108 
10921unrealfunction arfsort($a) {
11012unreal usort($a,'arfsort_func');
1111unreal return $a;
112}
113 
11421unrealfunction arfsort_func($a, $b) {
1159unreal $order[0][0] = "TYP";
116 $order[1][0] = "NAZEV";
1172unreal foreach($order as $f) {
11812unreal $strc = strcasecmp($a[$f[0]],$b[$f[0]]);
119 if ($strc!=0) {
1205unreal return $strc;
121 }
1221unreal }
1232unreal return 0;
1241unreal}
125 
12612unrealfunction natsort_func($a,$b){
127 $strc = strnatcmp($a,$b);
128 if ($strc!=0) {
1295unreal return $strc;
130 }
131 return 0;
132}
133 
13416unrealfunction get_icon($bfufile, $icon, $typ) {
135 if(isset($icon)) {
136 preg_match('/^(.*)\/([^\/]+)$/i', $icon, $iconname);
137 $ikonka = "cache/".$bfufile."_".$iconname[2];
138 if(!file_exists($ikonka)) {
139 $ikonka = "ikony/".$typ.".png";
140 if(!file_exists($ikonka)) {
141 $ikonka = "ikony/none.png";
142 }
143 }
144 } else {
145 $ikonka = "ikony/".$typ.".png";
146 if(!file_exists($ikonka)) { $ikonka = "ikony/none.png"; }
147 }
148 return $ikonka;
149}
150 
1511unrealfunction show_small($test) {
15221unreal $string = "";
1531unreal foreach ($test as $key=>$row) {
1547unreal $oblastx = $row["OBLAST"];
1555unreal $typ = $row["TYP"];
156 $nazev = $row["NAZEV"];
157 $id = $row["ID"];
15816unreal $ikonka = $row["BFUICON"];
15921unreal 
160 $string .= "<div class=\"smallicon\"><a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblastx#$oblastx\"><img title=\"$nazev\" src=\"$ikonka\"><span>$nazev</span></a></div>\n";
1611unreal }
16221unreal return $string;
1631unreal}
164 
165function show_big($test) {
16621unreal $string = "";
1674unreal foreach ($test as $row) {
1687unreal $oblastx = $row["OBLAST"];
1695unreal $typ = $row["TYP"];
170 $nazev = $row["NAZEV"];
171 $popis = $row["POPIS"];
172 $id = $row["ID"];
17316unreal $ikonka = $row["BFUICON"];
17421unreal 
175 $string .= "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
1761unreal }
17721unreal return $string;
1781unreal}
179 
180function show_groups($test) {
18121unreal $pamatuj = "";
182 $string = "";
183 $x = 0;
184 foreach ($test as $row) {
185 $oblastx = $row["OBLAST"];
186 $typ = $row["TYP"];
187 $nazev = $row["NAZEV"];
188 $popis = $row["POPIS"];
189 $id = $row["ID"];
190 $ikonka = $row["BFUICON"];
1911unreal 
19221unreal if ($typ===$pamatuj) {
193 $string .= "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
194 } else {
195 if($x==0) { $nomargin = "nomargin "; $x==1; } else { $nomargin = ""; }
196 $string .= "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"".$nomargin."title\">".$typ."</a>\n";
197 $string .= "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblastx."#".$oblastx."\"><img title=\"".$popis."\" src=\"$ikonka\"><br>".$nazev."</a></div>\n";
198 }
199 $pamatuj = $typ;
200 }
201 return $string;
2021unreal}
203 
20421unrealfunction show_clouds($test, $jmena_cloudu) {
205 $string = "";
2064unreal foreach ($test as $row) {
2071unreal if($row!="") {
2084unreal $cl_popis = $jmena_cloudu["$row"];
2091unreal $cl_naz = $row;
210 $cl_nazev = $row."<br>".$cl_popis;
211 
21221unreal $string .= "<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";
2131unreal }
214 }
21521unreal return $string;
2161unreal}
217 
218function show_details($test) {
2194unreal $ikonka_det = $test["TYP"];
22016unreal $ikonka_url = $test["BFUICON"];
22121unreal $string = "<div class=\"det\"><div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"$ikonka_url\"></div><div class=\"info_det\">";
222 foreach ($test as $key => $row) {
223 if(!preg_match('%^(?:HESLOEDIT|SOURCE|BFUFILE|BFUICON|ID|#)%',$key)) {
22414unreal if (preg_match('%^URL(?:|IP|INET)%',$key)) {
22517unreal if (!preg_match('%\://%',$row)) {
226 $row = "<a href=\"http://".$row."\">http://".$row."</a>";
227 } else {
228 $row = "<a href=\"".$row."\">".$row."</a>";
229 }
23014unreal }
23121unreal if($key!="") {
232 $string .= "<strong>".$key."</strong>:&nbsp;".$row."<br>";
233 }
2341unreal }
235 }
23621unreal return $string."</div><div class=\"info_cut\"></div></div>";
2371unreal}
238 
23921unreal 
240$seznam = array();
241echo "<!--CZF4BFU ";
242if (function_exists('scandir')) {
243 $scan = scandir(".");
244 foreach($scan as $file) {
245 if (preg_match('/^(?:global|local)-.*.txt$/',$file)) {
246 echo $file." ";
247 $seznam[] = $file;
248 }
249 }
250} else {
251 if ($dir = opendir(".")) {
252 while (($file = readdir($dir)) !== false)
253 if (preg_match('/^(?:global|local)-.*.txt$/',$file)) {
254 echo $file." ";
255 $seznam[] = $file;
256 }
257 }
258}
259echo "-->\n";
260 
261$group = $_GET["group"];
262$czf_group = $group;
263$czf_oblast = $_GET["oblast"];
264$czf_id = $_GET["id"];
265 
2665unrealif(!empty($seznam)) {
267 
26811unreal$item = array();
269$items = array();
270$oblast = array();
271 
2721unreal$polozka=-1;
27319unreal$patterns = array('%OBLAST\:([\s\t]+)?([\r\v\n]+)%i', '%ICON\:([\s\t]+)?([\r\v\n]+)%i', '%\:(?:\s|\t)+%', '%\\\\([\r\v\n])+%');
274$replacements = array("OBLAST:10.0.0.0/8\n", "", ":", "\\");
27521unreal$trans = array("\\" => "\\n", (chr(13)) => "", (chr(9)) => "", "ž" => "&#382", "š" => "&#353");
2761unreal 
27712unrealforeach($seznam as $fil) {
278 $dat = file_get_contents($fil);
27919unreal $dat = strtr(preg_replace($patterns, $replacements, $dat), $trans);
2801unreal $data = explode("\n", $dat);
281 $soucet = count($data);
282 
28319unreal for($j=0; $j<=$soucet; ++$j) {
2841unreal if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) {
28516unreal if (preg_match('%^TYP:%i',$data[$j])) {
286 $polozka++;
287 preg_match('/^(?:global|local)-(.*).txt$/i', $fil, $filen);
28819unreal $item[$polozka]="BFUFILE:".$filen[1]."<br>";
28916unreal }
2901unreal $item[$polozka]=$item[$polozka].$data[$j]."<br>";
291 }
29219unreal }
2931unreal}
294 
295// ------- naladujem data do 3-rozmernyho pole -------
296 
2975unrealfor ($k=0; $k<=$polozka; ++$k) {
29812unreal if(preg_match('%OBLAST:%i', $item[$k])) {
299 preg_match('%OBLAST:(.*?)(<br)%i', $item[$k], $cloud);
30011unreal if (!isset($obl["$cloud[1]"])) {
3019unreal $oblast[] = $cloud[1];
302 }
303 } else {
304 $cloud[1] = "10.0.0.0/8";
305 }
30612unreal 
3071unreal $ic = explode("<br>", $item[$k]);
308 $cnt_ic = (count($ic));
3095unreal for ($b=0; $b<=$cnt_ic; ++$b) {
3109unreal if($b===$cnt_ic) {
31116unreal $items[$k]["BFUICON"]=get_icon($items[$k]["BFUFILE"], $items[$k]["ICON"], $items[$k]["TYP"]);
31212unreal $items[$k]["ID"]=$k;
3131unreal } else {
314 if(($ic[$b])!="") {
31517unreal $ic[$b] = strtr($ic[$b], array("\\n\\n" => "<br>", "\\n" => "<br>"));
3161unreal $pole = strpos($ic[$b], ":");
31714unreal $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1));
3181unreal }
319 }
320 }
32121unreal $obl[$cloud[1]][] = $items[$k];
3221unreal}
323 
3249unrealunset($item);
32512unrealunset($trans);
3265unreal$pocet_oblasti = count($oblast)-1;
3271unreal 
3285unreal// -- seradime oblasti (bublinkovy razeni je silene pomaly)
32912unrealusort($oblast,'natsort_func');
3301unreal 
33121unreal} //end seznam
3321unreal 
33321unreal$title = "CZF4BFU";
334 
335if($czf_oblast!="") {
336 if(isset($jmena_cloudu[$czf_oblast])) {
337 $title .= " | ".$jmena_cloudu[$czf_oblast];
338 } else {
339 $title .= " | ".$czf_oblast;
340 }
341}
342if($czf_id!="") {
343 $title .= " | ".$items[$czf_id]["NAZEV"];
344}
345if($czf_group=="2") {
346 $title .= " | Cloudy";
347}
348 
349?>
350 
351<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
352<html>
353<head>
354 <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v <?php echo $verze ?> (c) Jirka Klír 2013 for CZFree.net ;-) # -->
355 <title><?php echo $title; ?></title>
356 <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
357 <meta http-equiv="Content-language" content="cs">
358 <meta name="author" content="Unreal][, http://www.jklir.net">
359 <link href="styl.css" rel="stylesheet" type="text/css">
360 <link rel="SHORTCUT ICON" href="favicon.ico">
361</head>
362<body>
363 
364<h1>Rozcestník CZFree.Net</h1>
365 
366<?php
367if($group!=2) {
368 if($czf_oblast!="") { $aname = "#".$czf_oblast; } else { $aname = ""; }
369 $group = !$group;
370 $text = (!empty($group)) ? "seskupit" : "neseskupovat";
371 echo "<a class=\"group\" href=\"?group=".$group."&amp;id=".$czf_id."&amp;oblast=".$czf_oblast.$aname."\">$text podle typu slu&#382;eb</a>";
372} else {
373 echo "<a class=\"group\" href=\"#\">&nbsp;</a>";
374}
375?>
376<div class="sizer"></div>
377 
378<div class="tree">
379 <a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>celá sí</a>
380 <div class="smallicon"><a title="seznam služeb" href="?oblast="><img class="dot" src="img/point.png"><span>seznam služeb</span></a></div>
381 <div class="smallicon"><a title="seznam cloudů" href="?group=2"><img class="dot" src="img/point.png"><span>seznam cloudů</span></a></div>
382 
383 
384<?php
385if(!empty($seznam)) {
3861unreal// ------- vypis ve sloupecku vlevo -------
387 
388for ($o=0; $o<=$pocet_oblasti; $o++) {
389echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n";
39021unreal if(isset($jmena_cloudu[$oblast[$o]])) {
391 echo "<br>".$jmena_cloudu[$oblast[$o]]."</a>";
39212unreal } else {
393 echo "</a>";
394 }
39521unreal $sorted[$oblast[$o]] = arfsort($obl[$oblast[$o]]);
396 echo show_small($sorted[$oblast[$o]]);
3971unreal}
39812unrealunset($obl);
3991unreal?>
400 
401</div>
402<div class="items">
403 
404<?php
405 
406//############# PODMINKY ZOBRAZENI ###############//
407 
4086unrealif(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; }
4091unreal 
410// ------- pokud neni uvedena oblast ani id ani groupa -------
411 
4125unrealif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) {
41321unreal $sorted0 = arfsort($items);
414 echo show_big($sorted0)."<div class=\"sizer\"></div></div>";
4151unreal}
416 
417// ------- pokud neni uvedena oblast ani id ale groupa ano -------
418 
41912unrealelseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) {
42021unreal $sorted0 = arfsort($items);
421 echo show_groups($sorted0)."<div class=\"sizer\"></div></div>";
4221unreal}
423 
424// ------- pokud neni uvedena oblast ani id ale groupa je 2 -------
425 
42612unrealelseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) {
42721unreal echo show_clouds($oblast, $jmena_cloudu)."<div class=\"sizer\"></div></div>";
4281unreal}
429 
430// ------- pokud je uvedena oblast i id sluzby ale groupa ne -------
431 
43212unrealelseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
43321unreal echo show_big($sorted[$czf_oblast])."<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
43412unreal if ($czf_id<=$polozka) {
43521unreal echo show_details($items[$czf_id]);
43612unreal } else {
43721unreal echo "<br>Položka neexistuje<br>";
43812unreal }
439 echo "</div></div>\n";
4401unreal}
441 
442// ------- pokud je uvedena oblast i id sluzby i groupa -------
443 
44412unrealelseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
44521unreal echo show_groups($sorted[$czf_oblast])."<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
44612unreal if ($czf_id<=$polozka) {
44721unreal echo show_details($items[$czf_id]);
44812unreal } else {
44921unreal echo "<br>Položka neexistuje<br>";
45012unreal }
451 echo "</div></div>\n";
4521unreal}
453 
454 
455// ------- pokud neni uvedena oblast ale id a groupa ne -------
456 
45712unrealelseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
458 if ($czf_id<=$polozka) {
459 if(($items[$czf_id]["OBLAST"])=="") {
460 $sorted4 = $sorted["10.0.0.0/8"];
461 } else {
462 $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
463 }
46421unreal echo show_big($sorted4);
46512unreal } else {
46621unreal $sorted0 = arfsort($items);
467 echo show_big($sorted0);
46812unreal }
4691unreal 
47012unreal echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
471 if ($czf_id<=$polozka) {
47221unreal echo show_details($items[$czf_id]);
47312unreal } else {
47421unreal echo "<br>Položka neexistuje<br>";
47512unreal }
476 echo "</div></div>\n";
4771unreal}
478 
479// ------- pokud neni uvedena oblast ale id a groupa ano -------
480 
48112unrealelseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
482 if ($czf_id<=$polozka) {
483 if(($items[$czf_id]["OBLAST"])=="") {
484 $sorted4 = $sorted["10.0.0.0/8"];
485 } else {
486 $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
487 }
48821unreal echo show_groups($sorted4);
48912unreal } else {
49021unreal $sorted0 = arfsort($items);
491 echo show_groups($sorted0);
49212unreal }
4931unreal 
49412unreal echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
495 if ($czf_id<=$polozka) {
49621unreal echo show_details($items[$czf_id]);
49712unreal } else {
49821unreal echo "<br>Položka neexistuje<br>";
49912unreal }
500 echo "</div></div>\n";
5011unreal}
502 
503// ------- pokud je uvedena oblast ale ne id ani groupa -------
504 
50512unrealelseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
50621unreal echo show_big($sorted[$czf_oblast])."<div class=\"sizer\"></div></div>\n";
5071unreal}
508 
509// ------- pokud je uvedena oblast a groupa ale ne id -------
510 
51112unrealelseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
51221unreal echo show_groups($sorted[$czf_oblast])."<div class=\"sizer\"></div></div>\n";
51312unreal} else { break; }
5141unreal 
51511unrealunset($items);
51612unrealunset($oblast);
517} // end seznam
51811unreal 
51921unreal/*$endtime = microtime();
520$endarray = explode(" ", $endtime);
521$endtime = $endarray[1] + $endarray[0];
522$totaltime = $endtime - $starttime;
523$totaltime = round($totaltime,5);
524echo "<br>Skript to vsechno stihnul v rekordnim case $totaltime sekund :-).";*/
525 
5261unreal?>
527 
52821unreal<div id="copy">czf4bfu v<?php echo $verze ?> - made <a href="http://www.jklir.net/">Unreal][</a>&nbsp;</div>
5291unreal</body>
530</html>

Powered by WebSVN 2.2.1