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/bitrix.eshop/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/bitrix.eshop/admin/eshop_templates_rename.php
<?
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/bitrix.eshop/include.php");

IncludeModuleLangFile(__FILE__);

$arThemes = array(
	"_blue",
	"_green",
	"_yellow",
	"_gray",
	"_wood",
	"_red",
);
foreach($arThemes as $theme)
{
	if(file_exists($_SERVER['DOCUMENT_ROOT']."/bitrix/templates/eshop".$theme."/"))
	{
		CopyDirFiles(
			$_SERVER['DOCUMENT_ROOT']."/bitrix/templates/eshop".$theme."/components/bitrix/catalog/.default/",
			$_SERVER['DOCUMENT_ROOT']."/bitrix/templates/eshop".$theme."/components/bitrix/catalog/.default_old/",
			$rewrite = true,
			$recursive = true,
			$delete_after_copy = true
		);
	}
}

CAdminNotify::DeleteByTag("ESHOP_RENAME");

$APPLICATION->SetTitle(GetMessage("ESHOP_TITLE"));

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

<?=GetMessage("ESHOP_RENAME_SUCCESS")?>
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit