Bugfixes
This commit is contained in:
parent
ddddf10174
commit
f1a4587ef1
|
@ -41,6 +41,8 @@ if ( !isset($is_include) ) {
|
|||
|
||||
if (!$id && !$create) {
|
||||
$error=_("Neither a creation nor a edition");
|
||||
echo "<h3>"._("Create a FTP account")."</h3>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ if (isset($error)) {
|
|||
<p><?php printf(_('This mailbox is currently using %1$s / %2$s'),format_size($used),format_size($quotabytes)); ?></p>
|
||||
<?php } ?>
|
||||
<?php if ($mailbox_action=="DELETE") { ?>
|
||||
<p><span class="error"><?php __("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!"); ?></span></p>
|
||||
<p class="error"><?php __("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!"); ?></p>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -44,6 +44,7 @@ if ($mem->user["lastfail"]) {
|
|||
printf(_("%1\$d login failed since last login")."<br />",$mem->user["lastfail"]);
|
||||
}
|
||||
|
||||
if (!empty($error) ) { echo "<p class='error'>$error</p>";$error=''; }
|
||||
?>
|
||||
<center>
|
||||
<?php
|
||||
|
|
|
@ -476,6 +476,10 @@ class m_mysql {
|
|||
function restore($file,$stdout,$id) {
|
||||
// TODO don't work with the separated sql serveur for dbusers
|
||||
global $err,$bro,$mem,$L_MYSQL_HOST;
|
||||
if (empty($file)) {
|
||||
$err->raise("mysql",_("No file specified"));
|
||||
return false;
|
||||
}
|
||||
if (!$r=$this->get_mysql_details($id)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue