View file file/loads/kol.php

File size: 1.16Kb
<?php
function dir_kol($kat_kol)
 {
  $dir_kol = opendir("$kat_kol");

  while($files_kol = readdir($dir_kol))
   {
    if(is_file($kat_kol."/".$files_kol) && $files_kol != "Thumbs.db" && $files_kol != "index.php" && $files_kol != 'kol.php' && $files_kol != 'file.png' && $files_kol != 'folder.png' && $files_kol != 'comm.php' && $files_kol != 'comm' && $files_kol != 'funct.php' && $files_kol != 'about.php' && $files_kol != 'about' && $files_kol != 'scr' && $files_kol != 'pre.php' && $files_kol != 'small' && $files_kol != 'prew.php' && $files_kol != 'cpre.php' && $files_kol != 'ck' && $files_kol != 'constant.php' && $files_kol != 'd.php' && $files_kol != 'ds' && $files_kol != 'pr.php' && $files_kol != 'cpre.php' && $files_kol != '.htaccess')
     {
      $kol++;
     }
      elseif(is_dir($kat_kol."/".$files_kol) && $files_kol != "." && $files_kol != ".." && $files_kol != "op")
     {
      $es = dir_kol($kat_kol."/".$files_kol);
      $kol = $kol + $es;
     }
   }
  closedir($dir_kol);

  if(empty($kol))
   {
    $kol = 0;
   }
    else
   {
    $kol = $kol;
   }

  return"$kol";
 }

echo "[";
echo dir_kol("file/loads/");
echo "]";
?>