jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [index.php] - Diff between revs 18 and 19

Show entire file Ignore whitespace

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("&#193;" => "azzz", "&#201;" => "ezzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "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("&#193;" => "azzz", "&#201;" => "ezzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "rzzz")); $a[$f[0]]=strtr($a[$f[0]], $arr);
$b[$f[0]]=strtr($b[$f[0]], array("&#193;" => "azzz", "&#201;" => "ezzz", "&#205;" => "izzz", "&#211;" => "ozzz", "&#218;" => "uzzz", "&#221;" => "yzzz", "&#381;" => "zzzz", "&#352;" => "szzz", "&#268;" => "czzz", "&#344;" => "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)) => "", "á" => "&#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;", "ž" => "&#382", "š" => "&#353"); $trans = array("\\" => "\\n", (chr(13)) => "", (chr(9)) => "", "á" => "&#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;", "ž" => "&#382", "š" => "&#353");
   
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>&nbsp;</div> <div id="copy">czf4bfu v1.8 - made <a href="http://www.jklir.net/">Unreal][</a>&nbsp;</div>
</body> </body>
</html> </html>

Powered by WebSVN 2.2.1