| Summary: | www-apps/postfixadmin-2.3.1 bugfix version bump | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | renato gallo <renatogallo> |
| Component: | New packages | Assignee: | Gentoo Web Application Packages Maintainers <web-apps> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | enhancement | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://sourceforge.net/projects/postfixadmin/files/postfixadmin/postfixadmin-2.3.1/postfixadmin-2.3.1.tar.gz/download | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
renato gallo
2010-08-05 11:31:12 UTC
and this is a patch for the last warning about the date function (I paste it here because I am at the office and I do not trust wordpad ):
--- backup.php 2009-10-24 02:11:09.000000000 +0200
+++ backup.php 2010-08-05 13:24:49.0000 00000 +0200
@@ -20,7 +20,8 @@
*
* Form POST \ GET Variables: -none-
*/
-
+date_default_timezone_set('Europe/Oslo');
+$date = date_default_timezone_get();
require_once('common.php');
authentication_require_role('global-admin');
@@ -55,7 +56,8 @@
{
umask (077);
$path = (ini_get('upload_tmp_dir') != '') ? ini_get('upload_tmp_dir') : '/tm p';
- $filename = "postfixadmin-" . date ("Ymd") . "-" . getmypid() . ".sql";
+ #$filename = "postfixadmin-" . date ("Ymd") . "-" . getmypid() . ".sql";
+ $filename = "postfixadmin-" . date('dmY') ."-" . getmypid() . ".sql";
$backup = $path . DIRECTORY_SEPARATOR . $filename;
$header = "#\n# Postfix Admin $version\n# Date: " . date ("D M j G:i:s T Y") . "\n#\n";
I am testing it on my server and it works like a charme without annoying warnings whatsoever bump ? Thank you for report! I'll resolve this bug as duplicate of 336036 as bug 336036 has attachment to work with (although in reality that bug is duplicate of this :) ). The patch you pasted here does not apply in postfixadmin-2.3.2 and I think is not needed any more. *** This bug has been marked as a duplicate of bug 336036 *** |