This commit is contained in:
Steven Mondji-Lerider 2012-11-12 17:00:53 +00:00
parent ffbc8e2831
commit fcdaa86e47
2 changed files with 6 additions and 5 deletions

View File

@ -39,13 +39,13 @@ getFields($fields);
$dom->lock();
if (!$r=$dom->get_domain_all($domain)) {
$error=$err->errstr();
}
if (isset($error) && $error) {
// if there is an errpr error, means problems with the domain. We stop
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
include('foot.php');
die();
}
if (isset($error) && $error ) {
echo "<p class=\"error\">$error</p>";
}
$dom->unlock();
?>

View File

@ -70,8 +70,9 @@ if (!$r) {
} else {
$t = time();
// XXX: we assume the cron job is at every 5 minutes
$noread=false;
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
foreach($fields as $k=>$v) unset($k);
foreach($fields as $k=>$v) unset($$k);
}
include("dom_edit.php");
exit;