Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/components/bitrix/mobileapp.auth/actions/
Upload File :
Current File : /var/www/homesaver/www/bitrix/components/bitrix/mobileapp.auth/actions/logout.php

<?if(!Defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

$data = Array(
	"logout_status" => "success",
);

if ($_REQUEST["uuid"])
{
	if(CModule::IncludeModule("pull"))
	{
		$dbres = CPullPush::GetList(array(), array("=DEVICE_ID" => $_REQUEST["uuid"]));
		while($arToken = $dbres->Fetch())
		{
			CPullPush::Delete($arToken["ID"]);
			$data["token_status"] = "deleted";
		}
	}
}
$USER->Logout();
?>