SF.net SVN: postfixadmin:[1542] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2013-10-19 18:59:02
|
Revision: 1542 http://sourceforge.net/p/postfixadmin/code/1542 Author: christian_boltz Date: 2013-10-19 18:58:59 +0000 (Sat, 19 Oct 2013) Log Message: ----------- backup.php: - move "unmaintained" warning to templates/backupwarning.tpl (that's the easiest way to have working HTML tags) - remove <p> tag from pgsql error message templates/backupwarning.tpl - new file, contains the "unmaintained" warning for backup.php Modified Paths: -------------- trunk/backup.php Added Paths: ----------- trunk/templates/backupwarning.tpl Modified: trunk/backup.php =================================================================== --- trunk/backup.php 2013-10-19 18:45:41 UTC (rev 1541) +++ trunk/backup.php 2013-10-19 18:58:59 UTC (rev 1542) @@ -29,20 +29,14 @@ // TODO: make backup supported for postgres if ('pgsql'==$CONF['database_type']) { - flash_error('<p>Sorry: Backup is currently not supported for your DBMS ('.$CONF['database_type'].').</p>'); + flash_error('Sorry: Backup is currently not supported for your DBMS ('.$CONF['database_type'].').'); $smarty->assign ('smarty_template', 'message'); $smarty->display ('index.tpl'); die; } if (safeget('download') == "") { - 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" class="button">download the database dump now</a></p> - '); - $smarty->assign ('smarty_template', 'message'); + $smarty->assign ('smarty_template', 'backupwarning'); $smarty->display ('index.tpl'); die; } Added: trunk/templates/backupwarning.tpl =================================================================== --- trunk/templates/backupwarning.tpl (rev 0) +++ trunk/templates/backupwarning.tpl 2013-10-19 18:58:59 UTC (rev 1542) @@ -0,0 +1,6 @@ +<ul class="flash-error"> + <li><span class='error_msg'><b>Warning:</b></span> The backup module of PostfixAdmin is poorly maintained and might contain bugs. + <li>Please use <tt>mysqldump</tt> to get a reliable backup of your database. + <li> + <li>If you still trust this backup module, you can <a href="backup.php?download=1" class="button">download the database dump now</a> +</div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |