Changeset 2113

Show
Ignore:
Timestamp:
04/11/08 03:01:59 (5 months ago)
Author:
anarcat
Message:

tell the user at which time the changes will be effective instead of the
vague "5 minutes".

Sponsored by: Koumbit
Closes: #231

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/admin/dom_editdns.php

    r107 r2113  
    5454<h3><?php printf(_("Editing domain %s"),$domain); ?></h3> 
    5555<p> 
    56 <?php printf(_("The domain %s has been changed. The modifications will take effect in 5 minutes."),$domain); ?><br /> 
     56<?php 
     57  printf(_("The domain %s has been changed."),$domain); 
     58  # take the current time 
     59  $t = time(); 
     60  # that modulo (%) there computes the time of the next cron job 
     61  # XXX: we assume the cron job is at every 5 minutes 
     62  print 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))));  
     63?><br /> 
    5764<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a> 
    5865</p> 
  • alternc/trunk/bureau/admin/dom_subdodel.php

    r1905 r2113  
    4848                exit(); 
    4949        } else { 
    50           echo "<p class=\"error\">"._("The subdomain has been deleted. Changes will take place in 5 minutes.")."</p>"; 
     50        # take the current time 
     51        $t = time(); 
     52        # that modulo (%) there computes the time of the next cron job 
     53        # XXX: we assume the cron job is at every 5 minutes 
     54        $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))));  
     55            echo "<p class=\"error\">".$error."</p>"; 
    5156        } 
    5257?> 
  • alternc/trunk/bureau/admin/dom_subdoedit.php

    r1 r2113  
    5151  $error=$err->errstr(); 
    5252} else { 
    53   $error=_("The modifications will take effect in 5 minutes."); 
     53  # take the current time 
     54  $t = time(); 
     55  # that modulo (%) there computes the time of the next cron job 
     56  # XXX: we assume the cron job is at every 5 minutes 
     57  $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)))); 
    5458} 
    5559include("dom_edit.php");