jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [index.php] - Diff between revs 4 and 5

Show entire file Ignore whitespace

Rev 4 Rev 5
Line 1... Line 1...
<?php <?php
  error_reporting(0);
// Nastavime, aby se nam zbytecne nelogovaly chyby // Nastavime, aby se nam zbytecne nelogovaly chyby
ini_set('log_errors',false); ini_set('log_errors',false);
   
  $i=0;
  $seznam = array();
  $oblast = array();
  $item = array();
  $items = array();
  echo "<!--CZF4BFU ";
if ($dir = @opendir(".")) { if ($dir = @opendir(".")) {
echo("<!--CZF4BFU ");  
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." ";
echo("-->"); $seznam[$i] = $file;
closedir($dir); ++$i;
  }
} }
  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 ;-) # -->
  <title>CZF4BFU</title>
##################################################### <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
# # # <meta http-equiv="Content-language" content="cz" />
# This script built Unreal][ # http://www.jklir.net # <meta name="author" content="Unreal][, http://www.jklir.net">
# # # <link href="styl.css" rel="stylesheet" type="text/css">
##################################################### </head>
# #  
# Licence: GNU/GPL #  
# Some Icons was downloaded from the internet and #  
# have copyrights. Please use it with GNU/GPL #  
# licence and in non-comercial projects. #  
# #  
#####################################################  
# #  
# v 1.3 (c) Jirka Klír 2008 for CZFree.net ;-) #  
# #  
#####################################################  
   
-->  
<title>CZF4BFU</title>  
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />  
<meta http-equiv="Content-language" content="cz" />  
<meta name="author" content="Unreal][, http://www.jklir.net">  
<link href="styl.css" rel="stylesheet" type="text/css">  
</head>  
<body style="background: #D4D0C8"> <body style="background: #D4D0C8">
   
<H1>Rozcestn&#237;k CZFree.Net</H1> <h1>Rozcestn&#237;k CZFree.Net</h1>
   
<?php <?php
$group = $_GET["group"]; $group = $_GET["group"];
  $czf_group = $_GET["group"];
  $czf_oblast = $_GET["oblast"];
  $czf_id = $_GET["id"];
   
if($group!=2) { if($group!=2) {
if($_GET["oblast"]!="") { $aname = "#".$_GET["oblast"]; } else { $aname = ""; } if($czf_oblast!="") { $aname = "#".$czf_oblast; } else { $aname = ""; }
$group = !$group; $group = !$group;
$text = ($group) ? "seskupit" : "neseskupovat"; $text = (!empty($group)) ? "seskupit" : "neseskupovat";
echo "<a class=\"group\" href=\"?group=".$group."&id=".$_GET["id"]."&oblast=".$_GET["oblast"].$aname."\">$text podle typu slu&#382;eb</a>"; echo "<a class=\"group\" href=\"?group=".$group."&amp;id=".$czf_id."&amp;oblast=".$czf_oblast.$aname."\">$text podle typu slu&#382;eb</a>";
} else { } else {
echo "<a class=\"group\" href=\"#\">&nbsp;</a>"; echo "<a class=\"group\" href=\"#\">&nbsp;</a>";
} }
?> ?>
   
Line 156... Line 149...
"10.155.0.0/16" => "Ostrava - okres", "10.155.0.0/16" => "Ostrava - okres",
"10.161.0.0/16" => "Evkanet - Ostrava", "10.161.0.0/16" => "Evkanet - Ostrava",
"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");
   
// prasarna, ale dokaze to radit cesky retezce :-)  
$trans_cz = array("&#193;" => "azzz", "&#201;" => "ezzz", "&#282;" => "ezzzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "rzzz", "&#270;" => "dzzz", "&#356;" => "tzzz", "&#327;" => "nzzz");  
$order[0][0] = "TYP"; $order[0][0] = "TYP";
$order[1][0] = "NAZEV"; $order[1][0] = "NAZEV";
$sort_cz = 0; $sort_cz = 0;
   
function arfsort( $a, $yes ) { function arfsort( $a, $yes ) {
Line 170... Line 161...
usort( $a, 'arfsort_func' ); usort( $a, 'arfsort_func' );
return $a; return $a;
} }
   
function arfsort_func( $a, $b ){ function arfsort_func( $a, $b ){
global $trans_cz,$order,$sort_cz; global $order,$sort_cz;
foreach($order as $f) { foreach($order as $f) {
if($sort_cz=="1") { if($sort_cz=="1") {
$a[$f[0]]=strtr($a[$f[0]], $trans_cz); $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]], $trans_cz); $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]] );
  if ( $strc != 0 ) {
  return $strc;
} }
$strc = strcmp( strtolower($a[$f[0]]), strtolower($b[$f[0]]) ); }
if ( $strc != 0 ) { return 0;
return $strc; }
}  
  function natsort_func( $a, $b ){
  $strc = strnatcmp( $a,$b );
  if ( $strc != 0 ) {
  return $strc;
} }
return 0; return 0;
} }
   
function show_small($test) { function show_small($test) {
foreach ($test as $key=>$row) { foreach ($test as $key=>$row) {
if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; } $oblast = $row["OBLAST"];
$ikonka = $row["TYP"]; $typ = $row["TYP"];
  $nazev = $row["NAZEV"];
  $id = $row["ID"];
  if($oblast==="") { $oblast="10.0.0.0/8"; }
  $ikonka = $typ;
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
echo "<div class=\"smallicon\"><a title=\"".$row["NAZEV"]."\" href=\"?id=".$row["ID"]."&amp;oblast=".$row["OBLAST"]."#".$row["OBLAST"]."\"><img width=\"16\" title=\"".$row["NAZEV"]."\" border=\"0\" src=\"ikony/$ikonka.png\"></a>&nbsp;<a title=\"".$row["NAZEV"]."\" href=\"?id=".$row["ID"]."&amp;oblast=".$row["OBLAST"]."#".$row["OBLAST"]."\">".$row["NAZEV"]."</a></div>\n"; // echo "<div class=\"smallicon\"><a title=\"".$nazev."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img width=\"16\" title=\"".$nazev."\" border=\"0\" src=\"ikony/$ikonka.png\"></a>&nbsp;<a title=\"".$nazev."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\">".$nazev."</a></div>\n";
  echo "<div class=\"smallicon\"><a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblast#$oblast\"><img width=\"16\" title=\"$nazev\" border=\"0\" src=\"ikony/$ikonka.png\"></a>&nbsp;<a title=\"$nazev\" href=\"?id=$id&amp;oblast=$oblast#$oblast\">$nazev</a></div>\n";
} }
} }
   
function show_big($test) { function show_big($test) {
foreach ($test as $row) { foreach ($test as $row) {
  $oblast = $row["OBLAST"];
if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; } $typ = $row["TYP"];
$ikonka = $row["TYP"]; $nazev = $row["NAZEV"];
  $popis = $row["POPIS"];
  $id = $row["ID"];
  if($oblast==="") { $oblast="10.0.0.0/8"; }
  $ikonka = $typ;
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
   
echo "<div class=\"icon\"><a title=\"".$row["POPIS"]."\" href=\"?id=".$row["ID"]."&amp;oblast=".$row["OBLAST"]."#".$row["OBLAST"]."\"><img title=\"".$row["POPIS"]."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$row["NAZEV"]."</a></div>\n"; echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><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 = "";
foreach ($test as $row) { foreach ($test as $row) {
  $oblast = $row["OBLAST"];
  $typ = $row["TYP"];
  $nazev = $row["NAZEV"];
  $popis = $row["POPIS"];
  $id = $row["ID"];
  if($oblast==="") { $oblast="10.0.0.0/8"; }
  $ikonka = $typ;
  if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; }
   
if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } if ($typ===$pamatuj) {
$ikonka = $row['TYP']; echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } } else {
  echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"title\">".$typ."</a>\n";
if ($row['TYP']==$pamatuj) { echo "<div class=\"icon\"><a title=\"".$popis."\" href=\"?id=".$id."&amp;oblast=".$oblast."#".$oblast."\"><img title=\"".$popis."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$nazev."</a></div>\n";
  }
echo "<div class=\"icon\"><a title=\"".$row['POPIS']."\" href=\"?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."\"><img title=\"".$row['POPIS']."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$row['NAZEV']."</a></div>\n"; $pamatuj = $typ;
} else {  
echo "<div class=\"sizer\"></div><a name=\"".$row['TYP']."\" href=\"#".$row['TYP']."\" class=\"title\">".$row['TYP']."</a>\n";  
echo "<div class=\"icon\"><a title=\"".$row['POPIS']."\" href=\"?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."\"><img title=\"".$row['POPIS']."\" border=\"0\" width=\"32\" src=\"ikony/$ikonka.png\"><br>".$row['NAZEV']."</a></div>\n";  
}  
$pamatuj = $row['TYP'];  
} }
} }
   
function show_clouds($test) { function show_clouds($test) {
global $jmena_cloudu; global $jmena_cloudu;
Line 250... Line 261...
} }
} }
echo "</div><div class=\"info_cut\"></div></div>"; echo "</div><div class=\"info_cut\"></div></div>";
} }
   
$i=0;  
if ($dir = @opendir(".")) { if(!empty($seznam)) {
while (($file = readdir($dir)) !== false)  
if (preg_match('/^(global|local)-.*.txt/',$file)) {  
$seznam[$i] = $file;  
$i++;  
}  
   
$pocet_globalu = $i; $pocet_globalu = $i;
$polozka=-1; $polozka=-1;
for ($g=0; $g<$pocet_globalu; $g++) { for ($g=0; $g<$pocet_globalu; ++$g) {
   
$file = "./".$seznam[$g]; // $g $file = "./".$seznam[$g];
$fp = Fopen($file, "r"); // $fp = fopen($file, "r");
$dat = Fread($fp, filesize($file)); // $dat = fread($fp, filesize($file));
// $dat = file_get_contents($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 (strtoupper(substr($data[$j], 0, 4))=="TYP:") { ++$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)) => ""); $trans = array(" \\\\<br>" => "", " <br>" => "<br>", (chr(13)) => "", ": " => ":", "OBLAST:<br>" => "OBLAST:10.0.0.0/8<br>", (chr(9)) => "");
$item[$polozka]=strtr($item[$polozka], $trans); $item[$polozka]=strtr($item[$polozka], $trans);
   
Line 284... Line 291...
} }
} }
   
// ------- naladujem data do 3-rozmernyho pole ------- // ------- naladujem data do 3-rozmernyho pole -------
   
for ($k=0; $k<=$polozka; $k++) { for ($k=0; $k<=$polozka; ++$k) {
$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], ":");
Line 306... Line 313...
} }
   
// -- zjisteni a serazeni oblasti // -- zjisteni a serazeni oblasti
$cloudy = ""; $cloudy = "";
   
for ($k=0; $k<=$polozka; $k++) { for ($k=0; $k<=$polozka; ++$k) {
if ((eregi("OBLAST:", $item[$k])) and (!eregi("OBLAST:<br>", $item[$k]))){ if ((preg_match("/OBLAST:/i", $item[$k])) and (!preg_match("/OBLAST:<br>/i", $item[$k]))) {
preg_match('%OBLAST:(.*?)(<br)%s', $item[$k], $cloud); preg_match('%OBLAST:(.*?)(<br)%s', $item[$k], $cloud);
if (!eregi($cloud[1], $cloudy)) { if (!eregi($cloud[1], $cloudy)) {
$cloudy .= $cloud[1].";"; $cloudy .= $cloud[1].";";
} }
} }
} }
  $cloudy = substr($cloudy, 0, -1);
$oblast = explode(";", $cloudy); $oblast = explode(";", $cloudy);
$pocet_oblasti = count($oblast)-2; $pocet_oblasti = count($oblast)-1;
   
for ($l=0; $l<=$pocet_oblasti; $l++) { // -- seradime oblasti (bublinkovy razeni je silene pomaly)
for ($m=0; $m<=$pocet_oblasti; $m++) { usort( $oblast, 'natsort_func' );
if ((intval(substr($oblast[$m], 3, 3)))<(intval(substr($oblast[$m-1], 3, 3)))) {  
$x=$oblast[$m];  
$oblast[$m]=$oblast[$m-1];  
$oblast[$m-1]=$x;  
}  
}  
}  
   
   
// ------- zapiseme hodnoty do cloudovskych poli ------- // ------- zapiseme hodnoty do cloudovskych poli -------
   
for ($o=0; $o<=$pocet_oblasti; $o++) { for ($o=0; $o<=$pocet_oblasti; ++$o) {
foreach ($items as $row) { foreach ($items as $row) {
if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; } if($row["OBLAST"]=="") { $row["OBLAST"]="10.0.0.0/8"; }
if($row["OBLAST"]==$oblast[$o]) { if($row["OBLAST"]==$oblast[$o]) {
$obl["$oblast[$o]"][]=$row; $obl["$oblast[$o]"][]=$row;
} }
Line 370... Line 371...
   
<?php <?php
   
//############# PODMINKY ZOBRAZENI ###############// //############# PODMINKY ZOBRAZENI ###############//
   
if(($_GET["group"]!="1") and ($_GET["group"]!="2")) { $_GET["group"] = ""; } if(($czf_group!="1") and ($czf_group!="2")) { $group = ""; }
   
   
// ------- pokud neni uvedena oblast ani id ani groupa ------- // ------- pokud neni uvedena oblast ani id ani groupa -------
   
if ((($_GET["oblast"]=="") and ($_GET["id"]=="")) and ($_GET["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 ((($_GET["oblast"]=="") and ($_GET["id"]=="")) and ($_GET["group"]=="1")) { if ((($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 ((($_GET["oblast"]=="") and ($_GET["id"]=="")) and ($_GET["group"]=="2")) { if ((($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 ((($_GET["oblast"]!="") and ($_GET["id"]!="")) and ($_GET["group"]=="")) { if ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="")) {
   
show_big($sorted[$_GET["oblast"]]); show_big($sorted[$czf_oblast]);
   
echo "<div class=\"sizer\"></div></div>\n"; echo "<div class=\"sizer\"></div></div>\n";
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
echo "<div class=\"contents\">\n"; echo "<div class=\"contents\">\n";
if ($_GET["id"]<=$polozka) { if ($czf_id<=$polozka) {
   
show_details($items[$_GET["id"]]); show_details($items[$czf_id]);
   
} else { } else {
echo "<br>Polo&#382;ka neexistuje<br>"; echo "<br>Polo&#382;ka neexistuje<br>";
} }
echo "</div></div>\n"; echo "</div></div>\n";
   
} }
   
// ------- pokud je uvedena oblast i id sluzby i groupa ------- // ------- pokud je uvedena oblast i id sluzby i groupa -------
   
if ((($_GET["oblast"]!="") and ($_GET["id"]!="")) and ($_GET["group"]=="1")) { if ((($czf_oblast!="") and ($czf_id!="")) and ($czf_group=="1")) {
   
show_groups($sorted[$_GET["oblast"]]); show_groups($sorted[$czf_oblast]);
   
echo "<div class=\"sizer\"></div></div>\n"; echo "<div class=\"sizer\"></div></div>\n";
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
echo "<div class=\"contents\">\n"; echo "<div class=\"contents\">\n";
if ($_GET["id"]<=$polozka) { if ($czf_id<=$polozka) {
   
show_details($items[$_GET["id"]]); show_details($items[$czf_id]);
   
} else { } else {
echo "<br>Polo&#382;ka neexistuje<br>"; echo "<br>Polo&#382;ka neexistuje<br>";
} }
echo "</div></div>\n"; echo "</div></div>\n";
Line 444... Line 445...
} }
   
   
// ------- pokud neni uvedena oblast ale id a groupa ne ------- // ------- pokud neni uvedena oblast ale id a groupa ne -------
   
if ((($_GET["oblast"]=="") and ($_GET["id"]!="")) and ($_GET["group"]=="")) { if ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="")) {
if ($_GET["id"]<=$polozka) { if ($czf_id<=$polozka) {
   
if(($items[$_GET["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[$_GET["id"]]['OBLAST']]; $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
} }
   
show_big($sorted4); show_big($sorted4);
   
} else { } else {
Line 466... Line 467...
   
   
echo "<div class=\"sizer\"></div></div>\n"; echo "<div class=\"sizer\"></div></div>\n";
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
echo "<div class=\"contents\">\n"; echo "<div class=\"contents\">\n";
if ($_GET["id"]<=$polozka) { if ($czf_id<=$polozka) {
   
show_details($items[$_GET["id"]]); show_details($items[$czf_id]);
   
} else { } else {
echo "<br>Polo&#382;ka neexistuje<br>"; echo "<br>Polo&#382;ka neexistuje<br>";
} }
echo "</div></div>\n"; echo "</div></div>\n";
   
} }
   
// ------- pokud neni uvedena oblast ale id a groupa ano ------- // ------- pokud neni uvedena oblast ale id a groupa ano -------
   
if ((($_GET["oblast"]=="") and ($_GET["id"]!="")) and ($_GET["group"]=="1")) { if ((($czf_oblast=="") and ($czf_id!="")) and ($czf_group=="1")) {
if ($_GET["id"]<=$polozka) { if ($czf_id<=$polozka) {
   
if(($items[$_GET["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[$_GET["id"]]['OBLAST']]; $sorted4 = $sorted[$items[$czf_id]['OBLAST']];
} }
   
show_groups($sorted4); show_groups($sorted4);
   
} else { } else {
Line 501... Line 502...
   
   
echo "<div class=\"sizer\"></div></div>\n"; echo "<div class=\"sizer\"></div></div>\n";
echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>"; echo "<div class=\"detail\"><div class=\"nomargin title\"><strong>Detaily:</strong></div>";
echo "<div class=\"contents\">\n"; echo "<div class=\"contents\">\n";
if ($_GET["id"]<=$polozka) { if ($czf_id<=$polozka) {
   
show_details($items[$_GET["id"]]); show_details($items[$czf_id]);
   
} else { } else {
echo "<br>Polo&#382;ka neexistuje<br>"; echo "<br>Polo&#382;ka neexistuje<br>";
} }
echo "</div></div>\n"; echo "</div></div>\n";
   
} }
   
// ------- pokud je uvedena oblast ale ne id ani groupa ------- // ------- pokud je uvedena oblast ale ne id ani groupa -------
   
if ((($_GET["oblast"]!="") and ($_GET["id"]=="")) and ($_GET["group"]=="")){ if ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="")){
   
show_big($sorted[$_GET["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 ((($_GET["oblast"]!="") and ($_GET["id"]=="")) and ($_GET["group"]=="1")){ if ((($czf_oblast!="") and ($czf_id=="")) and ($czf_group=="1")){
   
show_groups($sorted[$_GET["oblast"]]); show_groups($sorted[$czf_oblast]);
   
echo "<div class=\"sizer\"></div></div>\n"; echo "<div class=\"sizer\"></div></div>\n";
   
} }
   
  unset($oblast);
  unset($item);
  unset($items);
   
} // end } // end
   
  unset($seznam);
   
?> ?>
   
<div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;</div> <div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;</div>
</body> </body>

Powered by WebSVN 2.2.1