mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update register.php
This commit is contained in:
parent
85425b91aa
commit
2309d06280
@ -59,7 +59,7 @@ switch ($mode)
|
|||||||
// Ограничение по времени
|
// Ограничение по времени
|
||||||
else if ($bb_cfg['new_user_reg_restricted']['enabled'])
|
else if ($bb_cfg['new_user_reg_restricted']['enabled'])
|
||||||
{
|
{
|
||||||
if (preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_start']) && preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_end']))
|
if (!preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_start']) || !preg_match('/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/', $bb_cfg['new_user_reg_restricted']['time_end']))
|
||||||
{
|
{
|
||||||
bb_die($lang['WRONG_INPUT']);
|
bb_die($lang['WRONG_INPUT']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user