Пример #1
0
      trigger_error('can not make cache directory for mediabird plugin', E_USER_WARNING);
   }
}
MediabirdConfig :: $cache_folder = $cache_folder2;

if (!isset ($environment) and isset ($this->_environment)) {
   $environment = $this->_environment;
}

// mail
if ( isset($environment) ) {
   $server_item = $environment->getServerItem();
   if ( isset($server_item) ) {
      $default_sender_address = $server_item->getDefaultSenderAddress();
      if ( !empty($default_sender_address) ) {
         MediabirdConfig :: $no_reply_address = $default_sender_address;
         MediabirdConfig :: $webmaster_address = $default_sender_address;
      }
   }
}
if ( isset($environment) ) {
   $c_send_email = $environment->getConfiguration('c_send_email');
   if (isset ($c_send_email)) {
      if ($c_send_email) {
         MediabirdConfig :: $disable_mail = false;
      } else {
         MediabirdConfig :: $disable_mail = true;
      }
   } else {
      MediabirdConfig :: $disable_mail = false;
   }