Просмотр файла tennis/komanda/chm/gal/final.php

Размер файла: 733B
<?
$filename = "url/$i.dat";
$fp = @fopen ($filename, "r");
if($fp) { $counter = fgets($fp, 10);
fclose($fp); 
} else { $counter = 0;
 }
 $counter++;
 $fp = @fopen($filename, "w");
 if($fp) 
{ $w = fputs($fp, $counter); fclose($fp); }

$f = "save/$i.dat";
$fps = @fopen ($f, "r");
if($fps) { $coun = fgets($fps, 10);
fclose($fps); 
} else { $coun = 0;
 }
  $fps = @fopen($f, "w");
 if($fps) 
{ $w = fputs($fps, $coun); fclose($fps); }

include "config.php";
include "unicode.lib.php";
include 'header.php'; 

$fsize = filesize("$papka/$file");
$kb=ceil($fsize/1024);


print utf_encode(" <img src=\"$papka/$file\" alt=\" $alt \"/>
<br/>
<a href=\"index.php\">&#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>
</p>
</BODY>
</HTML>
 ");

?>