%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.119.248.44
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/asd.iblock/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/asd.iblock/options.php
<?php
/** @global CMain $APPLICATION */
/** @global string $mid */
use Bitrix\Main;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Loader;

if(!$USER->IsAdmin()) {
	return;
}

if (!Loader::includeModule('asd.iblock')) {
	return;
}

Loc::loadMessages(__FILE__);

$currentUrl = $APPLICATION->GetCurPage().'?mid='.urlencode($mid).'&amp;lang='.LANGUAGE_ID;

$list = array(
	'keep_old_sections_for_copy',
	'multiple_copy'
);

if(
	$_SERVER["REQUEST_METHOD"] == "POST"
	&& check_bitrix_sessid()
) {
	if (
		(isset ($_POST['update']) && $_POST['update'] === 'Y')
	) {
		foreach ($list as $name)
		{
			$value = '';
			if (isset($_POST[$name]))
			{
				$value = $_POST[$name];
			}
			if ($value === 'Y' || $value === 'N')
			{
				Main\Config\Option::set('asd.iblock', $name, $value, '');
			}
		}
		LocalRedirect($currentUrl);
	}
}

$options = array();
foreach ($list as $name) {
	$options[$name] = (string)Main\Config\Option::get('asd.iblock', $name);
}

$tabList = array(
	array(
		'DIV' => 'edit1',
		'TAB' => Loc::getMessage('ASD_IBLOCK_MAIN_TAB_SET'),
		'ICON' => 'ib_settings',
		'TITLE' => Loc::getMessage('ASD_IBLOCK_MAIN_TAB_TITLE_SET')
	)
);

$tabControl = new CAdminTabControl("asd_iblock_options", $tabList);

$tabControl->Begin();
?><form method="POST" action="<?=$currentUrl; ?>"><?
$tabControl->BeginNextTab();
?><tr class="heading"><td colspan="2"><?=Loc::getMessage('ASD_IBLOCK_OPERATION_SECTION_TITLE'); ?></td></tr>
<tr>
	<td style="width: 40%;"><?=Loc::getMessage('ASD_IBLOCK_OPTION_MULTIPLE_COPY');?></td>
	<td>
		<input type="hidden" name="multiple_copy" value="N">
		<input type="checkbox" name="multiple_copy" value="Y" <?=($options['multiple_copy'] == 'Y' ? ' checked' : ''); ?>>
	</td></tr>
<tr>
	<td style="width: 40%;"><?=Loc::getMessage('ASD_IBLOCK_OPTION_KEEP_OLD_SECTIONS_FOR_COPY');?></td>
	<td>
		<input type="hidden" name="keep_old_sections_for_copy" value="N">
		<input type="checkbox" name="keep_old_sections_for_copy" value="Y" <?=($options['keep_old_sections_for_copy'] == 'Y' ? ' checked' : ''); ?>>
	</td></tr><?
$tabControl->Buttons();
?><input type="submit" class="adm-btn-save" name="update" value="<? echo Loc::getMessage('ASD_IBLOCK_OPTIONS_BTN_SAVE'); ?>">
<input type="hidden" name="update" value="Y">
<?=bitrix_sessid_post();?>
</form><?
$tabControl->End();

Youez - 2016 - github.com/yon3zu
LinuXploit