fixed bugs with old system for views/actions
This commit is contained in:
@@ -11,7 +11,7 @@ include_once 'components/head.php';
|
||||
if (!isset($_SESSION['role_id']))
|
||||
header('Location: user.php?view=login');
|
||||
else if ($_SESSION['role_id'] >= contributor)
|
||||
header('Location: user.php?action=view&user_id=' . $_SESSION['user_id']);
|
||||
header('Location: user.php?view=display&user_id=' . $_SESSION['user_id']);
|
||||
|
||||
include_once 'functions/admin_functions.php';
|
||||
|
||||
@@ -32,7 +32,7 @@ if (isset($_POST['action']) && isset($_POST['form_id']) || isset($_FILES['csv'])
|
||||
break;
|
||||
|
||||
case 'view':
|
||||
header('Location: user.php?action=view&user_id=' . $_POST['selected_users'][0]);
|
||||
header('Location: user.php?view=display&user_id=' . $_POST['selected_users'][0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user