Minor bug fixes

This commit is contained in:
dignajar 2016-02-26 12:32:18 -03:00
parent e7208d8e9b
commit ee91c104fc
5 changed files with 9 additions and 3 deletions

View File

@ -5,10 +5,16 @@ class Email {
// Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
public static function send($args)
{
$now = time();
$headers = array();
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Content-type: text/html; charset=utf-8';
$headers[] = 'From: '.$args['from'];
$headers[] = 'Reply-To: '.$args['from'];
$headers[] = 'Return-Path: '.$args['from'];
$headers[] = 'message-id: <'.$now.'webmaster@'.DOMAIN.'>';
$headers[] = 'X-Mailer: PHP/'.phpversion();
$message = '<html>

View File

@ -5,7 +5,7 @@ class pluginMaintenanceMode extends Plugin {
public function init()
{
$this->dbFields = array(
'enable'=>true,
'enable'=>false,
'message'=>'Temporarily down for maintenance.'
);
}
@ -33,4 +33,4 @@ class pluginMaintenanceMode extends Plugin {
exit( $this->getDbField('message') );
}
}
}
}

View File

@ -246,7 +246,7 @@ function install($adminPassword, $email, $timezone)
$stdOut = array();
if( date_default_timezone_set($timezone) ) {
if( !date_default_timezone_set($timezone) ) {
date_default_timezone_set('UTC');
}