芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/modules/CoreExtender/Module.php
subscribeEvent('Core::SetAuthDataAndGetAuthToken::after', array($this, 'onAfterAuthenticate'), 10); } /** * @return Module */ public static function getInstance() { return parent::getInstance(); } /** * @return Module */ public static function Decorator() { return parent::Decorator(); } /** * @return Settings */ public function getModuleSettings() { return $this->oModuleSettings; } public function onAfterAuthenticate(&$aArgs, &$mResult) { if ($mResult && is_array($mResult) && isset($mResult['AuthToken'])) { $sXClientHeader = (string) \MailSo\Base\Http::SingletonInstance()->GetHeader('X-Client'); if (strtolower($sXClientHeader) !== 'webclient') { $mResult['AllowAccess'] = 1; } } } }