ПОМОГИТЕ!
вставил в func.php код
////////////////////
// Счётчик файлов //
////////////////////
function dcount_simba(){
global $rights, $realtime, $home;
global $down_setting;
$cachetime = $realtime-$down_setting['cachetime']*3600; // Время кэширования
if(is_file('download/cache/all.dat') && filemtime('download/cache/all.dat') > $cachetime){
$out = file_get_contents('download/cache/all.dat');
}else{
$countf = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `type` != 1 AND `status` = 1"), 0);
$old = $realtime - (3 * 24 * 3600);
$countnf = mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `time` > '".$old."' AND `status` = 1 AND `type` != 1");
$countnf = mysql_result($countnf, 0);
if($countnf != 0){
$out = $countf.'/ <span class="red"><a href="' . $home . '/download/new.html">+'.$countnf.'</a></span>';
}else{
$out = $countf;
}
if($rights == 4 || $rights >= 9){
$countf = mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `type` != 1 AND `status` = 0");
$countf = mysql_result($countf, 0);
if($countf > 0){
$out = $out.'/ <a href="' . $home . '/download/admin.php?act=mod"><font color="#ff0000">Мод: '.$countf.'</font></a>';
}
}
$cache_file = fopen('download/cache/all.dat', "w");
fwrite($cache_file, $out);
fclose($cache_file);
}
return $out;
}
на главной всё прекрасно работает... Показывает и считает... Только при нажатии на сам загруз пишет
Удаленный сервер или файл не найден...
в чем может быть проблема?
http://kiket.ru/download/