403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/admin/quota.php
<?
/**
 * @global \CUser $USER
 * @global \CMain $APPLICATION
 * @global \CDatabase $DB
 */

require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");

if(!$USER->CanDoOperation('edit_other_settings'))
	$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));

$res = false;
if (isset($_REQUEST["id"]) && trim($_REQUEST["id"]) <> '' && check_bitrix_sessid())
{
	$quota = new CDiskQuota();
	if (strtolower($_REQUEST["id"]) == "db")
	{
		CDiskQuota::recalculateDb();
		$res = CDiskQuota::SetDBSize();
	}
	else
	{
		$res = $quota->Recount($_REQUEST["id"],  ($_REQUEST["recount"] == "begin"));
	}
}
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_popup_admin.php");

if($res !== false):
?>
<script>
	if (!window.parent.window.result)
		window.parent.window.result = new Array();
	window.parent.window.result['done'] = true;
<?if ($res["status"] == "error"):?>
	window.parent.window.result['stop'] = true;
	window.parent.window.result['error'] = true;
<?else:?>
	window.parent.window.result['<?=CUtil::JSEscape($_REQUEST["name"])?>'] = new Array();
	window.parent.window.result['<?=CUtil::JSEscape($_REQUEST["name"])?>']['size'] = '<?=$res['size']?>';
	window.parent.window.result['<?=CUtil::JSEscape($_REQUEST["name"])?>']['status'] = '<?=mb_substr($res['status'], 0, 1)?>';
	window.parent.window.result['<?=CUtil::JSEscape($_REQUEST["name"])?>']['time'] = '<?=date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG)), $res["time"])?>';

	window.parent.window.result['stop'] = <?=(($res["status"] == "continue") ? "false" : "true");?>;
	window.parent.window.result['error'] = false;

	window.parent.window.onStepDone('<?=CUtil::JSEscape($_REQUEST["name"])?>');
<?endif;?>
</script>
<?
endif;

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_popup_admin.php");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit