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

View File

@ -70,8 +70,9 @@ if (!$r) {
} else { } else {
$t = time(); $t = time();
// XXX: we assume the cron job is at every 5 minutes // 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)))); $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"); include("dom_edit.php");
exit; exit;