jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [index.php] - Diff between revs 6 and 7

Show entire file Ignore whitespace

Rev 6 Rev 7
Line 7... Line 7...
$seznam = array(); $seznam = array();
$oblast = array(); $oblast = array();
$item = array(); $item = array();
$items = array(); $items = 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[$i] = $file;
++$i; ++$i;
Line 185... Line 185...
return 0; return 0;
} }
   
function show_small($test) { function show_small($test) {
foreach ($test as $key=>$row) { foreach ($test as $key=>$row) {
$oblast = $row["OBLAST"]; $oblastx = $row["OBLAST"];
$typ = $row["TYP"]; $typ = $row["TYP"];
$nazev = $row["NAZEV"]; $nazev = $row["NAZEV"];
$id = $row["ID"]; $id = $row["ID"];
if($oblast==="") { $oblast="10.0.0.0/8"; } if($oblastx=="") { $oblastx="10.0.0.0/8"; }
$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=".$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=$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=$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"]; $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"];
if($oblast==="") { $oblast="10.0.0.0/8"; } if($oblastx=="") { $oblastx="10.0.0.0/8"; }
$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=".$oblast."#".$oblast."\"><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 = "";
foreach ($test as $row) { foreach ($test as $row) {
$oblast = $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"];
if($oblast==="") { $oblast="10.0.0.0/8"; } if($oblastx=="") { $oblastx="10.0.0.0/8"; }
$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=".$oblast."#".$oblast."\"><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"; echo "<div class=\"sizer\"></div><a name=\"".$typ."\" href=\"#".$typ."\" class=\"title\">".$typ."</a>\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"; 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 316... Line 315...
$cloudy = ""; $cloudy = "";
   
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]))) { 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 (!ereg($cloud[1], $cloudy)) {
$cloudy .= $cloud[1].";"; $cloudy .= $cloud[1].";";
} }
} }
} }
$cloudy = substr($cloudy, 0, -1); $cloudy = substr($cloudy, 0, -1);
Line 333... Line 332...
   
// ------- 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"; } $rowoblast = $row["OBLAST"];
if($row["OBLAST"]==$oblast[$o]) { if($rowoblast=="") { $rowoblast="10.0.0.0/8"; }
  if($rowoblast==$oblast[$o]) {
$obl["$oblast[$o]"][]=$row; $obl["$oblast[$o]"][]=$row;
} }
} }
} }
   

Powered by WebSVN 2.2.1