X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_acc_lockout_data.php;fp=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_acc_lockout_data.php;h=299068e6820dc1584b317ce8bc6917c685ac1d16;hb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;hp=0000000000000000000000000000000000000000;hpb=dcee763368a1e3f380d07320a5254d91a09304e6;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_acc_lockout_data.php b/wwwroot/inc/smarty/node_methodz/function.get_acc_lockout_data.php new file mode 100644 index 0000000..299068e --- /dev/null +++ b/wwwroot/inc/smarty/node_methodz/function.get_acc_lockout_data.php @@ -0,0 +1,30 @@ +query($q); + $set->next(); + $lockout_to=$set->getString('acc_lockout'); + $pocet_mailov=$set->getString('user_mail'); + +$now=date("Y-m-d H:i:s"); +$rok=date("Y"); +$mesiac=date("m"); +$den=date("d"); +$hodina=date("H"); +$minuta=date("i"); + +if ($lockout_to >= $now) {$still_locked=true;}else{$still_locked=false;} + + $smarty->assign('user_locked_out_til',$lockout_to); + $smarty->assign('lockedout_user_mail_count',$pocet_mailov); + $smarty->assign('still_locked_out',$still_locked); + $smarty->assign('actrok',$rok); + $smarty->assign('actmesiac',$mesiac); + $smarty->assign('actden',$den); + $smarty->assign('acthodina',$hodina); + $smarty->assign('actminuta',$minuta); + + +} +?> \ No newline at end of file