czf4bfu.prosek.czf |
Subversion Repositories: |
Rev 5 | Rev 8 | |
---|---|---|
Line 4... | Line 4... | |
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("-->"); |
echo("-->"); | |
closedir($dir); |
closedir($dir); | |
} |
} | |
?> |
?> | |
| ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> |
<html> | |
<head> |
<head> | |
<!-- |
<!-- | |
|
| |
Line 18... | Line 19... | |
# This script built Unreal][ # http://www.jklir.net # |
# This script built Unreal][ # http://www.jklir.net # | |
# # # |
# # # | |
##################################################### |
##################################################### | |
# # |
# # | |
# Licence: GNU/GPL # |
# Licence: GNU/GPL # | |
# Some Icons are downloaded from internet and have # |
# Some Icons was downloaded from the internet and # | |
# copyrights. Please use it with GNU/GPL licence # |
# have copyrights. Please use it with GNU/GPL # | |
# licence and in non-comercial projects. # | ||
# # |
# # | |
##################################################### |
##################################################### | |
# # |
# # | |
# (c) Jirka Klír 2007 for czfree.net ;-) # |
# v 1.3 (c) Jirka Klír 2008 for CZFree.net ;-) # | |
# # |
# # | |
##################################################### |
##################################################### | |
|
| |
--> |
--> | |
<title>CZF4BFU</title> |
<title>CZF4BFU</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="cz" /> | |
<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 style="background: #D4D0C8"> | |
|
| |
<H1>Rozcestník CZFree.Net</H1> |
<H1>Rozcestník CZFree.Net</H1> | |
<?php |
||
|
| |
$group = !@$group; |
<?php | |
$text = ($group) ? 'seskupit' : 'neseskupovat'; |
$group = @$_GET["group"]; | |
echo "<a class='group' href='?group=".$group."&id=".@$_GET["id"]."&oblast=".@$_GET["oblast"]."'>$text podle typu služeb</a>"; |
if($group!=2) { | |
if(@$_GET["oblast"]!="") { $aname = "#".$_GET["oblast"]; } else { $aname = ""; } | ||
$group = !$group; | ||
$text = ($group) ? "seskupit" : "neseskupovat"; | ||
echo "<a class=\"group\" href=\"?group=".$group."&id=".@$_GET["id"]."&oblast=".@$_GET["oblast"].$aname."\">$text podle typu služeb</a>"; | ||
} else { | ||
echo "<a class=\"group\" href=\"#\"> </a>"; | ||
} | ||
?> |
?> | |
| ||
<div class="tree"> |
<div class="tree"> | |
<a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>celá síť</a> |
<a class="nomargin title" href="?oblast="><strong>CZFree.net</strong><br>celá síť</a> | |
<div class="smallicon"><a title="seznam služeb" href="?oblast="><img width="10" border="0" src="img/point.png"></a> <a title="seznam služeb" href="?oblast=">seznam služeb</a></div> | ||
<div class="smallicon"><a title="seznam cloudů" href="?group=2"><img width="10" border="0" src="img/point.png"></a> <a title="seznam cloudů" href="?group=2">seznam cloudů</a></div> | ||
|
| |
<?php |
||
|
| |
<?php | ||
$jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network", |
$jmena_cloudu = array("10.1.0.0/16" => "Connection.cz / AS Centrum network", | |
"10.2.0.0/16" => "Praha - Connection.cz", |
"10.2.0.0/16" => "Praha - Connection.cz", | |
"10.10.0.0/16" => "reserved", |
"10.10.0.0/16" => "reserved", | |
"10.11.0.0/16" => "Praha - Střeovice, Břevnov, Hradčany, Strahov", |
"10.11.0.0/16" => "Praha - Střeovice, Břevnov, Hradčany, Strahov", | |
"10.12.0.0/16" => "Praha - Nusle, Michle, Ruská ul.", |
"10.12.0.0/16" => "Praha - Nusle, Michle, Ruská ul.", | |
"10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Luiny, Řeporyje", |
"10.13.0.0/16" => "Praha - Stodůlky, Nové Butovice, Luka, Luiny, Řeporyje", | |
"10.14.0.0/16" => "Praha 6", |
||
"10.15.0.0/16" => "Praha - Malvazinky, Koíře, Motol", |
"10.15.0.0/16" => "Praha - Malvazinky, Koíře, Motol", | |
"10.16.0.0/16" => "Praha - Barrandov", |
"10.16.0.0/16" => "Praha - Barrandov", | |
"10.17.0.0/16" => "Praha - Záběhlice, Zahradní město", |
"10.17.0.0/16" => "Praha - Záběhlice, Zahradní město", | |
"10.18.0.0/16" => "Praha - Dejvice, Podbaba", |
"10.18.0.0/16" => "Praha - Dejvice, Podbaba", | |
"10.19.0.0/16" => "Praha - Suchdol", |
"10.19.0.0/16" => "Praha - Suchdol, Lysolaje, Hanspaulka, Horoměřice", | |
"10.20.0.0/16" => "Praha - P6 - Dědina, Liboc, Ruzyně", | ||
"10.21.0.0/16" => "Praha - Řepy, Zličín", |
"10.21.0.0/16" => "Praha - Řepy, Zličín", | |
"10.22.0.0/16" => "Praha - Holeovice", |
"10.22.0.0/16" => "Praha - Holeovice", | |
"10.23.0.0/16" => "Praha - ikov, Vinohrady", |
"10.23.0.0/16" => "Praha - Vinohrady, Vrovice, ikov", | |
"10.24.0.0/16" => "Praha - Jarov, Stranice, Maleice, Skalka", |
"10.24.0.0/16" => "Praha - Jarov, Stranice, Maleice, Skalka", | |
"10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník", |
"10.25.0.0/16" => "Praha - Hlubočepy, Podolí, Braník", | |
"10.26.0.0/16" => "Praha - Černoice, Zbraslav, Radotín", |
"10.26.0.0/16" => "Praha - Lipence, Zbraslav, Radotín", | |
"10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky", |
"10.27.0.0/16" => "Praha - Modřany, Velká Chuchle, Hodkovičky", | |
"10.28.0.0/16" => "VYPAL (VYsočany, PAlmovka, Libeň)", |
"10.28.0.0/16" => "Praha - VYPAL (VYsočany, PAlmovka, Libeň)", | |
"10.30.0.0/16" => "Praha - Hostivař, Horní Měcholupy, Dolní Měcholupy, Běchovice", |
"10.30.0.0/16" => "Praha - Hostivař, Horní Měcholupy, Dolní Měcholupy, Běchovice", | |
"10.31.0.0/16" => "Praha - Bohnice, Čimice", |
"10.31.0.0/16" => "Praha - Bohnice, Čimice", | |
"10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna", |
"10.32.0.0/16" => "Praha - Dolní Chabry, Ďáblice, Kobylisy, Vychovatelna", | |
"10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice", |
"10.33.0.0/16" => "Praha - Prosek, Letňany, Čakovice", | |
"10.34.0.0/16" => "Praha - Letná, trossmajerák", |
"10.34.0.0/16" => "Praha - Letná, trossmajerák", | |
"10.37.0.0/16" => "Praha - Radotín", |
"10.37.0.0/16" => "Praha - Radotín", | |
"10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky", |
"10.38.0.0/16" => "Praha - Chodov, Opatov, Háje, Kateřinky", | |
"10.39.0.0/16" => "Praha - ibřina, Újezd nad Lesy, Koloděje, Květnice", |
"10.39.0.0/16" => "Praha - ibřina, Újezd nad Lesy, Koloděje, Květnice", | |
"10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly", |
"10.40.0.0/16" => "Praha - Krč, sidl.Novodvorská, Kačerov, Spořilov, Roztyly", | |
"10.41.0.0/16" => "HMNet - Horní Měcholupy", |
"10.41.0.0/16" => "HMNet - Horní Měcholupy", | |
"10.42.0.0/16" => "Černoice, Venory, Mokropsy a okolí", |
||
"10.43.0.0/16" => "Řepná pole, Vinoř", |
"10.43.0.0/16" => "Řepná pole, Vinoř", | |
"10.44.0.0/16" => "Praha - Podolí", | ||
"10.48.0.0/16" => "Praha 2, 4, 10", | ||
"10.49.0.0/16" => "Praha 1, 3", | ||
"10.50.0.0/16" => "Praha - Centrum Prahy", |
"10.50.0.0/16" => "Praha - Centrum Prahy", | |
"10.51.0.0/16" => "Praha - Petřiny", |
"10.51.0.0/16" => "Praha - Petřiny", | |
"10.52.0.0/16" => "Praha - Vrovice", | ||
"10.55.0.0/16" => "Connection.cz", |
"10.55.0.0/16" => "Connection.cz", | |
"10.63.0.0/17" => "Rakovník a okolí", |
"10.63.0.0/17" => "Rakovník a okolí", | |
"10.66.0.0/16" => "Praha - Hostivice, Rudná u Prahy, Chýně, Ptice, Červený Újezd, Sobín, Úhonice", |
"10.66.0.0/16" => "Hostivice, Chýně, Ptice, Červený Újezd, Sobín", | |
"10.67.0.0/16" => "Rudná u Prahy, Ptice, Úhonice, Drahelčice", | ||
"10.69.0.0/17" => "Mělník a okolí", |
"10.69.0.0/17" => "Mělník a okolí", | |
"10.69.128.0/17" => "Neratovice a okolí", |
"10.69.128.0/17" => "Neratovice a okolí", | |
"10.81.0.0/16" => "Jihlava", |
"10.70.0.0/16" => "Beroun a okolí", | |
"10.88.0.0/16" => "Říčany, Mnichovice a okolí", |
"10.76.0.0/16" => "Plzeň - PilsFree 1", | |
"10.91.0.0/16" => "Velké Přílepy", |
"10.78.0.0/16" => "Plzeň - PilsFree 2", | |
"10.92.0.0/16" => "Libčice nad Vltavou", |
"10.88.0.0/16" => "Říčany a okolí", | |
"10.89.0.0/16" => "Mnichovice", | ||
"10.91.0.0/19" => "Velké Přílepy", | ||
"10.92.0.0/19" => "Libčice nad Vltavou", | ||
"10.93.0.0/16" => "Čelákovice", |
"10.93.0.0/16" => "Čelákovice", | |
"10.95.0.0/16" => "Řevnice, Dobřichovice", |
"10.94.0.0/17" => "Mladá Boleslav a okolí", | |
"10.99.0.0/16" => "Třebestovice", |
"10.95.0.0/17" => "Řevnice, Dobřichovice", | |
"10.96.0.0/16" => "Venory, Karlík, Dobřichovice, Lety, Řevnice, Třebáň", | ||
"10.98.0.0/16" => "Unho, Chýně, Červený Újezd, Ptice, Nouzov, Kysice, Brakov, Horní Bezděkov a dalí", | ||
"10.99.0.0/18" => "Třebestovice", | ||
"10.100.0.0/16" => "Říčany", |
"10.100.0.0/16" => "Říčany", | |
"10.101.0.0/16" => "Liberec", |
"10.101.0.0/16" => "Liberec", | |
"10.102.0.0/16" => "Kladno, Unho a okolí", |
"10.102.0.0/16" => "Kladno, Unho a okolí", | |
"10.103.0.0/16" => "Karlovy Vary", |
"10.103.0.0/16" => "Karlovy Vary", | |
"10.104.0.0/16" => "Jablonec", |
"10.104.0.0/17" => "Jablonec", | |
"10.105.0.0/16" => "Kolín", |
"10.105.0.0/17" => "Kolín", | |
"10.106.0.0/16" => "Kutná Hora - okres", |
"10.106.0.0/16" => "Kutná Hora - okres", | |
"10.107.0.0/16" => "Hradec Králové", |
"10.107.0.0/16" => "Hradec Králové", | |
"10.108.0.0/16" => "České Budějovice", |
"10.108.0.0/16" => "České Budějovice", | |
"10.109.0.0/16" => "Plzeň", |
"10.109.0.0/16" => "Plzeň", | |
"10.110.0.0/16" => "Chrudim", |
"10.110.0.0/17" => "Chrudim", | |
"10.111.0.0/16" => "Plzeň - sever", |
"10.111.0.0/16" => "Plzeň - sever", | |
"10.112.0.0/16" => "Lysá nad Labem", |
"10.112.0.0/16" => "Lysá nad Labem", | |
"10.113.0.0/16" => "Louny, atec, Pobořany", | ||
"10.114.0.0/16" => "Příbram", |
"10.114.0.0/16" => "Příbram", | |
"10.120.0.0/18" => "MH2Net - Mnichovo Hraditě, Turnov", |
"10.117.0.0/16" => "Turnov a okolí", | |
"10.120.0.0/18" => "MH2Net - Mnichovo Hraditě směr Turnov", | ||
"10.128.0.0/15" => "Brno - město", | ||
"10.128.0.0/16" => "Brno - město", |
"10.128.0.0/16" => "Brno - město", | |
"10.129.0.0/16" => "okolí Brna", |
"10.129.0.0/16" => "okolí Brna", | |
"10.129.24.0/21" => "Tinov", |
"10.129.24.0/21" => "Tinov", | |
"10.130.0.0/16" => "Severní Morava", |
"10.130.0.0/16" => "Severní Morava", | |
"10.131.0.0/16" => "Jiní Morava", |
"10.131.0.0/16" => "Uherské Hraditě", | |
"10.132.0.0/16" => "Morava - Olomouc", |
"10.132.0.0/16" => "Střední Morava - Olomouc", | |
"10.133.0.0/16" => "Prostějov", |
"10.133.0.0/16" => "Prostějov", | |
"10.134.0.0/16" => "rezerva pro Moravu", |
"10.134.0.0/16" => "Přerovsko", | |
"10.135.0.0/16" => "rezerva pro Moravu", |
"10.135.0.0/16" => "rezerva pro Moravu", | |
"10.136.0.0/16" => "testovací sítě pro Moravu", |
"10.136.0.0/16" => "testovací sítě pro Moravu", | |
"10.144.0.0/16" => "Zlín, Vsetín, Valaské Meziříčí - okresy", |
"10.144.0.0/16" => "Zlín, Vsetín, Valaské Meziříčí - okresy", | |
"10.145.0.0/16" => "Nový Jičín, Kopřivnice, Frýdek Místek - okresy", | ||
"10.152.0.0/16" => "Ostrava - okres", |
"10.152.0.0/16" => "Ostrava - okres", | |
"10.153.0.0/16" => "Ostrava - okres", |
"10.153.0.0/16" => "Ostrava - okres", | |
"10.154.0.0/16" => "Ostrava - okres", |
"10.154.0.0/16" => "Ostrava - okres", | |
"10.155.0.0/16" => "Ostrava - okres", |
"10.155.0.0/16" => "Ostrava - okres", | |
"10.160.0.0/16" => "Teplice a okolí", |
"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-BACKB-1"); |
"10.254.0.0/16" => "NCX Labyrint"); | |
|
| |
function arfsort( $a, $fl ){ |
// prasarna, ale dokaze to radit cesky retezce :-) | |
$trans_cz = array("Á" => "azzz", "É" => "ezzz", "Ě" => "ezzzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz", "Ď" => "dzzz", "Ť" => "tzzz", "Ň" => "nzzz"); | ||
| ||
function arfsort( $a, $fl, $y ){ | ||
$GLOBALS['__ARFSORT_LIST__'] = $fl; |
$GLOBALS['__ARFSORT_LIST__'] = $fl; | |
$GLOBALS['__ARFSORT_YES__'] = $y; | ||
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; | ||
foreach( $GLOBALS['__ARFSORT_LIST__'] as $f ) { |
foreach( $GLOBALS['__ARFSORT_LIST__'] as $f ) { | |
switch ($f[1]) { // switch on ascending or descending value |
if($GLOBALS['__ARFSORT_YES__']=="1") { | |
case "d": |
$a[$f[0]]=strtr($a[$f[0]], $trans_cz); | |
$strc = strcmp( strtolower($b[$f[0]]), strtolower($a[$f[0]]) ); |
$b[$f[0]]=strtr($b[$f[0]], $trans_cz); | |
if ( $strc != 0 ){ |
} | |
return $strc; |
||
} |
||
break; |
||
default: |
||
$strc = strcmp( strtolower($a[$f[0]]), strtolower($b[$f[0]]) ); |
$strc = strcmp( strtolower($a[$f[0]]), strtolower($b[$f[0]]) ); | |
if ( $strc != 0 ){ |
if ( $strc != 0 ) { | |
return $strc; |
return $strc; | |
} else { | ||
return 0; | ||
} |
} | |
break; |
||
} |
||
} |
} | |
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"; } |
if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } | |
$ikonka = $row['TYP']; |
$ikonka = $row['TYP']; | |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } | |
print "<div class='smallicon'><a title='".$row['NAZEV']."' href='?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."'><img width='16' title='".$row['NAZEV']."' border='0' src='ikony/$ikonka.png'></a> <a title='".$row['NAZEV']."' href='?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."'>".$row['NAZEV']."</a></div>"; |
echo "<div class=\"smallicon\"><a title=\"".$row['NAZEV']."\" href=\"?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."\"><img width=\"16\" title=\"".$row['NAZEV']."\" border=\"0\" src=\"ikony/$ikonka.png\"></a> <a title=\"".$row['NAZEV']."\" href=\"?id=".$row['ID']."&oblast=".$row['OBLAST']."#".$row['OBLAST']."\">".$row['NAZEV']."</a></div>\n"; | |
} |
} | |
} |
} | |
|
| |
function show_big($test) { |
function show_big($test) { | |
foreach ($test as $key=>$row) { |
foreach ($test as $key=>$row) { | |
|
| |
if(@$row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } |
if(@$row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } | |
$ikonka = $row['TYP']; |
$ikonka = $row['TYP']; | |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } | |
|
| |
print "<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>"; |
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"; | |
} |
} | |
} |
} | |
|
| |
function show_groups($test) { |
function show_groups($test) { | |
foreach ($test as $key=>$row) { |
foreach ($test as $key=>$row) { | |
|
| |
if ($row['TYP']==@$pamatuj) { |
if ($row['TYP']==@$pamatuj) { | |
|
| |
if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } |
if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } | |
$ikonka = $row['TYP']; |
$ikonka = $row['TYP']; | |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } | |
|
| |
print "<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>"; |
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"; | |
} else { |
} else { | |
echo "<div class='sizer'></div><a name='".$row['TYP']."' href='#".$row['TYP']."' class='title'>".$row['TYP']."</a>"; |
echo "<div class=\"sizer\"></div><a name=\"".$row['TYP']."\" href=\"#".$row['TYP']."\" class=\"title\">".$row['TYP']."</a>\n"; | |
if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } |
if($row['OBLAST']=="") { $row['OBLAST']="10.0.0.0/8"; } | |
$ikonka = $row['TYP']; |
$ikonka = $row['TYP']; | |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } |
if(!file_exists("ikony/".$ikonka.".png")) { $ikonka = "none"; } | |
|
| |
print "<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>"; |
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']; |
$pamatuj = $row['TYP']; | |
} |
} | |
} |
} | |
|
| |
function show_details($test) { |
function show_clouds($test) { | |
global $jmena_cloudu; | ||
foreach ($test as $key=>$row) { |
foreach ($test as $key=>$row) { | |
if($row!="") { | ||
$cl_popis = $jmena_cloudu[$row]; | ||
$cl_naz = $row; | ||
$cl_nazev = $row."<br>".$cl_popis; | ||
|
| |
print "<strong>".$key."</strong>: ".$test[$key]."<br>"; |
echo "<div class=\"icon2\"><a title=\"".$cl_popis."\" href=\"?oblast=".$cl_naz."#".$cl_naz."\"><img title=\"".$cl_popis."\" border=\"0\" width=\"50\" src=\"img/cloud.png\"><br>".$cl_nazev."</a></div>\n"; | |
} | ||
} |
} | |
} |
} | |
|
| |
function show_details($test) { | ||
$ikonka_det = $test['TYP']; | ||
if(!file_exists("ikony/".$ikonka_det.".png")) { $ikonka_det = "none"; } | ||
echo "<div class=\"det\">"; | ||
echo "<div class=\"icon_det\"><img alt=\"$ikonka_det\" src=\"ikony/$ikonka_det.png\"></div>"; | ||
echo "<div class=\"info_det\">"; | ||
foreach ($test as $key=>$row) { | ||
if($key!="HESLOEDIT") { | ||
echo "<strong>".$key."</strong>: ".$test[$key]."<br>"; | ||
} | ||
} | ||
echo "</div><div class=\"info_cut\"></div></div>"; | ||
} | ||
|
| |
$i=0; |
$i=0; | |
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)) { | |
Line 231... | Line 275... | |
$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); | |
|
| |
$trans_code = array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň"); |
$trans_code = array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň", "ž" => "ž", "š" => "š"); | |
$item[$polozka]=strtr($item[$polozka], $trans_code); |
$item[$polozka]=strtr($item[$polozka], $trans_code); | |
} |
} | |
} |
} | |
|
| |
// ------- 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]); | |
for ($b=0; $b<=(count($ic)); $b++) { |
$cnt_ic = (count($ic)); | |
if($b==(count($ic))) { |
for ($b=0; $b<=$cnt_ic; $b++) { | |
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((((substr($ic[$b], 0, $pole))=="URL") or ((substr($ic[$b], 0, $pole))=="URLIP")) or ((substr($ic[$b], 0, $pole))=="URLINET")) { | |
$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)); | |
} |
} | |
} |
} | |
} |
} | |
} |
} | |
} |
} | |
|
| |
// ------- a pekne seradime, moc sikovny ;-) ------- |
||
|
| |
$order_arr = array( array('TYP','a'), array('NAZEV','a') ); |
$order_arr = array( array('TYP','a'), array('NAZEV','a') ); // pravidlo razeni | |
$sorted = arfsort( $items, $order_arr); |
||
|
| |
|
| |
// -- zjisteni a serazeni oblasti |
// -- zjisteni a serazeni oblasti | |
|
| |
|
| |
Line 290... | Line 333... | |
$oblast[$m]=$oblast[$m-1]; |
$oblast[$m]=$oblast[$m-1]; | |
$oblast[$m-1]=$x; |
$oblast[$m-1]=$x; | |
} |
} | |
} |
} | |
} |
} | |
|
||
//for ($l=0; $l<=$pocet_oblasti; $l++) { |
||
//echo $l.$oblast[$l]."<br>"; |
||
//} |
||
|
| |
|
| |
// ------- zapiseme hodnoty do cloudovskych poli ------- |
// ------- zapiseme hodnoty do cloudovskych poli ------- | |
|
| |
for ($o=0; $o<=$pocet_oblasti; $o++) { |
for ($o=0; $o<=$pocet_oblasti; $o++) { | |
Line 307... | Line 346... | |
|
| |
$obl[$oblast[$o]][]=$row; |
$obl[$oblast[$o]][]=$row; | |
} |
} | |
} |
} | |
} |
} | |
|
||
|
| |
// ------- prekodujem nazvy cloudu, aby nam nedelaly bordel pri spatnym kodovani ------- |
// ------- prekodujem nazvy cloudu, aby nam nedelaly bordel pri spatnym kodovani ------- | |
|
| |
for ($o=0; $o<=$pocet_oblasti; $o++) { |
for ($o=0; $o<=$pocet_oblasti; $o++) { | |
$trans_code = array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň"); |
$trans_code = array("á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň"); | |
$jmena_cloudu[$oblast[$o]]=strtr(@$jmena_cloudu[@$oblast[@$o]], $trans_code); |
$jmena_cloudu["$oblast[$o]"]=strtr(@$jmena_cloudu["$oblast[$o]"], $trans_code); | |
} |
} | |
|
||
|
| |
// ------- 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>"; |
echo "<a class=\"title\" name=\"".$oblast[$o]."\" href=\"?oblast=".$oblast[$o]."#".$oblast[$o]."\"><span class=\"cloudip\">".$oblast[$o]."</span>\n"; | |
if(strlen($jmena_cloudu[$oblast[$o]])>=1) { |
if(strlen($jmena_cloudu[$oblast[$o]])>=1) { | |
echo "<br>".$jmena_cloudu[$oblast[$o]]."</a>"; |
echo "<br>".$jmena_cloudu[$oblast[$o]]."</a>"; | |
} else { |
} else { | |
echo "</a>"; |
echo "</a>"; | |
} |
} | |
|
| |
$sorted2 = arfsort( $obl[$oblast[$o]], $order_arr); |
$sorted["$oblast[$o]"] = arfsort( $obl["$oblast[$o]"], $order_arr, 0); | |
show_small($sorted2); |
show_small($sorted["$oblast[$o]"]); | |
|
| |
} |
} | |
|
| |
?> |
?> | |
|
| |
Line 340... | Line 377... | |
<div class="items"> |
<div class="items"> | |
|
| |
<?php |
<?php | |
|
| |
//############# PODMINKY ZOBRAZENI ###############// |
//############# PODMINKY ZOBRAZENI ###############// | |
| ||
if((@$_GET["group"]!="1") and (@$_GET["group"]!="2")) { $_GET["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"]!="1")) { |
if (((@$_GET["oblast"]=="") and (@$_GET["id"]=="")) and (@$_GET["group"]=="")) { | |
$sorted0 = arfsort( $items, $order_arr, 1); | ||
show_big($sorted0); | ||
|
| |
show_big($sorted); |
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 (((@$_GET["oblast"]=="") and (@$_GET["id"]=="")) and (@$_GET["group"]=="1")) { | |
$sorted0 = arfsort( $items, $order_arr, 1); | ||
show_groups($sorted0); | ||
|
| |
show_groups($sorted); |
echo "<div class=\"sizer\"></div></div>"; | |
} | ||
| ||
// ------- pokud neni uvedena oblast ani id ale groupa je 2 ------- | ||
| ||
if (((@$_GET["oblast"]=="") and (@$_GET["id"]=="")) and (@$_GET["group"]=="2")) { | ||
| ||
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"]!="1")) { |
if (((@$_GET["oblast"]!="") and (@$_GET["id"]!="")) and (@$_GET["group"]=="")) { | |
$sorted3 = arfsort( $obl[$_GET["oblast"]], $order_arr); |
| |
show_big($sorted3); |
show_big($sorted[$_GET["oblast"]]); | |
|
| |
echo "<div class='sizer'></div></div>"; |
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'>"; |
echo "<div class=\"contents\">\n"; | |
if ($_GET["id"]<=$polozka) { |
if ($_GET["id"]<=$polozka) { | |
|
| |
show_details($items[$_GET["id"]]); |
show_details($items[$_GET["id"]]); | |
|
| |
} else { |
} else { | |
echo "Poloka neexistuje"; |
echo "<br>Položka neexistuje<br>"; | |
} |
} | |
echo "</div></div>"; |
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 (((@$_GET["oblast"]!="") and (@$_GET["id"]!="")) and (@$_GET["group"]=="1")) { | |
$sorted3 = arfsort( $obl[$_GET["oblast"]], $order_arr); |
||
show_groups($sorted3); |
||
|
| |
echo "<div class='sizer'></div></div>"; |
show_groups($sorted[$_GET["oblast"]]); | |
echo "<div class='detail'><div class='nomargin title'><strong>Detaily:</strong></div>"; |
| |
echo "<div class='contents'>"; |
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 ($_GET["id"]<=$polozka) { |
if ($_GET["id"]<=$polozka) { | |
|
| |
show_details($items[$_GET["id"]]); |
show_details($items[$_GET["id"]]); | |
|
| |
} else { |
} else { | |
echo "Poloka neexistuje"; |
echo "<br>Položka neexistuje<br>"; | |
} |
} | |
echo "</div></div>"; |
echo "</div></div>\n"; | |
|
| |
} |
} | |
|
| |
|
| |
// ------- 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"]!="1")) { |
if (((@$_GET["oblast"]=="") and (@$_GET["id"]!="")) and (@$_GET["group"]=="")) { | |
if ($_GET["id"]<=$polozka) { |
if ($_GET["id"]<=$polozka) { | |
| ||
if(($items[$_GET["id"]]["OBLAST"])=="") { |
if(($items[$_GET["id"]]["OBLAST"])=="") { | |
$sorted4 = arfsort( $obl["10.0.0.0/8"], $order_arr); |
$sorted4 = $sorted["10.0.0.0/8"]; | |
} else { |
} else { | |
$sorted4 = arfsort( $obl[$items[$_GET["id"]]['OBLAST']], $order_arr); |
$sorted4 = $sorted[$items[$_GET["id"]]['OBLAST']]; | |
} |
} | |
|
| |
show_big($sorted4); |
show_big($sorted4); | |
|
| |
} else { |
} else { | |
|
| |
show_big($sorted); |
$sorted0 = arfsort( $items, $order_arr, 0); | |
show_big($sorted0); | ||
|
| |
} |
} | |
|
| |
|
| |
echo "<div class='sizer'></div></div>"; |
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'>"; |
echo "<div class=\"contents\">\n"; | |
if ($_GET["id"]<=$polozka) { |
if ($_GET["id"]<=$polozka) { | |
|
| |
show_details($items[$_GET["id"]]); |
show_details($items[$_GET["id"]]); | |
|
| |
} else { |
} else { | |
echo "Poloka neexistuje"; |
echo "<br>Položka neexistuje<br>"; | |
} |
} | |
echo "</div></div>"; |
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 (((@$_GET["oblast"]=="") and (@$_GET["id"]!="")) and (@$_GET["group"]=="1")) { | |
if ($_GET["id"]<=$polozka) { |
if ($_GET["id"]<=$polozka) { | |
| ||
if(($items[$_GET["id"]]["OBLAST"])=="") { |
if(($items[$_GET["id"]]["OBLAST"])=="") { | |
$sorted4 = arfsort( $obl["10.0.0.0/8"], $order_arr); |
$sorted4 = $sorted["10.0.0.0/8"]; | |
} else { |
} else { | |
$sorted4 = arfsort( $obl[$items[$_GET["id"]]['OBLAST']], $order_arr); |
$sorted4 = $sorted[$items[$_GET["id"]]['OBLAST']]; | |
} |
} | |
|
| |
show_groups($sorted4); |
show_groups($sorted4); | |
|
| |
} else { |
} else { | |
|
| |
show_groups($sorted); |
$sorted0 = arfsort( $items, $order_arr, 0); | |
show_groups($sorted0); | ||
|
| |
} |
} | |
|
| |
|
| |
echo "<div class='sizer'></div></div>"; |
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'>"; |
echo "<div class=\"contents\">\n"; | |
if ($_GET["id"]<=$polozka) { |
if ($_GET["id"]<=$polozka) { | |
|
| |
show_details($items[$_GET["id"]]); |
show_details($items[$_GET["id"]]); | |
|
| |
} else { |
} else { | |
echo "Poloka neexistuje"; |
echo "<br>Položka neexistuje<br>"; | |
} |
} | |
echo "</div></div>"; |
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"]!="1")){ |
if (((@$_GET["oblast"]!="") and (@$_GET["id"]=="")) and (@$_GET["group"]=="")){ | |
|
| |
$sorted3 = arfsort( $obl[$_GET["oblast"]], $order_arr); |
show_big($sorted[$_GET["oblast"]]); | |
show_big($sorted3); |
||
|
| |
echo "<div class='sizer'></div></div>"; |
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 (((@$_GET["oblast"]!="") and (@$_GET["id"]=="")) and (@$_GET["group"]=="1")){ | |
|
| |
$sorted3 = arfsort( $obl[$_GET["oblast"]], $order_arr); |
show_groups($sorted[$_GET["oblast"]]); | |
show_groups($sorted3); |
||
|
| |
echo "<div class='sizer'></div></div>"; |
echo "<div class=\"sizer\"></div></div>\n"; | |
|
| |
} |
} | |
|
| |
|
| |
} // end |
} // end | |
|
| |
?> |
?> | |
|
| |
<div id="copy">czf4bfu v1.1 - made <a href="http://www.jklir.net">Unreal][</a> </div> |
<div id="copy">czf4bfu v1.3 - made <a href="http://www.jklir.net">Unreal][</a> </div> | |
</body> |
</body> | |
</html> |
</html> |