1, 'theme_screen' => 1, 'top' => 25, 'icon_java' => 1, 'video_screen' => 1, 'screen_resize' => 1 ); if ($set_down['video_screen'] && !extension_loaded('ffmpeg')) $set_down['video_screen'] = 0; /* ----------------------------------------------------------------- Ограничиваем доступ к Загрузкам ----------------------------------------------------------------- */ $error = ''; if (!$set['mod_down'] && $rights < 7) $error = 'Загрузки закрыты'; elseif ($set['mod_down'] == 1 && !$user_id) $error = 'Доступ к загрузкам открыт только авторизованным посетителям'; if ($error) { require('../incfiles/head.php'); echo functions::display_error($error); require('../incfiles/end.php'); exit; } $old = time() - 259200; $realtime = time() + $system_set['timeshift']*3600; /* ----------------------------------------------------------------- Список разрешений для выгрузки ----------------------------------------------------------------- */ $defaultExt = array('rar', 'zip', 'pdf', 'doc', 'docx', 'nth', 'txt', 'tar', 'gz', 'jpg', 'jpeg', 'gif', 'png', 'bmp', '3gp', 'mp4', 'mp3', 'wma', 'mpg', 'sis', 'thm', 'jad', 'jar', 'cab', 'sis', 'sisx', 'exe', 'msi', 'apk', 'djvu', 'fb2'); /* ----------------------------------------------------------------- Переключаем режимы работы ----------------------------------------------------------------- */ $array = array ( 'add_cat' => 'includes/category', 'edit_cat' => 'includes/category', 'del_cat' => 'includes/category', 'mod_files' => 'includes/outputFiles', 'new_files' => 'includes/outputFiles', 'top_files' => 'includes/outputFiles', 'user_files' => 'includes/outputFiles', 'comms' => 'includes/comments', 'comms_all' => 'includes/comments', 'edit_file' => 'includes/fileControl', 'del_file' => 'includes/fileControl', 'edit_about' => 'includes/fileControl', 'edit_screen' => 'includes/fileControl', 'file_more' => 'includes/fileControl', 'jad_file' => 'includes/fileControl', 'mp3tags' => 'includes/fileControl', 'load_file' => 'includes/fileControl', 'open_zip' => 'includes/fileControl', 'txt_in_jar' => 'includes/fileControl', 'txt_in_zip' => 'includes/fileControl', 'view' => 'includes/fileControl', 'transfer_file' => 'includes/fileControl', 'down_file' => 'includes/upload', 'import' => 'includes/upload', 'scan_about' => 'includes', 'scan_dir' => 'includes', 'search' => 'includes', 'top_users' => 'includes', 'recount' => 'includes', 'bookmark' => 'includes' ); $path = !empty($array[$act]) ? $array[$act] . '/' : ''; if (array_key_exists($act, $array) && file_exists($path . $act . '.php')) { require($path . $act . '.php'); } else { require('../incfiles/head.php'); if (!$set['mod_down']) echo '
'; /* ----------------------------------------------------------------- Выводим список папок и файлов ----------------------------------------------------------------- */ if ($id) { $cat = mysql_query("SELECT * FROM `down_files` WHERE `type` = 1 AND `id` = '$id' LIMIT 1"); $res_down_cat = mysql_fetch_assoc($cat); if (mysql_num_rows($cat) == 0 || !is_dir($res_down_cat['dir'] . '/' . $res_down_cat['name'])) { // Если неправильно выбран каталог, выводим ошибку echo functions::display_error('Каталог не существует
' .
'' . functions::checkout($res_down['rus_name']) . ' (' . $res_down['total'] . ')';
if ($res_down['field'])
echo '';
echo ($id ? 'В загрузки' :
'Обзор комментариев
Мои закладки') . '