diff --git a/backup.php b/backup.php index 679adcf6..6feeb60f 100644 --- a/backup.php +++ b/backup.php @@ -29,20 +29,14 @@ authentication_require_role('global-admin'); // TODO: make backup supported for postgres if ('pgsql'==$CONF['database_type']) { - flash_error('

Sorry: Backup is currently not supported for your DBMS ('.$CONF['database_type'].').

'); + 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(' -

Warning: The backup module of PostfixAdmin is poorly maintained and might contain bugs.

-

Please use mysqldump to get a reliable backup of your database.

-

 

-

If you still trust this backup module, you can download the database dump now

- '); - $smarty->assign ('smarty_template', 'message'); + $smarty->assign ('smarty_template', 'backupwarning'); $smarty->display ('index.tpl'); die; } diff --git a/templates/backupwarning.tpl b/templates/backupwarning.tpl new file mode 100644 index 00000000..9c711ba3 --- /dev/null +++ b/templates/backupwarning.tpl @@ -0,0 +1,6 @@ +