Файл: vsime.com/files/inc/act_index.php
Строк: 23
<?
$unique_code = "unique_code";
if (isset($_GET['file'])) {
if (mysqli_num_rows(mysqli_query($dbi, "SELECT * FROM `files` WHERE `id` = '".intval($_GET['file'])."' AND `type` = 'file'"))==0) {
$title .= ' - '.$ank['nick']; // Заголовок страницы
ex_head();
show_errors("Файл не найден");
ex_foot();
}
$file = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `files` WHERE `id` = '".intval($_GET['file'])."' AND `type` = 'file'"));
$file['path'] = H."system/files/files/users/user$file[id_user]/dir$file[id_dir]/".$file['id'].".dat";
$file['size'] = filesize($file['path']);
//$no_hack = 1;
$dir = dir_files_info($file['id_dir']);
$ank = profile($file['id_user']); // гг
$title .= ' - '.$ank['nick']; // Заголовок страницы
ex_head();
dir_files_access($dir);
include('inc/file_form.php');
}
$no_hack = 1;
$dir = dir_files_info(intval(@$_GET['dir']));
$ank = profile($dir['id_user']);
$title .= ' - '.$ank['nick']; // Заголовок страницы
ex_head();
dir_files_access($dir);
include('inc/dir_form.php');
?>