} if (!$strError) { IntOptionSet("dump_auto_enable", $dump_auto_set); $dump_auto_enable = $dump_auto_set; } IntOptionSet("dump_delete_old", $_REQUEST['dump_delete_old']); IntOptionSet("dump_old_time", $_REQUEST['dump_old_time']); IntOptionSet("dump_old_cnt", $_REQUEST['dump_old_cnt']); IntOptionSet("dump_old_size", $_REQUEST['dump_old_size']); IntOptionSet("dump_integrity_check", $_REQUEST['dump_integrity_check'] == 'Y'); IntOptionSet("dump_use_compression", $bGzip && $_REQUEST['dump_disable_gzip'] != 'Y'); $dump_archive_size_limit = intval($_REQUEST['dump_archive_size_limit'] * 1024 * 1024); if ($dump_archive_size_limit <= 10240 * 1024) { $dump_archive_size_limit = 100 * 1024 * 1024; } IntOptionSet("dump_archive_size_limit", $dump_archive_size_limit); if ($strError) { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_ERROR"), "DETAILS" => $strError, "TYPE" => "ERROR", "HTML" => true)); } else { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_SUCCESS_SAVED"), "DETAILS" => $strMessage, "TYPE" => "OK", "HTML" => true)); } } } elseif (file_exists(LOCK_FILE)) { if ($t = intval(file_get_contents(LOCK_FILE))) { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_AUTO_LOCK"), "DETAILS" => GetMessage("MAIN_DUMP_AUTO_LOCK_TIME", array('#TIME#' => HumanTime(time() - $t))), "TYPE" => "OK", "HTML" => true)); } else { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_ERROR"), "DETAILS" => GetMessage("MAIN_DUMP_ERR_OPEN_FILE") . ' ' . LOCK_FILE, "TYPE" => "ERROR", "HTML" => true)); } } else { if ($dump_auto_enable) { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage('DUMP_AUTO_INFO_ON'), "TYPE" => "OK", "HTML" => true));
IntOptionSet('dump_base_skip_stat', $_REQUEST['dump_base_skip_stat'] == 'Y'); IntOptionSet('dump_base_skip_search', $_REQUEST['dump_base_skip_search'] == 'Y'); IntOptionSet('dump_base_skip_log', $_REQUEST['dump_base_skip_log'] == 'Y'); IntOptionSet('dump_file_kernel', $_REQUEST['dump_file_kernel'] == 'Y'); IntOptionSet('dump_file_public', $_REQUEST['dump_file_public'] == 'Y'); IntOptionSet('skip_mask', $_REQUEST['skip_mask'] == 'Y'); $arMask = array_unique($_REQUEST['arMask']); foreach ($arMask as $mask) { if (trim($mask)) { $mask = rtrim(str_replace('\\', '/', trim($mask)), '/'); $skip_mask_array[] = $mask; } } COption::SetOptionString("main", "skip_mask_array_auto", serialize($skip_mask_array)); IntOptionSet('dump_max_file_size', intval($_REQUEST['max_file_size'])); IntOptionSet('skip_symlinks', $_REQUEST['skip_symlinks'] == 'Y'); if ($strError) { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_ERROR"), "DETAILS" => $strError, "TYPE" => "ERROR", "HTML" => true)); } else { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_SUCCESS_SAVED"), "DETAILS" => $strMessage, "TYPE" => "OK", "HTML" => true)); } } } elseif (file_exists(LOCK_FILE)) { if ($t = intval(file_get_contents(LOCK_FILE))) { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_AUTO_LOCK"), "DETAILS" => GetMessage("MAIN_DUMP_AUTO_LOCK_TIME", array('#TIME#' => HumanTime(time() - $t))), "TYPE" => "OK", "HTML" => true)); } else { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("MAIN_DUMP_ERROR"), "DETAILS" => GetMessage("MAIN_DUMP_ERR_OPEN_FILE") . ' ' . LOCK_FILE, "TYPE" => "ERROR", "HTML" => true)); } } else { if ($dump_auto_enable) { CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage('DUMP_AUTO_INFO_ON'), "TYPE" => "OK", "HTML" => true));