예제 #1
0
 /**
  * @param string $sSettingsPath
  *
  * @return api_Settings
  */
 public function __construct($sSettingsPath)
 {
     $this->aMap = array();
     $this->aLowerMap = array();
     $this->aContainer = array();
     $this->sPath = $sSettingsPath;
     $this->initDefaultValues();
     if (!$this->LoadFromXml($this->sPath . api_Settings::XML_FILE_NAME)) {
         throw new CApiBaseException(Errs::Main_SettingLoadError);
     }
     if (!api_Utils::HasSslSupport()) {
         $this->SetConf('WebMail/IncomingMailUseSSL', false);
         $this->SetConf('WebMail/OutgoingMailUseSSL', false);
     }
     if (file_exists(CApi::RootPath() . 'common/lite.php')) {
         include_once CApi::RootPath() . 'common/lite.php';
     }
     $this->SetConf('WebMail/IncomingMailProtocol', EMailProtocol::IMAP4);
 }
예제 #2
0
 /**
  * @return bool
  */
 public function HasSslSupport()
 {
     return api_Utils::HasSslSupport();
 }