本文整理匯總了PHP中OA_Permission::checkSessionToken方法的典型用法代碼示例。如果您正苦於以下問題:PHP OA_Permission::checkSessionToken方法的具體用法?PHP OA_Permission::checkSessionToken怎麽用?PHP OA_Permission::checkSessionToken使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OA_Permission
的用法示例。
在下文中一共展示了OA_Permission::checkSessionToken方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: phpAds_registerGlobal
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/lib/OA/Dal.php';
//require_once MAX_PATH . '/lib/max/deliverycache/cache-'.$conf['delivery']['cache'].'.inc.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-storage.inc.php';
require_once MAX_PATH . '/www/admin/lib-zones.inc.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
require_once MAX_PATH . '/lib/OA/Maintenance/Priority.php';
require_once OX_PATH . '/lib/pear/DB/DataObject.php';
// Register input variables
phpAds_registerGlobal('returnurl', 'agencyid');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
// CVE-2013-5954 - see OA_Permission::checkSessionToken() method for details
OA_Permission::checkSessionToken();
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
if (!empty($agencyid)) {
$doAgency = OA_Dal::factoryDO('agency');
$doAgency->agencyid = $agencyid;
$doAgency->get($agencyid);
$doAgency->delete();
}
// Run the Maintenance Priority Engine process
OA_Maintenance_Priority::scheduleRun();
// Rebuild cache
// phpAds_cacheDelete();
if (!isset($returnurl) || $returnurl == '') {
$returnurl = 'advertiser-index.php';