Added “graceminfreq” and immediate calculation of “graceline”

This commit is contained in:
pezcurrel 2024-01-02 01:02:22 +01:00
parent 13765fb17d
commit 2e78c37286

10
web/lib/grace.php Normal file
View 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);
?>