jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [info.php] - Rev 21

Compare with Previous - Blame - Download


<?php $verze = "1.9"; ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
 <!-- Unreal][ # http://www.jklir.net # Licence: GNU/GPL # v <?php echo $verze; ?> (c) Jirka Klír 2013 for CZFree.net ;-) # -->
 <title>CZF4BFU INFO</title>
 <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
 <meta http-equiv="Content-language" content="cs">
 <meta name="Author" content="Unreal][, http://www.jklir.net">
 <link href="styl.css" rel="stylesheet" type="text/css">
 </head>
<body>

<h1>CZF4BFU INFORMATION</h1>

<div class="sizer"></div>

<div class="info">
<a class="title"><strong>Information</strong></a>
<div class="pad">
<table>
 <td>Version:</td><td> <?php echo $verze; ?></td></tr>
 <td>Author:</td><td> Unreal][</td></tr>
 <td>Licence:</td><td> GNU/GPL </td></tr>
 <td>Modification:</td><td> &nbsp;--- </td></tr>
</table></div></div>

<div class="sizer"></div>

<div class="info">
<a class="title"><strong>DEU Files</strong></a>
<div class="pad">
<table>
<?php
  if ($dir = @opendir(".")) {
    while (($file = readdir($dir)) !== false)
     if (preg_match('/^(global|local)-.*.txt$/',$file))
      echo " <tr><td>".$file."</td><td>&nbsp; - poslední změna: ".date("d.m.Y h:i:s", (filemtime($file)))."</td></tr>\n";
  closedir($dir);
  }
?>
</table></div></div>

<div class="sizer"></div>

<div class="info">
<a class="title"><strong>Server list info</strong></a>
<div class="pad">
<?php

  $file = "servers.list";
  $fp = Fopen($file, "r");
  $dat = Fread($fp, filesize($file));
  $data = explode("\n", $dat);
  $soucet = (count($data))-2;

  echo "soubor servers.list - poslední změna: ".date("d.m.Y h:i:s", (filemtime("servers.list")))."<br>\n";
  echo "soubor servers.list - obsahuje ".($soucet+1)." serverů\n";

  echo "</div></div><div class=\"info\">";
  echo "<a class=\"title\"><strong>servers.list</strong></a>\n<div class=\"pad\">\n";

   for ($j=0; $j<=$soucet; $j++) {
        echo $data[$j]."<br>\n";
   }

?>
</div></div>

<div class="sizer"></div>

<div class="info">
<a class="title"><strong>Icons</strong></a>
<div style="border: 1px solid silver;">
<a class="title">.</a>
<?php
  $path = "ikony";
  $adresar = Dir("$path");
  while ($polozka=$adresar->Read()) {
  $info = substr($polozka, 0, (strpos($polozka, ".")));
     if (eregi(".png", $polozka)) {
       echo "<div class=\"icon\" style=\"height: 58px;_height: 63px;\"><img src=\"".$path."/".$polozka."\" alt=\"".substr($polozka,0,-4)."\" title=\"".substr($polozka,0,-4)."\" width=\"32\"><br>".$info."</div>";
     }
  }
  $adresar->Close();

  $patha = "ikony";
  $adresara = Dir("$patha");
  while ($polozkaa=$adresara->Read()) {
     if ((((is_dir($patha."/".$polozkaa)) and ($polozkaa!=".")) and ($polozkaa!="..")) and ($polozkaa!=".svn")) {
       echo "<div class=\"sizer\"></div>\n<a class=\"nomargin title\">".$polozkaa."/*</a>\n";
       $adresar2 = Dir($patha."/".$polozkaa);
       while ($polozka2=$adresar2->Read()) {
         $info2 = substr($polozka2, 0, (strpos($polozka2, ".")));
            if (eregi(".png", $polozka2)) {
              echo "<div class=\"icon\" style=\"height: 58px;_height: 63px;\"><img src=\"".$patha."/".$polozkaa."/".$polozka2."\" alt=\"".$polozkaa."/".substr($polozka2,0,-4)."\" title=\"".$polozkaa."/".substr($polozka2,0,-4)."\" width=\"32\"><br>".$info2."</div>";
            }
       }
     }
  }
  $adresara->Close();
  $adresar2->Close();
?>
<div class="sizer"></div></div></div></div>

<div id="copy">czf4bfu v<?php echo $verze; ?> - made <a href="http://www.jklir.net">Unreal][</a>&nbsp;&nbsp;&nbsp;</div>

</body>
</html>

Powered by WebSVN 2.2.1