wallpapers.phps

<html>
<head>
<title>Wallpapers for my Nokia 6280 (240x320)</title>
</head>
<body>
Well, dooood?! --> Wallpapers for my Nokia 6280 (240x320)<br><br>
<?
$files = 0;
$size = 0;
require('/var/www/roundbytes.php');
$fd = opendir('.');
while(($file = readdir($fd)) !== false)
{
  if($file == '.' || $file == '..' || !stristr($file,'.jpg')) { continue; }
  echo '<img src="'.$file.'" alt="'.$file.'">'."\n";
  $files++;
  $size += filesize($file);
}
echo "<br>\nTotal wallpapers: ".$files." (".roundbytes($size).")<br>\n";
?>
</body>
</html>