1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php require("code.php"); if($code != $xcode) { exit; } $id = strip_dir_illegals($id); $i = 0; $dir = $mod_root."/banners"; $handle=@opendir($dir); while($file = readdir($handle)) { if(!is_dir($file)) { if(($file != ".") && ($file != "..") && ($file != "index.html")) { require($dir."/".$file); $banner_id = str_replace(".php","",$file); echo "<a href=\"$mod_url&do=click&id=$banner_id\"><img src=\"$banner_img\" border=\"0\"></a><p>"; $i++; } } } echo <<<HTML <center><small>There are $i banners.</small></center><p> HTML; ?>
|