/** * @staticvar bool $bOne * @return bool */ public static function Handle() { static $bOne = null; if (null === $bOne) { $bOne = \class_exists('MailSo\\Version'); if ($bOne) { \RainLoop\Api::SetupDefaultMailSoConfig(); $bOne = \RainLoop\Api::RunResult(); } } return $bOne; }
/** * @return bool */ public static function Handle() { static $bOne = null; if ($bOne) { return true; } if (!\class_exists('MailSo\\Version')) { return false; } \RainLoop\Api::SetupDefaultMailSoConfig(); $bOne = true; return true; }
/** * @return void */ private function __construct() { $this->oHttp = \MailSo\Base\Http::SingletonInstance(); $this->oActions = \RainLoop\Api::Actions(); $this->oServiceActions = new \RainLoop\ServiceActions($this->oHttp, $this->oActions); if ($this->oActions->Config()->Get('debug', 'enable', false)) { \error_reporting(E_ALL); \ini_set('display_errors', 1); } \RainLoop\Api::SetupDefaultMailSoConfig(); $sServer = \trim($this->oActions->Config()->Get('security', 'custom_server_signature', '')); if (0 < \strlen($sServer)) { @\header('Server: ' . $sServer, true); } if ($this->oActions->Config()->Get('labs', 'force_https', false) && !$this->oHttp->IsSecure()) { @\header('Location: https://' . $this->oHttp->GetHost(false, false) . $this->oHttp->GetUrl(), true); exit; } }