This commit is contained in:
Alan Garcia 2013-02-01 07:59:37 +00:00
parent ddddf10174
commit f1a4587ef1
4 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,8 @@ if ( !isset($is_include) ) {
if (!$id && !$create) { if (!$id && !$create) {
$error=_("Neither a creation nor a edition"); $error=_("Neither a creation nor a edition");
echo "<h3>"._("Create a FTP account")."</h3>";
echo "<p class=\"error\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -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> <p><?php printf(_('This mailbox is currently using %1$s / %2$s'),format_size($used),format_size($quotabytes)); ?></p>
<?php } ?> <?php } ?>
<?php if ($mailbox_action=="DELETE") { ?> <?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 } ?> <?php } ?>
</td> </td>
<td> <td>

View File

@ -44,6 +44,7 @@ if ($mem->user["lastfail"]) {
printf(_("%1\$d login failed since last login")."<br />",$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> <center>
<?php <?php

View File

@ -476,6 +476,10 @@ class m_mysql {
function restore($file,$stdout,$id) { function restore($file,$stdout,$id) {
// TODO don't work with the separated sql serveur for dbusers // TODO don't work with the separated sql serveur for dbusers
global $err,$bro,$mem,$L_MYSQL_HOST; 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)) { if (!$r=$this->get_mysql_details($id)) {
return false; return false;
} }