fixsquared #167
@@ -6,14 +6,14 @@ require_once ("../../queries/checkInput.php");
|
|||||||
require_once ("../../queries/user.php");
|
require_once ("../../queries/user.php");
|
||||||
require_once ("../../queries/group_page.php");
|
require_once ("../../queries/group_page.php");
|
||||||
|
|
||||||
$userinfo = getRoleByID($_SESSION['userID'])->fetch(PDO::FETCH_ASSOC);
|
$userinfo = getRoleByID($_SESSION['userID']);
|
||||||
|
|
||||||
if (isset($_POST["actions"]) && isset($_POST["userID"])) {
|
if (isset($_POST["actions"]) && isset($_POST["userID"])) {
|
||||||
changeUserStatusByID($_POST["userID"], $_POST["actions"]);
|
changeUserStatusByID($_POST["userID"], $_POST["actions"]);
|
||||||
} else if (isset($_POST["actions"]) && isset($_POST["groupID"])) {
|
} else if (isset($_POST["actions"]) && isset($_POST["groupID"])) {
|
||||||
changeGroupStatusByID($_POST["groupID"], $_POST["actions"]);
|
changeGroupStatusByID($_POST["groupID"], $_POST["actions"]);
|
||||||
} else if (isset($_POST["batchactions"]) && isset($_POST["checkbox-user"])) {
|
} else if (isset($_POST["batchactions"]) && isset($_POST["checkbox-user"])) {
|
||||||
if ($userinfo['role'] == 'owner') {
|
if ($userinfo == 'owner') {
|
||||||
changeMultipleUserStatusByID($_POST["checkbox-user"], $_POST["batchactions"]);
|
changeMultipleUserStatusByID($_POST["checkbox-user"], $_POST["batchactions"]);
|
||||||
} else {
|
} else {
|
||||||
changeMultipleUserStatusByIDAdmin($_POST["checkbox-user"], $_POST["batchactions"]);
|
changeMultipleUserStatusByIDAdmin($_POST["checkbox-user"], $_POST["batchactions"]);
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ while($user = $q->fetch(PDO::FETCH_ASSOC)) {
|
|||||||
<option value='banned'>Ban</option>
|
<option value='banned'>Ban</option>
|
||||||
<option value='user'>Activeer</option>";
|
<option value='user'>Activeer</option>";
|
||||||
|
|
||||||
if ($userinfo['role'] == 'owner') {
|
if ($userinfo == 'owner') {
|
||||||
echo "<option value='admin'>Admin</option>
|
echo "<option value='admin'>Admin</option>
|
||||||
<option value='owner'>Owner</option>";
|
<option value='owner'>Owner</option>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user