Данный файл не существует

"; } else { if (mysql_num_rows ($result) == 0) { echo ""; } else { $row = mysql_fetch_object($result); $downloads_file = $row->downloads_file; $download_file = $row->download_file; $category_file = $row->category_file; $downloads_file++; $query = "UPDATE downloads SET downloads_file=$downloads_file WHERE id_download=".$_GET['id_download'].""; mysql_query($query); header("Content-Type: ".filetype("file.rar")); header("Content-Length: ".filesize("file.rar")); header("Content-Disposition: attachment; filename=file.rar"); header("Content-type: application/force-download"); header("Content-type: application/octet-stream"); echo file_get_contents ("file.rar"); exit; } } } else { echo "ХАКЕР"; } } else { if((isset($_GET['cat_id'])) AND ($_GET['cat_id'] != "")) { if((is_numeric($_GET['cat_id']))) { //Отображаем файлы данной категории $query_download="SELECT * FROM downloads WHERE cat_id=".$_GET['cat_id']." AND ".$_GET['cat_id']."=".$_GET['cat_id'].""; $result_download = mysql_query ($query_download); if (mysql_errno()!= 0) { echo ""; } else { if (mysql_num_rows ($result_download) == 0) { echo ""; } else { ?>
".stripslashes($row_download->download_file_name).""; ?>
description_file); $comment = htmlspecialchars($comment, ENT_QUOTES); $comment = nl2br($comment); $comment = str_replace("[u]","",$comment); $comment = str_replace("[U]","",$comment); $comment = str_replace("[i]","",$comment); $comment = str_replace("[I]","",$comment); $comment = str_replace("[b]","",$comment); $comment = str_replace("[B]","",$comment); $comment = str_replace("[sub]","",$comment); $comment = str_replace("[SUB]","",$comment); $comment = str_replace("[sup]","",$comment); $comment = str_replace("[SUP]","",$comment); $comment = str_replace("[/u]","",$comment); $comment = str_replace("[/U]","",$comment); $comment = str_replace("[/i]","",$comment); $comment = str_replace("[/I]","",$comment); $comment = str_replace("[/b]","",$comment); $comment = str_replace("[/B]","",$comment); $comment = str_replace("[/SUB]","",$comment); $comment = str_replace("[/sub]","",$comment); $comment = str_replace("[/SUP]","",$comment); $comment = str_replace("[/sup]","",$comment); $comment = eregi_replace("(.*)\\[url\\](.*)\\[/url\\](.*)","\\1\\2\\3",$comment); $comment = str_replace("\n"," ",$comment); $comment = str_replace("\r"," ",$comment); $comment = preg_replace("#\[color=([a-z]+)\](.*?)\[/color\]#is", '$2', $comment); $comment = preg_replace("#\[size=([0-9]+)\](.*?)\[/size\]#is", '$2', $comment); $comment = preg_replace_callback("#\[url=((?:http|ftp|https)://)?([^\]]+)\](.*?)\[/url\]#is", 'func', $comment); echo "".$comment.""; ?>
Сайт программы url_programm), ENT_QUOTES)."' class='url_programm'>".htmlspecialchars(stripslashes($row_download->url_programm), ENT_QUOTES).""; ?> Версия version_file), ENT_QUOTES).""; ?>  
Автор(добавивший): author), ENT_QUOTES).""; ?> Скачиваний: downloads_file).""; ?> id_download)."'>"; echo "Загрузить"; $file = $row_download->download_file; $category = $row_download->category_file; echo ""; $size = filesize("files/$category/$file"); if($size>1048576) { $size = round($size/1024/1024, 2); echo "(".$size." Мб)"; } else { $size = round($size/1024, 0); echo "(".$size." Кб)"; } ?>

 » ".htmlspecialchars(stripslashes($row->cat), ENT_QUOTES).""; $id_cat = $row->id_cat; $query_count = "SELECT * FROM downloads WHERE cat_id=$id_cat"; $result_count = mysql_query ($query_count) or die("Неправильный запрос : " . mysql_error()); echo " (".mysql_num_rows($result_count).")"; echo "     "; if ((isset($_SESSION['login'])) AND ($_SESSION['login'] != "")) { $query="SELECT * FROM users WHERE login='$_SESSION[login]' AND admin_status='1'"; $result=mysql_query($query); if (mysql_num_rows ($result) == 0) {} else { echo "Добавить файл

"; } } else {} } } } close_db(); ?>