fixed bugs with old system for views/actions

This commit is contained in:
2025-04-20 17:19:28 -06:00
parent ab30859446
commit 0753e1867c
12 changed files with 61 additions and 6 deletions
+2 -2
View File
@@ -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]);
}
}
}