diff --git a/bureau/admin/dom_editdns.php b/bureau/admin/dom_editdns.php index 8675ca89..7a6c4631 100644 --- a/bureau/admin/dom_editdns.php +++ b/bureau/admin/dom_editdns.php @@ -53,7 +53,14 @@ include("head.php");

-
+ %date('H:i:s', $t), '%time' => date('H:i:s', %($t-($t%300)+300)))); +?>

diff --git a/bureau/admin/dom_subdodel.php b/bureau/admin/dom_subdodel.php index bf9722f4..689c0c38 100644 --- a/bureau/admin/dom_subdodel.php +++ b/bureau/admin/dom_subdodel.php @@ -47,7 +47,12 @@ include("head.php"); echo "

$error

"; exit(); } else { - echo "

"._("The subdomain has been deleted. Changes will take place in 5 minutes.")."

"; + # take the current time + $t = time(); + # that modulo (%) there computes the time of the next cron job + # XXX: we assume the cron job is at every 5 minutes + $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)))); + echo "

".$error."

"; } ?>

diff --git a/bureau/admin/dom_subdoedit.php b/bureau/admin/dom_subdoedit.php index 4f2421bf..3200aa1d 100644 --- a/bureau/admin/dom_subdoedit.php +++ b/bureau/admin/dom_subdoedit.php @@ -50,9 +50,13 @@ $dom->unlock(); if (!$r) { $error=$err->errstr(); } else { - $error=_("The modifications will take effect in 5 minutes."); + # take the current time + $t = time(); + # that modulo (%) there computes the time of the next cron job + # XXX: we assume the cron job is at every 5 minutes + $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)))); } include("dom_edit.php"); exit; -?> \ No newline at end of file +?>