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
b67b2c8e14
commit
8e7f4f4dd9
@ -59,10 +59,13 @@ switch ($mode)
|
||||
// Ограничение по времени
|
||||
else if (is_array($bb_cfg['new_user_reg_restricted']) && (!empty($bb_cfg['new_user_reg_restricted']['from']) && !empty($bb_cfg['new_user_reg_restricted']['to'])))
|
||||
{
|
||||
$time_start = $bb_cfg['new_user_reg_restricted']['from'];
|
||||
$time_end = $bb_cfg['new_user_reg_restricted']['to'];
|
||||
if (in_array(bb_date(TIMENOW, 'H', false), $bb_cfg['new_user_reg_restricted']))
|
||||
{
|
||||
bb_die($lang['REGISTERED_IN_TIME']);
|
||||
}
|
||||
unset($time_start, $time_end);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user