Your IP : 3.12.76.129


Current Path : /var/www/admin_ftp_12/data/www/httpdocs/bitrix/modules/main/lib/authentication/
Upload File :
Current File : /var/www/admin_ftp_12/data/www/httpdocs/bitrix/modules/main/lib/authentication/application.php

<?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;
	}
}