X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_acc_lockout_data.php;fp=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_acc_lockout_data.php;h=299068e6820dc1584b317ce8bc6917c685ac1d16;hb=b42b2bf946332ad8544d53f610be9cb05e80bf56;hp=0000000000000000000000000000000000000000;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/node_methodz/function.get_acc_lockout_data.php b/inc/smarty/node_methodz/function.get_acc_lockout_data.php new file mode 100644 index 0000000..299068e --- /dev/null +++ b/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