<?php
$duuu=opendir("data/clan");
$all = 0;
while(($k=readdir($duuu))!==false){
if ($k=='.'||$k=='..'||$k=='name'||$k=='chat'||$k=='bank'||$k=='site'||$k=='sklad'||$k=='zahvat'||$k=='tmp'||$k=='clanholl'||$k=='desk'||$k=='sklad'||$k=='logs') continue; $all++;} closedir($duuu);
echo'Кланов: '.$all.'<br/>';
?>