Code refactoring (#1441)

* Code refactoring

* Update viewtopic.php

* Update viewforum.php

* Update posting.php

* Update viewtopic.php

* Revert "Code refactoring"

This reverts commit e4ac08e377.

* Revert "Update viewforum.php"

This reverts commit 1ee6321385.

* Update viewforum.php

* Update viewtopic.php

* Update viewtopic.php

* Update viewtopic.php

* Update viewtopic.php

* Update dl_list.php

* Update posting.php

* Update posting.php

* Update posting.php

* Update viewprofile.php

* Update email.php

* Update viewtopic.php

* Update functions.php

* Update posting.php

* Update viewtopic.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-04-10 18:35:55 +07:00 committed by GitHub
commit 2472608c6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 19 additions and 29 deletions

View file

@ -18,7 +18,7 @@ $datastore->enqueue([
'cat_forums'
]);
if (!$userdata['session_logged_in']) {
if (IS_GUEST) {
redirect(LOGIN_URL . "?redirect={$_SERVER['REQUEST_URI']}");
} else {
if (empty($_GET[POST_USERS_URL])) {