Minor bug fixes
This commit is contained in:
parent
e7208d8e9b
commit
ee91c104fc
@ -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>
|
||||
|
@ -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') );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user