Added “graceminfreq” and immediate calculation of “graceline”
This commit is contained in:
parent
13765fb17d
commit
2e78c37286
1 changed files with 10 additions and 0 deletions
10
web/lib/grace.php
Normal file
10
web/lib/grace.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$graceminfreq=48*60*60;// 2 days
|
||||||
|
$gracetime=30*24*60*60;// 30 days
|
||||||
|
$now=time();
|
||||||
|
$graceline=gmmktime(0,0,0,gmdate('n',$now),gmdate('j',$now),gmdate('Y',$now))-$gracetime;// we fix the graceline at start of today minus $gracetime
|
||||||
|
//$graceline=$now-$gracetime;// we fix the graceline at now minus $gracetime
|
||||||
|
unset($now);
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in a new issue