Initial commit

This commit is contained in:
root
2020-08-17 19:16:42 -04:00
commit 61584e0eb2
600 changed files with 50518 additions and 0 deletions

10
lotgd-web/lotgd/lib/dhms.php Executable file
View File

@ -0,0 +1,10 @@
<?php
// addnews ready
// translator ready
// mail ready
function dhms($secs,$dec=false){
if ($dec===false) $secs=round($secs,0);
return (int)($secs/86400).translate_inline("d","datetime").(int)($secs/3600%24).translate_inline("h","datetime").(int)($secs/60%60).translate_inline("m","datetime").($secs%60).($dec?substr($secs-(int)$secs,1):"").translate_inline("s","datetime");
//use multiple translate_inlines as this function is not called too often...if you deactive stats...
}
?>