jablonka.czprosek.czf

czf4bfu

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

Show entire file Ignore whitespace

Rev 10 Rev 11
Line 2... Line 2...
error_reporting(0); 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; $i=0;
  $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." ";
Line 255... Line 256...
echo "</div><div class=\"info_cut\"></div></div>"; echo "</div><div class=\"info_cut\"></div></div>";
} }
   
   
if(!empty($seznam)) { if(!empty($seznam)) {
   
  $item = array();
  $items = array();
  $oblast = array();
   
$pocet_globalu = $i; $pocet_globalu = $i;
$polozka=-1; $polozka=-1;
for ($g=0; $g<$pocet_globalu; ++$g) { for ($g=0; $g<$pocet_globalu; ++$g) {
   
Line 286... 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) {
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 (!($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";
Line 309... Line 314...
$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));
} }
} }
} }
} }
$obl["$cloud[1]"][] = $items[$k]; $obl["$cloud[1]"][] = $items[$k];
} }
   
unset($item); unset($item);
$pocet_oblasti = count($oblast)-1; $pocet_oblasti = count($oblast)-1;
   
Line 504... Line 509...
show_groups($sorted["$czf_oblast"]); show_groups($sorted["$czf_oblast"]);
   
echo "<div class=\"sizer\"></div></div>\n"; echo "<div class=\"sizer\"></div></div>\n";
   
} }
   
  unset($items);
   
} // end } // end
   
?> ?>
   

Powered by WebSVN 2.2.1