czf4bfu |
Subversion Repositories: |
Rev 18 | Rev 19 | |
---|---|---|
Line 28... | Line 28... | |
?> |
?> | |
|
| |
<!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.7 (c) Jirka Klír 2010 for CZFree.net ;-) # --> |
<!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v 1.8 (c) Jirka Klír 2011 for CZFree.net ;-) # --> | |
<title>CZF4BFU<?php if($_GET["oblast"]!="") echo " | ".$_GET["oblast"]; ?><?php if($_GET["group"]=="2") echo " | Cloudy"; ?></title> |
<title>CZF4BFU<?php if($_GET["oblast"]!="") echo " | ".$_GET["oblast"]; ?><?php if($_GET["group"]=="2") echo " | Cloudy"; ?></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="cs" /> |
<meta http-equiv="Content-language" content="cs"> | |
<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"> | |
<link rel="SHORTCUT ICON" href="favicon.ico"> |
<link rel="SHORTCUT ICON" href="favicon.ico"> | |
</head> |
</head> | |
<body> |
<body> | |
Line 174... | Line 174... | |
return $a; |
return $a; | |
} |
} | |
|
| |
function arfsort_func($a,$b){ |
function arfsort_func($a,$b){ | |
global $sort_cz; |
global $sort_cz; | |
$arr = array("Á" => "azzz", "É" => "ezzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz"); | ||
$order[0][0] = "TYP"; |
$order[0][0] = "TYP"; | |
$order[1][0] = "NAZEV"; |
$order[1][0] = "NAZEV"; | |
foreach($order as $f) { |
foreach($order as $f) { | |
if($sort_cz=="1") { |
if($sort_cz=="1") { | |
$a[$f[0]]=strtr($a[$f[0]], array("Á" => "azzz", "É" => "ezzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz")); |
$a[$f[0]]=strtr($a[$f[0]], $arr); | |
$b[$f[0]]=strtr($b[$f[0]], array("Á" => "azzz", "É" => "ezzz", "Í" => "izzz", "Ó" => "ozzz", "Ú" => "uzzz", "Ý" => "yzzz", "Ž" => "zzzz", "Š" => "szzz", "Č" => "czzz", "Ř" => "rzzz")); |
$b[$f[0]]=strtr($b[$f[0]], $arr); | |
} |
} | |
$strc = strcasecmp($a[$f[0]],$b[$f[0]]); |
$strc = strcasecmp($a[$f[0]],$b[$f[0]]); | |
if ($strc!=0) { |
if ($strc!=0) { | |
return $strc; |
return $strc; | |
} |
} | |
Line 300... | Line 301... | |
$item = array(); |
$item = array(); | |
$items = array(); |
$items = array(); | |
$oblast = array(); |
$oblast = array(); | |
|
| |
$polozka=-1; |
$polozka=-1; | |
$patterns = array('%\:(?:\s|\t)+%', '%\\\\([\r\n])+%', '%OBLAST\:([\r\n])+%i'); |
$patterns = array('%OBLAST\:([\s\t]+)?([\r\v\n]+)%i', '%ICON\:([\s\t]+)?([\r\v\n]+)%i', '%\:(?:\s|\t)+%', '%\\\\([\r\v\n])+%'); | |
$replacements = array(":", "\\", "OBLAST:10.0.0.0/8"); |
$replacements = array("OBLAST:10.0.0.0/8\n", "", ":", "\\"); | |
$trans = array("\\" => "\\n", (chr(13)) => "", (chr(9)) => "", "á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň", "ž" => "ž", "š" => "š"); |
$trans = array("\\" => "\\n", (chr(13)) => "", (chr(9)) => "", "á" => "á", "é" => "é", "ě" => "ě", "í" => "í", "ó" => "ó", "ú" => "ú", "ů" => "ů", "ý" => "ý", "" => "ž", "" => "š", "č" => "č", "ř" => "ř", "ď" => "ď", "" => "ť", "ň" => "ň", "Á" => "Á", "É" => "É", "Ě" => "Ě", "Í" => "Í", "Ó" => "Ó", "Ú" => "Ú", "Ů" => "Ů", "Ý" => "Ý", "" => "Ž", "" => "Š", "Č" => "Č", "Ř" => "Ř", "Ď" => "Ď", "" => "Ť", "Ň" => "Ň", "ž" => "ž", "š" => "š"); | |
|
| |
foreach($seznam as $fil) { |
foreach($seznam as $fil) { | |
$dat = file_get_contents($fil); |
$dat = file_get_contents($fil); | |
$dat = preg_replace($patterns, $replacements, $dat); |
$dat = strtr(preg_replace($patterns, $replacements, $dat), $trans); | |
$dat = strtr($dat, $trans); |
||
$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 (preg_match('%^TYP:%i',$data[$j])) { |
if (preg_match('%^TYP:%i',$data[$j])) { | |
$polozka++; |
$polozka++; | |
preg_match('/^(?:global|local)-(.*).txt$/i', $fil, $filen); |
preg_match('/^(?:global|local)-(.*).txt$/i', $fil, $filen); | |
$item[$polozka]=$item[$polozka]."BFUFILE:".$filen[1]."<br>"; |
$item[$polozka]="BFUFILE:".$filen[1]."<br>"; | |
} |
} | |
$item[$polozka]=$item[$polozka].$data[$j]."<br>"; |
$item[$polozka]=$item[$polozka].$data[$j]."<br>"; | |
} |
} | |
} |
} | |
} |
} | |
|
| |
// ------- naladujem data do 3-rozmernyho pole ------- |
// ------- naladujem data do 3-rozmernyho pole ------- | |
|
| |
for ($k=0; $k<=$polozka; ++$k) { |
for ($k=0; $k<=$polozka; ++$k) { | |
Line 504... | Line 504... | |
unset($oblast); |
unset($oblast); | |
} // end seznam |
} // end seznam | |
|
| |
?> |
?> | |
|
| |
<div id="copy">czf4bfu v1.7 - made <a href="http://www.jklir.net/">Unreal][</a> </div> |
<div id="copy">czf4bfu v1.8 - made <a href="http://www.jklir.net/">Unreal][</a> </div> | |
</body> |
</body> | |
</html> |
</html> |