Your IP : 3.12.76.129
<?php
/**
* Bitrix Framework
* @package bitrix
* @subpackage main
* @copyright 2001-2014 Bitrix
*/
namespace Bitrix\Main\Authentication;
use Bitrix\Main;
class Application
{
protected $validUrls = array();
public function __construct()
{
}
/**
* Checks the valid scope for the applicaton.
*
* @return bool
*/
public function checkScope()
{
/** @var Main\HttpRequest $request */
$request = Main\Context::getCurrent()->getRequest();
$realPath = $request->getScriptFile();
foreach($this->validUrls as $url)
{
if(mb_strpos($realPath, $url) === 0)
{
return true;
}
}
return false;
}
}