jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [index.php] - Diff between revs 11 and 12

Show entire file Ignore whitespace

Rev 11 Rev 12
Line 4... Line 4...
ini_set('log_errors',false); ini_set('log_errors',false);
  // max_execution_time, pro fungovani je nutne vypnout Safe_mod
  set_time_limit(0);
   
$i=0;  
$seznam = array(); $seznam = array();
echo "<!--CZF4BFU "; echo "<!--CZF4BFU ";
if ($dir = opendir(".")) { if ($dir = opendir(".")) {
while (($file = readdir($dir)) !== false) while (($file = readdir($dir)) !== false)
if (preg_match('/^(global|local)-.*.txt/',$file)) { if (preg_match('/^(?:global|local)-.*.txt$/',$file)) {
echo $file." "; echo $file." ";
$seznam[$i] = $file; $seznam[] = $file;
++$i;  
} }
} }
echo "-->\n"; echo "-->\n";
?> ?>
   
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <html>
<head> <head>
<!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.3 (c) Jirka Klír 2008 for CZFree.net ;-) # --> <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.4 (c) Jirka Klír 2009 for CZFree.net ;-) # -->
<title>CZF4BFU</title> <title>CZF4BFU<?php if($_GET["oblast"]!="") echo " - ".$_GET["oblast"]; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" /> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<meta http-equiv="Content-language" content="cz" /> <meta http-equiv="Content-language" content="cs" />
<meta name="author" content="Unreal][, http://www.jklir.net"> <meta name="author" content="Unreal][, http://www.jklir.net">
<link href="styl.css" rel="stylesheet" type="text/css"> <link href="styl.css" rel="stylesheet" type="text/css">
</head> </head>
<body style="background: #D4D0C8"> <body>
   
<h1>Rozcestn&#237;k CZFree.Net</h1> <h1>Rozcestn&#237;k CZFree.Net</h1>
   
<?php <?php
$group = $_GET["group"]; $group = $_GET["group"];
Line 148... Line 148...
"10.253.0.0/16" => "NCX - Zápy", "10.253.0.0/16" => "NCX - Zápy",
"10.254.0.0/16" => "NCX Labyrint"); "10.254.0.0/16" => "NCX Labyrint");
   
$sort_cz = 0; $sort_cz = 0;
   
function arfsort( $a, $yes ) { function arfsort($a,$yes=0) {
global $sort_cz; global $sort_cz;
$sort_cz = $yes; $sort_cz = $yes;
usort( $a, 'arfsort_func' ); usort($a,'arfsort_func');
return $a; return $a;
} }
   
function arfsort_func( $a, $b ){ function arfsort_func($a,$b){
global $sort_cz; global $sort_cz;
$order[0][0] = "TYP"; $order[0][0] = "TYP";
$order[1][0] = "NAZEV"; $order[1][0] = "NAZEV";
foreach($order as $f) { foreach($order as $f) {
if($sort_cz=="1") { if($sort_cz=="1") {
$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")); $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"));
$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")); $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"));
} }
$strc = strcasecmp( $a[$f[0]], $b[$f[0]] ); $strc = strcasecmp($a[$f[0]],$b[$f[0]]);
if ( $strc != 0 ) { if ($strc!=0) {
return $strc; return $strc;
} }
} }
return 0; return 0;
} }
   
function natsort_func( $a, $b ){ function natsort_func($a,$b){
$strc = strnatcmp( $a,$b ); $strc = strnatcmp($a,$b);
if ( $strc != 0 ) { if ($strc!=0) {
return $strc; return $strc;
} }
return 0; return 0;
} }
   
Line 187... Line 187...
$oblastx = $row["OBLAST"]; $oblastx = $row["OBLAST"];
$typ = $row["TYP"]; $typ = $row["TYP"];
$nazev = $row["NAZEV"]; $nazev = $row["NAZEV"];
$id = $row["ID"]; $id = $row["ID"];
$ikonka = $typ; $ikonka = $typ;
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } if(!file_exists("ikony/".$ikonka.".png")) $ikonka = "none";
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"; 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";
} }
} }
   
function show_big($test) { function show_big($test) {
Line 200... Line 200...
$typ = $row["TYP"]; $typ = $row["TYP"];
$nazev = $row["NAZEV"]; $nazev = $row["NAZEV"];
$popis = $row["POPIS"]; $popis = $row["POPIS"];
$id = $row["ID"]; $id = $row["ID"];
$ikonka = $typ; $ikonka = $typ;
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } if(!file_exists("ikony/".$ikonka.".png")) $ikonka = "none";
   
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"; 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";
} }
} }
   
function show_groups($test) { function show_groups($test) {
$pamatuj = ""; $pamatuj = "";
  $x = 0;
foreach ($test as $row) { foreach ($test as $row) {
$oblastx = $row["OBLAST"]; $oblastx = $row["OBLAST"];
$typ = $row["TYP"]; $typ = $row["TYP"];
$nazev = $row["NAZEV"]; $nazev = $row["NAZEV"];
$popis = $row["POPIS"]; $popis = $row["POPIS"];
$id = $row["ID"]; $id = $row["ID"];
$ikonka = $typ; $ikonka = $typ;
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } if(!file_exists("ikony/".$ikonka.".png")) $ikonka = "none";
   
if ($typ===$pamatuj) { if ($typ===$pamatuj) {
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"; 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";
} else { } else {
echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"title\">".$typ."</a>\n"; if($x==0) { $nomargin = "nomargin "; $x==1; } else { $nomargin = ""; }
  echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"".$nomargin."title\">".$typ."</a>\n";
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"; 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";
} }
$pamatuj = $typ; $pamatuj = $typ;
} }
} }
Line 242... Line 243...
} }
} }
   
function show_details($test) { function show_details($test) {
$ikonka_det = $test["TYP"]; $ikonka_det = $test["TYP"];
if(!file_exists("ikony/".$ikonka_det.".png")) { $ikonka_det = "none"; } if(!file_exists("ikony/".$ikonka_det.".png")) $ikonka_det = "none";
echo "<div class=\"det\">"; echo "<div class=\"det\">";
echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>"; echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>";
echo "<div class=\"info_det\">"; echo "<div class=\"info_det\">";
foreach ($test as $key=>$row) { foreach ($test as $key=>$row) {
if(($key!="HESLOEDIT") and (substr($key, 0, 1)!="#")) { if(!preg_match('%^(?:HESLOEDIT|SOURCE|#)%i',$key)) {
echo "<strong>".$key."</strong>:&nbsp;".$test["$key"]."<br>"; echo "<strong>".$key."</strong>:&nbsp;".$test["$key"]."<br>";
} }
} }
echo "</div><div class=\"info_cut\"></div></div>"; echo "</div><div class=\"info_cut\"></div></div>";
} }
Line 261... Line 262...
   
$item = array(); $item = array();
$items = array(); $items = array();
$oblast = array(); $oblast = array();
   
$pocet_globalu = $i;  
$polozka=-1; $polozka=-1;
for ($g=0; $g<$pocet_globalu; ++$g) {  
   
$file = "./".$seznam[$g]; foreach($seznam as $fil) {
// $fp = fopen($file, "r"); $dat = file_get_contents($fil);
// $dat = fread($fp, filesize($file));  
// fclose($fp);  
$dat = file_get_contents($file);  
$data = explode("\n", $dat); $data = explode("\n", $dat);
$soucet = count($data); $soucet = count($data);
   
for ($j=0; $j<=$soucet; ++$j) { for ($j=0; $j<=$soucet; ++$j) {
if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) { if ((($data[$j]!="") and ($data[$j]!=" ")) and ($data[$j][0]!=(chr(13)))) {
if (strtoupper(substr($data[$j], 0, 4))=="TYP:") { ++$polozka; } if (preg_match('%^TYP:%i',$data[$j])) $polozka++;
$item[$polozka]=$item[$polozka].$data[$j]."<br>"; $item[$polozka]=$item[$polozka].$data[$j]."<br>";
} }
$trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", ": " => ":", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (chr(9)) => "");  
$item[$polozka]=strtr($item[$polozka], $trans);  
   
$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");  
$item[$polozka]=strtr($item[$polozka], $trans_code);  
} }
} }
   
// ------- naladujem data do 3-rozmernyho pole ------- // ------- naladujem data do 3-rozmernyho pole -------
   
  $trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (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");
   
for ($k=0; $k<=$polozka; ++$k) { for ($k=0; $k<=$polozka; ++$k) {
if ((preg_match("/OBLAST:/i", $item[$k])) and (!preg_match("/OBLAST:<br>/i", $item[$k]))) { $item[$k]=strtr($item[$k], $trans);
preg_match('%OBLAST:(.*?)(<br)%s', $item[$k], $cloud); $item[$k]=preg_replace('%\:(?:\s|\t)+%', ':', $item[$k]); // tydyt pridelava praci
  if(preg_match('%OBLAST:%i', $item[$k])) {
  preg_match('%OBLAST:(.*?)(<br)%i', $item[$k], $cloud);
if (!isset($obl["$cloud[1]"])) { if (!isset($obl["$cloud[1]"])) {
$oblast[] = $cloud[1]; $oblast[] = $cloud[1];
$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;")); $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;"));
} }
} else { } else {
$cloud[1] = "10.0.0.0/8"; $cloud[1] = "10.0.0.0/8";
} }
   
$ic = explode("<br>", $item[$k]); $ic = explode("<br>", $item[$k]);
$cnt_ic = (count($ic)); $cnt_ic = (count($ic));
for ($b=0; $b<=$cnt_ic; ++$b) { for ($b=0; $b<=$cnt_ic; ++$b) {
if($b===$cnt_ic) { if($b===$cnt_ic) {
$items[$k]['ID']=$k; $items[$k]["ID"]=$k;
} else { } else {
if(($ic[$b])!="") { if(($ic[$b])!="") {
$pole = strpos($ic[$b], ":"); $pole = strpos($ic[$b], ":");
if((((substr($ic[$b], 0, $pole))=="URL") or ((substr($ic[$b], 0, $pole))=="URLIP")) or ((substr($ic[$b], 0, $pole))=="URLINET")) { if (preg_match('%^URL(?:|IP|INET):%i',$ic[$b])) {
  //if(!preg_match('%\/\/%',$ic[$b])) { $url_add = "http://"; } else { $url_add = ""; }
$items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]="<a href=\"".(substr($ic[$b], $pole+1))."\">".(substr($ic[$b], $pole+1))."</a>"; $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]="<a href=\"".(substr($ic[$b], $pole+1))."\">".(substr($ic[$b], $pole+1))."</a>";
} else { } else {
$items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1)); $items[$k][(strtoupper(substr($ic[$b], 0, $pole)))]=(substr($ic[$b], $pole+1));
} }
} }
Line 318... Line 315...
} }
$obl["$cloud[1]"][] = $items[$k]; $obl["$cloud[1]"][] = $items[$k];
} }
   
unset($item); unset($item);
  unset($trans);
$pocet_oblasti = count($oblast)-1; $pocet_oblasti = count($oblast)-1;
   
// -- seradime oblasti (bublinkovy razeni je silene pomaly) // -- seradime oblasti (bublinkovy razeni je silene pomaly)
usort( $oblast, 'natsort_func' ); usort($oblast,'natsort_func');
   
   
// ------- vypis ve sloupecku vlevo ------- // ------- vypis ve sloupecku vlevo -------
   
for ($o=0; $o<=$pocet_oblasti; $o++) { for ($o=0; $o<=$pocet_oblasti; $o++) {
echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n"; echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n";
if(isset($jmena_cloudu["$oblast[$o]"])) { if(isset($jmena_cloudu["$oblast[$o]"])) {
echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>"; echo "<br>".$jmena_cloudu["$oblast[$o]"]."</a>";
} else { } else {
echo "</a>"; echo "</a>";
} }
  $sorted["$oblast[$o]"] = arfsort($obl["$oblast[$o]"]);
$sorted["$oblast[$o]"] = arfsort( $obl["$oblast[$o]"], 0); show_small($sorted["$oblast[$o]"]);
show_small($sorted["$oblast[$o]"]);  
   
} }
  unset($obl);
?> ?>
   
</div> </div>
<div class="items"> <div class="items">
   
<?php <?php
   
//############# PODMINKY ZOBRAZENI ###############// //############# PODMINKY ZOBRAZENI ###############//
   
if(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; } if(($czf_group!="1") and ($czf_group!="2")) { $czf_group = ""; }
   
   
// ------- pokud neni uvedena oblast ani id ani groupa ------- // ------- pokud neni uvedena oblast ani id ani groupa -------
   
if ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) { if ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="")) {
$sorted0 = arfsort( $items, 1); $sorted0 = arfsort($items, 1);
show_big($sorted0); show_big($sorted0);
  echo "<div class=\"sizer\"></div></div>";
echo "<div class=\"sizer\"></div></div>";  
} }
   
// ------- pokud neni uvedena oblast ani id ale groupa ano ------- // ------- pokud neni uvedena oblast ani id ale groupa ano -------
   
if ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) { elseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="1")) {
$sorted0 = arfsort( $items, 1); $sorted0 = arfsort($items, 1);
show_groups($sorted0); show_groups($sorted0);
  echo "<div class=\"sizer\"></div></div>";
echo "<div class=\"sizer\"></div></div>";  
} }
   
// ------- pokud neni uvedena oblast ani id ale groupa je 2 ------- // ------- pokud neni uvedena oblast ani id ale groupa je 2 -------
   
if ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) { elseif ((($czf_oblast=="") and ($czf_id=="")) and ($czf_group=="2")) {
  show_clouds($oblast);
show_clouds($oblast); echo "<div class=\"sizer\"></div></div>";
   
echo "<div class=\"sizer\"></div></div>";  
} }
   
   
// ------- pokud je uvedena oblast i id sluzby ale groupa ne ------- // ------- pokud je uvedena oblast i id sluzby ale groupa ne -------
   
if ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) { elseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
  show_big($sorted["$czf_oblast"]);
show_big($sorted["$czf_oblast"]); echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
  if ($czf_id<=$polozka) {
echo "<div class=\"sizer\"></div></div>\n"; show_details($items[$czf_id]);
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; } else {
echo "<div class=\"contents\">\n"; echo "<br>Polo&#382;ka neexistuje<br>";
if ($czf_id<=$polozka) { }
  echo "</div></div>\n";
show_details($items[$czf_id]);  
   
} else {  
echo "<br>Polo&#382;ka neexistuje<br>";  
}  
echo "</div></div>\n";  
   
} }
   
// ------- pokud je uvedena oblast i id sluzby i groupa ------- // ------- pokud je uvedena oblast i id sluzby i groupa -------
   
if ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) { elseif ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
  show_groups($sorted["$czf_oblast"]);
show_groups($sorted["$czf_oblast"]); echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
  if ($czf_id<=$polozka) {
echo "<div class=\"sizer\"></div></div>\n"; show_details($items[$czf_id]);
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; } else {
echo "<div class=\"contents\">\n"; echo "<br>Polo&#382;ka neexistuje<br>";
if ($czf_id<=$polozka) { }
  echo "</div></div>\n";
show_details($items[$czf_id]);  
   
} else {  
echo "<br>Polo&#382;ka neexistuje<br>";  
}  
echo "</div></div>\n";  
   
} }
   
   
// ------- pokud neni uvedena oblast ale id a groupa ne ------- // ------- pokud neni uvedena oblast ale id a groupa ne -------
   
if ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) { elseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
if ($czf_id<=$polozka) { if ($czf_id<=$polozka) {
  if(($items[$czf_id]["OBLAST"])=="") {
if(($items[$czf_id]["OBLAST"])=="") { $sorted4 = $sorted["10.0.0.0/8"];
$sorted4 = $sorted["10.0.0.0/8"]; } else {
} else { $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
$sorted4 = $sorted[$items[$czf_id]['OBLAST']]; }
} show_big($sorted4);
  } else {
show_big($sorted4); $sorted0 = arfsort($items, 1);
  show_big($sorted0);
} else { }
   
$sorted0 = arfsort( $items, 1);  
show_big($sorted0);  
   
}  
   
   
echo "<div class=\"sizer\"></div></div>\n";  
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";  
echo "<div class=\"contents\">\n";  
if ($czf_id<=$polozka) {  
   
show_details($items[$czf_id]);  
   
} else {  
echo "<br>Polo&#382;ka neexistuje<br>";  
}  
echo "</div></div>\n";  
   
  echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
  if ($czf_id<=$polozka) {
  show_details($items[$czf_id]);
  } else {
  echo "<br>Polo&#382;ka neexistuje<br>";
  }
  echo "</div></div>\n";
} }
   
// ------- pokud neni uvedena oblast ale id a groupa ano ------- // ------- pokud neni uvedena oblast ale id a groupa ano -------
   
if ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) { elseif ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
if ($czf_id<=$polozka) { if ($czf_id<=$polozka) {
  if(($items[$czf_id]["OBLAST"])=="") {
if(($items[$czf_id]["OBLAST"])=="") { $sorted4 = $sorted["10.0.0.0/8"];
$sorted4 = $sorted["10.0.0.0/8"]; } else {
} else { $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
$sorted4 = $sorted[$items[$czf_id]['OBLAST']]; }
} show_groups($sorted4);
  } else {
show_groups($sorted4); $sorted0 = arfsort($items, 1);
  show_groups($sorted0);
} else { }
   
$sorted0 = arfsort( $items, 1);  
show_groups($sorted0);  
   
}  
   
   
echo "<div class=\"sizer\"></div></div>\n";  
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";  
echo "<div class=\"contents\">\n";  
if ($czf_id<=$polozka) {  
   
show_details($items[$czf_id]);  
   
} else {  
echo "<br>Polo&#382;ka neexistuje<br>";  
}  
echo "</div></div>\n";  
   
  echo "<div class=\"sizer\"></div></div>\n<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div><div class=\"contents\">\n";
  if ($czf_id<=$polozka) {
  show_details($items[$czf_id]);
  } else {
  echo "<br>Polo&#382;ka neexistuje<br>";
  }
  echo "</div></div>\n";
} }
   
// ------- pokud je uvedena oblast ale ne id ani groupa ------- // ------- pokud je uvedena oblast ale ne id ani groupa -------
   
if ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){ elseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
  show_big($sorted["$czf_oblast"]);
show_big($sorted["$czf_oblast"]); echo "<div class=\"sizer\"></div></div>\n";
   
echo "<div class=\"sizer\"></div></div>\n";  
   
} }
   
// ------- pokud je uvedena oblast a groupa ale ne id ------- // ------- pokud je uvedena oblast a groupa ale ne id -------
   
if ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){ elseif ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
  show_groups($sorted["$czf_oblast"]);
show_groups($sorted["$czf_oblast"]); echo "<div class=\"sizer\"></div></div>\n";
  } else { break; }
echo "<div class=\"sizer\"></div></div>\n";  
   
}  
   
unset($items); unset($items);
  unset($oblast);
} // end } // end seznam
   
?> ?>
   
<div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;</div> <div id="copy">czf4bfu v1.4 - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;</div>
</body> </body>
</html> </html>

Powered by WebSVN 2.2.1