SF.net SVN: postfixadmin:[1076] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-07-14 21:27:13
|
Revision: 1076 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1076&view=rev Author: christian_boltz Date: 2011-07-14 21:27:07 +0000 (Thu, 14 Jul 2011) Log Message: ----------- users/vacation.php, edit-vacation.php, backup.php: - supress warnings about PHP's date.timezone not set. The risk of doing this is low IMHO - the worst thing that can happen is a wrong default date for vacation or a "wrong" tempfile name for backup.php Modified Paths: -------------- trunk/backup.php trunk/edit-vacation.php trunk/users/vacation.php Modified: trunk/backup.php =================================================================== --- trunk/backup.php 2011-07-14 20:29:10 UTC (rev 1075) +++ trunk/backup.php 2011-07-14 21:27:07 UTC (rev 1076) @@ -72,6 +72,7 @@ { umask (077); $path = (ini_get('upload_tmp_dir') != '') ? ini_get('upload_tmp_dir') : '/tmp'; + date_default_timezone_set(@date_default_timezone_get()); # Suppress date.timezone warnings $filename = "postfixadmin-" . date ("Ymd") . "-" . getmypid() . ".sql"; $backup = $path . DIRECTORY_SEPARATOR . $filename; Modified: trunk/edit-vacation.php =================================================================== --- trunk/edit-vacation.php 2011-07-14 20:29:10 UTC (rev 1075) +++ trunk/edit-vacation.php 2011-07-14 21:27:07 UTC (rev 1076) @@ -55,6 +55,9 @@ $fUsername = $SESSID_USERNAME; $fDomain = $USERID_DOMAIN; } + +date_default_timezone_set(@date_default_timezone_get()); # Suppress date.timezone warnings + $vh = new VacationHandler($fUsername); $vacation_domain = $CONF['vacation_domain']; $vacation_goto = preg_replace('/@/', '#', $fUsername); Modified: trunk/users/vacation.php =================================================================== --- trunk/users/vacation.php 2011-07-14 20:29:10 UTC (rev 1075) +++ trunk/users/vacation.php 2011-07-14 21:27:07 UTC (rev 1076) @@ -42,6 +42,8 @@ exit(0); } +date_default_timezone_set(@date_default_timezone_get()); # Suppress date.timezone warnings + $vh = new VacationHandler(authentication_get_username()); if ($_SERVER['REQUEST_METHOD'] == "GET") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |