mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#1410)
* Minor improvements * Update modcp.php * Update CHANGELOG.md * Update modcp.php
This commit is contained in:
parent
39d069016c
commit
22511c3edc
5 changed files with 6 additions and 8 deletions
|
@ -69,6 +69,9 @@ function validate_mode_condition($request_index, $mod_action = '')
|
|||
return (isset($_REQUEST[$request_index]) || (isset($_POST['mod_action']) && $_POST['mod_action'] === $mod_action));
|
||||
}
|
||||
|
||||
// Start session management
|
||||
$user->session_start(['req_login' => true]);
|
||||
|
||||
// Obtain initial vars
|
||||
$forum_id = $_REQUEST['f'] ?? 0;
|
||||
$topic_id = $_REQUEST['t'] ?? 0;
|
||||
|
@ -129,9 +132,6 @@ if ($topic_id) {
|
|||
bb_die('Invalid request');
|
||||
}
|
||||
|
||||
// Start session management
|
||||
$user->session_start(['req_login' => true]);
|
||||
|
||||
// Check if user did or did not confirm. If they did not, forward them to the last page they were on
|
||||
if (isset($_POST['cancel']) || IS_GUEST) {
|
||||
$redirect = 'index.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue