erreur ->
This commit is contained in:
parent
4c70a79d82
commit
11b5e1a1c2
|
@ -43,7 +43,7 @@ if ($r["enabled"]) {
|
||||||
<h3><?php __("Restore a SQL backup"); ?></h3>
|
<h3><?php __("Restore a SQL backup"); ?></h3>
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
if (!$mysql->restore($restfile,true,$r)) {
|
if (!$mysql->restore($restfile,true,$id)) {
|
||||||
$error=$err->errstr();
|
$error=$err->errstr();
|
||||||
} else {
|
} else {
|
||||||
$error=_("Your database has been restored, check out the previous text for error messages.");
|
$error=_("Your database has been restored, check out the previous text for error messages.");
|
||||||
|
|
|
@ -298,7 +298,7 @@ class m_mysql {
|
||||||
*/
|
*/
|
||||||
function restore($file,$stdout,$id) {
|
function restore($file,$stdout,$id) {
|
||||||
global $err,$bro,$mem,$L_MYSQL_HOST;
|
global $err,$bro,$mem,$L_MYSQL_HOST;
|
||||||
if (!$r=$mysql->get_mysql_details($id)) {
|
if (!$r=$this->get_mysql_details($id)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!($fi=$bro->convertabsolute($file,0))) {
|
if (!($fi=$bro->convertabsolute($file,0))) {
|
||||||
|
|
|
@ -207,6 +207,10 @@ if [ -e /etc/courier/authmysqlrc ] ; then
|
||||||
chmod 640 /etc/courier/authmysqlrc
|
chmod 640 /etc/courier/authmysqlrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e /etc/proftpd.conf ] ; then
|
||||||
|
chmod 640 /etc/proftpd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Reload services
|
# Reload services
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue