czf4bfu |
Subversion Repositories: |
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("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň")); |
$jmena_cloudu["$cloud[1]"]=strtr($jmena_cloudu["$cloud[1]"], array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň")); | |
} |
} | |
} 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 | |
|
| |
?> |
?> | |
|
|