Размер файла: 1.6Kb
<?php
// mod by Golem http://veplog.ru
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
echo '<div class=tp>Загруз-центр</div>';
echo '<div class=tpanel><a href="search.php?'.SID.'">Поиск</a>|<a href="top.php?'.SID.'">Топ</a>|<a href="new.php?'.SID.'">Новые</a><br>';
echo '</div><div class="forum">';
$downdir_array = array();
$dir = opendir (".");
while ($file = readdir ($dir)) {
if (is_dir($file)) {
if($file=="."||$file=="..") continue;
$downdir_array[]=$file;
}}
closedir ($dir);
sort($downdir_array);
$total = count($downdir_array);
for ($i = 0; $i < $total; $i++){
if(file_exists("$downdir_array[$i]/name.dat")){
$down_name=file_get_contents("$downdir_array[$i]/name.dat");
}else{$down_name=$downdir_array[$i];}
echo '<div class="r0"><img src="../images/img/dir.gif" alt="" width="14" height="14"> <a href="down.php?did='.$downdir_array[$i].'&'.SID.'">'.$down_name.'</a> ('.count_dir($downdir_array[$i]).')</div>';
}
echo '</div>';
echo '<div class="panel">Всего категорий: '.(int)$total.'</div>';
echo '<div class="btm">[<a href="../index.php?'.SID.'">На главную</a>]</div>';
include_once"../themes/$config_themes/foot.php";
?>