mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Invites: Permanent invites feature (#1670)
* Invites: Permanent invites feature * Update config.php * Update config.php * Update CHANGELOG.md * Update config.php
This commit is contained in:
parent
7a209bc615
commit
d9a8adbaaf
3 changed files with 10 additions and 5 deletions
|
@ -207,8 +207,10 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
$invite_code = $_POST['invite_code'] ?? '';
|
||||
if ($submit) {
|
||||
if (isset($bb_cfg['invites_system']['codes'][$invite_code])) {
|
||||
if (TIMENOW > strtotime($bb_cfg['invites_system']['codes'][$invite_code])) {
|
||||
$errors[] = $lang['INVITE_EXPIRED'];
|
||||
if ($bb_cfg['invites_system']['codes'][$invite_code] !== 'permanent') {
|
||||
if (TIMENOW > strtotime($bb_cfg['invites_system']['codes'][$invite_code])) {
|
||||
$errors[] = $lang['INVITE_EXPIRED'];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$errors[] = $lang['INCORRECT_INVITE'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue