Файл: DarkAge/files/monstrs.php
Строк: 41
<?php
$mobs=opendir("data/monstrs");
$catacombs=opendir("data/monstrs/catacombs");
$darktemplate=opendir("data/monstrs/darktemplate");
$dionhills=opendir("data/monstrs/dionhills");
$dragonslake=opendir("data/monstrs/dragonslake");
$eastwood=opendir("data/monstrs/eastwood");
$gorgonhills=opendir("data/monstrs/gorgonhills");
$griffonsrock=opendir("data/monstrs/griffonsrock");
$ShadowWood=opendir("data/monstrs/ShadowWood");
$tren=opendir("data/monstrs/tren");
$woidfields=opendir("data/monstrs/woidfields");
$all = $mobs+$catacombs+$darktemplate+$dionhills+$dragonslake+$eastwood+$gorgonhills+$griffonsrock+$ShadowWood+$tren+$woidfields;
while(($k=readdir($mobs))!==false){
if ($k=='.'||$k=='..'||$k=='.htaccess'||$k=='index.php') continue; $all++;} closedir($mobs);
echo'Монстров: '.$all.'<br/>';
?>