Ejemplo n.º 1
0
 /**
  * @return void
  */
 protected function __construct()
 {
     $this->oHttp = \MailSo\Base\Http::NewInstance();
     $this->oActions = Actions::NewInstance();
     $this->oActions->SetHttp($this->oHttp);
     $this->oTwilio = $this->oActions->GetTwilio();
     \CApi::Plugin()->SetActions($this->oActions);
     //		\MailSo\Config::$FixIconvByMbstring = false;
     \MailSo\Config::$SystemLogger = \CApi::MailSoLogger();
 }
Ejemplo n.º 2
0
 /**
  * @return void
  */
 protected function __construct()
 {
     $this->oHttp = \MailSo\Base\Http::NewInstance();
     $this->oActions = Actions::NewInstance();
     $this->oActions->SetHttp($this->oHttp);
     $this->oTwilio = $this->oActions->GetTwilio();
     \CApi::Plugin()->SetActions($this->oActions);
     //		\MailSo\Config::$FixIconvByMbstring = false;
     \MailSo\Config::$SystemLogger = \CApi::MailSoLogger();
     \MailSo\Config::$PreferStartTlsIfAutoDetect = !!\CApi::GetConf('labs.prefer-starttls', true);
 }
Ejemplo n.º 3
0
 /**
  * @return bool
  */
 public static function IsFilesPubModule()
 {
     $oHttp = \MailSo\Base\Http::NewInstance();
     return $oHttp->HasQuery('files-pub') && 0 < strlen($oHttp->GetQuery('files-pub'));
 }
Ejemplo n.º 4
0
 /**
  * @param string $sKey
  *
  * @return void
  */
 public static function verifyCacheByKey($sKey)
 {
     if (!empty($sKey)) {
         $oHttp = \MailSo\Base\Http::NewInstance();
         $sIfModifiedSince = $oHttp->GetHeader('If-Modified-Since', '');
         if (!empty($sIfModifiedSince)) {
             $oHttp->StatusHeader(304);
             self::cacheByKey($sKey);
             exit;
         }
     }
 }