SF.net SVN: postfixadmin:[1079] trunk/backup.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2011-07-18 22:05:13
|
Revision: 1079
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1079&view=rev
Author: christian_boltz
Date: 2011-07-18 22:05:07 +0000 (Mon, 18 Jul 2011)
Log Message:
-----------
backup.php:
- switch from tMessage to flash_error()
- style download link as button
This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583
Modified Paths:
--------------
trunk/backup.php
Modified: trunk/backup.php
===================================================================
--- trunk/backup.php 2011-07-18 21:59:55 UTC (rev 1078)
+++ trunk/backup.php 2011-07-18 22:05:07 UTC (rev 1079)
@@ -29,19 +29,19 @@
// TODO: make backup supported for postgres
if ('pgsql'==$CONF['database_type']) {
- $smarty->assign ('tMessage', '<p>Sorry: Backup is currently not supported for your DBMS ('.$CONF['database_type'].').</p>', false);
+ flash_error('<p>Sorry: Backup is currently not supported for your DBMS ('.$CONF['database_type'].').</p>');
$smarty->assign ('smarty_template', 'message');
$smarty->display ('index.tpl');
die;
}
if (safeget('download') == "") {
- $smarty->assign ('tMessage', '
+ flash_error('
<p><span class="error_msg">Warning:</span> The backup module of PostfixAdmin is poorly maintained and might contain bugs.</p>
<p>Please use <tt>mysqldump</tt> to get a reliable backup of your database.</p>
<p> </p>
- <p>If you still trust this backup module, you can <a href="backup.php?download=1">download the database dump now</a></p>
- ', false);
+ <p>If you still trust this backup module, you can <a href="backup.php?download=1" class="button">download the database dump now</a></p>
+ ');
$smarty->assign ('smarty_template', 'message');
$smarty->display ('index.tpl');
die;
@@ -80,11 +80,9 @@
if (!$fh = fopen ($backup, 'w'))
{
- $tMessage = "<div class=\"error_msg\">Cannot open file ($backup)</div>";
- $smarty->assign ('tMessage', $tMessage);
+ flash_error("<div class=\"error_msg\">Cannot open file ($backup)</div>");
$smarty->assign ('smarty_template', 'message');
$smarty->display ('index.tpl');
-// include ("templates/message.php");
}
else
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|