erreur ->

This commit is contained in:
Benjamin Sonntag 2006-04-26 14:00:52 +00:00
parent 4c70a79d82
commit 11b5e1a1c2
3 changed files with 7 additions and 3 deletions

View File

@ -43,7 +43,7 @@ if ($r["enabled"]) {
<h3><?php __("Restore a SQL backup"); ?></h3>
<p>
<?php
if (!$mysql->restore($restfile,true,$r)) {
if (!$mysql->restore($restfile,true,$id)) {
$error=$err->errstr();
} else {
$error=_("Your database has been restored, check out the previous text for error messages.");

View File

@ -298,7 +298,7 @@ class m_mysql {
*/
function restore($file,$stdout,$id) {
global $err,$bro,$mem,$L_MYSQL_HOST;
if (!$r=$mysql->get_mysql_details($id)) {
if (!$r=$this->get_mysql_details($id)) {
return false;
}
if (!($fi=$bro->convertabsolute($file,0))) {

View File

@ -207,6 +207,10 @@ if [ -e /etc/courier/authmysqlrc ] ; then
chmod 640 /etc/courier/authmysqlrc
fi
if [ -e /etc/proftpd.conf ] ; then
chmod 640 /etc/proftpd.conf
fi
#######################################################################
# Reload services
#