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/acrit.cleanmaster/steps/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/acrit.cleanmaster/steps/step33.php
<?
use \Bitrix\Main\Loader;
use \Acrit\Cleanmaster\DiagInterface;

$step33 = new \Acrit\Cleanmaster\Steps\Step33([]);
/** @var $isDemo int */

$GLOBALS['TAB_CLEANMASTER_TITLE'] = GetMessage("CLEANMASTER_ACTION_33");
?>

<h2><?=GetMessage("CLEANMASTER_ACTION_33")?></h2>
<p><?=GetMessage('CLEANMASTER_ACTION_33_DESCRIPTION')?></p>
<form>
	<?
	$showSelects = static function ($name, $type = 'MONTH') use ($step33) {
		if ($type == 'MONTH') {
			$v  = [
				'' => GetMessage("CLEANMASTER_ACTION_33_SELECT"),
				'3m' => GetMessage("CLEANMASTER_ACTION_33_slider3m"),
				'6m' => GetMessage("CLEANMASTER_ACTION_33_slider6m"),
				'12m' => GetMessage("CLEANMASTER_ACTION_33_slider12m"),
				'18m' => GetMessage("CLEANMASTER_ACTION_33_slider18m"),
			];
		} else if ($type == 'DAYS') {
			$v  = [
				'' => GetMessage("CLEANMASTER_ACTION_33_SELECT"),
				'7d' => GetMessage("CLEANMASTER_ACTION_33_slider7d"),
				'15d' => GetMessage("CLEANMASTER_ACTION_33_slider15d"),
				'30d' => GetMessage("CLEANMASTER_ACTION_33_slider30d"),
			];
		}
		?>
		<input placeholder="<?=FORMAT_DATETIME?>" type="text" name="<?=htmlspecialcharsbx($name)?>">
		<select class="periodChange" data-for_name="<?=htmlspecialcharsbx($name)?>">
			<?
			foreach ($v as $vv => $vn) {
				if (!empty($vv)) {
					$vv = $step33->getDateFromStrInterval($vv);
				}
				?><option value="<?=$vv?>"><?=$vn?></option><?
			}
			?>
		</select>
		<?
	};

	if (Loader::includeModule('crm')) {
		?>
		<?$blockName = 'b_crm_act'?>
		<p>
			<input type="checkbox" name="stepParams[<?=$blockName?>][active]" value="Y" id="<?=$blockName?>_active">
			<label for="<?=$blockName?>_active"><?=GetMessage('CLEANMASTER_ACTION_33.' . $blockName)?></label>: <?=$showSelects('stepParams['.$blockName.'][datetime]')?>
		</p>

		<?$blockName = 'b_crm_event'?>
		<p>
			<input type="checkbox" name="stepParams[<?=$blockName?>][active]" value="Y" id="<?=$blockName?>_active">
			<label for="<?=$blockName?>_active"><?=GetMessage("CLEANMASTER_ACTION_33." . $blockName)?></label>: <?=$showSelects('stepParams['.$blockName.'][datetime]')?>
		</p>
	<?} else {?>
		<p><?=GetMessage('CLEANMASTER_ACTION_33.more_settings')?> crm</p>
	<?}?>

	<?
	if (Loader::includeModule('mail')) {?>
		<?$blockName = 'b_mail_message'?>
		<p>
			<input type="checkbox" name="stepParams[<?=$blockName?>][active]" value="Y" id="<?=$blockName?>_active">
			<label for="<?=$blockName?>_active"><?=GetMessage("CLEANMASTER_ACTION_33." . $blockName)?></label>: <?=$showSelects('stepParams['.$blockName.'][datetime]')?>
		</p>
	<?} else {?>
		<p><?=GetMessage('CLEANMASTER_ACTION_33.more_settings')?> email</p>
	<?}?>

	<?
	if (Loader::includeModule('recyclebin')) {
		?>
		<?$blockName = 'b_recyclebin'?>
		<p>
			<input type="checkbox" name="stepParams[<?=$blockName?>][active]" value="Y" id="<?=$blockName?>_active">
			<label for="<?=$blockName?>_active"><?=GetMessage("CLEANMASTER_ACTION_33." . $blockName)?></label>: <?=$showSelects('stepParams['.$blockName.'][datetime]', 'DAYS')?>
		</p>
		<?=DiagInterface::showAdminNote( GetMessage("CLEANMASTER_ACTION_33.".$blockName."_more") )?>
	<?} else {?>
		<p><?=GetMessage('CLEANMASTER_ACTION_33.more_settings')?> recyclebin</p>
	<?}?>

	<?
	if (Loader::includeModule('im')) {
		?>
		<?$blockName = 'b_im_message'?>
		<p>
			<input type="checkbox" name="stepParams[<?=$blockName?>][active]" value="Y" id="<?=$blockName?>_active">
			<label for="<?=$blockName?>_active"><?=GetMessage("CLEANMASTER_ACTION_33." . $blockName)?></label>: <?=$showSelects('stepParams['.$blockName.'][datetime]')?>
		</p>
	<?} else {?>
		<p><?=GetMessage('CLEANMASTER_ACTION_33.more_settings')?> im</p>
	<?}?>


	<?if ($isDemo == 1) {?>
		<a href="javascript:void(0)" class="action-process adm-btn adm-btn-save"><?=GetMessage('CLEANMASTER_ACTION_CLEANSTART')?></a>
		<?include __DIR__ . '/save_profile_btn.php';?>
	<?} else {?>
		<?=GetMessage('CLEANMASTER_ACTION_DEMO')?>
	<?}?>
</form>
<script>
$(function (){
	$(".clean-action-wrapper .periodChange").on('change', function(){
		const $this = $(this),
			name_ipt = $this.data('for_name').toString().replaceAll('[', '\\[').replaceAll(']', '\\]');
		$(".clean-action-wrapper :input[name=" + name_ipt + "]").val( $this.val() );
	});
});
</script>


Youez - 2016 - github.com/yon3zu
LinuXploit