mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Invites config re-formatting (#1162)
* Invites config re-formatting * Update config.php * Update CHANGELOG.md
This commit is contained in:
parent
51af9051c0
commit
33b2042395
4 changed files with 21 additions and 20 deletions
|
@ -203,15 +203,14 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
* Invite code (reg)
|
||||
*/
|
||||
case 'invite_code':
|
||||
if ($bb_cfg['invite_only']) {
|
||||
if ($bb_cfg['invites_system']['enabled']) {
|
||||
$invite_code = $_POST['invite_code'] ?? '';
|
||||
if ($submit) {
|
||||
if (isset($bb_cfg['invite_codes'][$invite_code])) {
|
||||
if (TIMENOW > strtotime($bb_cfg['invite_codes'][$invite_code])) {
|
||||
if (isset($bb_cfg['invites_system']['codes'][$invite_code])) {
|
||||
if (TIMENOW > strtotime($bb_cfg['invites_system']['codes'][$invite_code])) {
|
||||
$errors[] = $lang['INVITE_EXPIRED'];
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$errors[] = $lang['INCORRECT_INVITE'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue