Hendrik testing #166
@@ -33,7 +33,7 @@ if (isset($_POST['groupstatus'])) {
|
|||||||
$groupstatus = $_POST["groupstatus"];
|
$groupstatus = $_POST["groupstatus"];
|
||||||
}
|
}
|
||||||
|
|
||||||
$userinfo = getRoleByID($_SESSION['userID'])->fetch(PDO::FETCH_ASSOC);
|
$userinfo = getRoleByID($_SESSION['userID']);
|
||||||
|
|
||||||
if ($pagetype == "user") {
|
if ($pagetype == "user") {
|
||||||
include ("../../views/adminpanel-table.php");
|
include ("../../views/adminpanel-table.php");
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ while($user = $q->fetch(PDO::FETCH_ASSOC)) {
|
|||||||
<form class='admin-useraction'
|
<form class='admin-useraction'
|
||||||
onsubmit=\"adminUpdate(this); return false;\">
|
onsubmit=\"adminUpdate(this); return false;\">
|
||||||
<select class='action' name='actions'>");
|
<select class='action' name='actions'>");
|
||||||
if (!($userinfo['role'] == 'admin'
|
if (!($userinfo == 'admin'
|
||||||
AND ($user['role'] == 'admin'
|
AND ($user['role'] == 'admin'
|
||||||
OR $user['role'] == 'owner'))) {
|
OR $user['role'] == 'owner'))) {
|
||||||
echo "<option value='frozen'>Bevries</option>
|
echo "<option value='frozen'>Bevries</option>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ $search = "";
|
|||||||
$status = array("user", "frozen", "banned", "unconfirmed", "admin", "owner");
|
$status = array("user", "frozen", "banned", "unconfirmed", "admin", "owner");
|
||||||
$groupstatus = array("hidden", "public", "membersonly");
|
$groupstatus = array("hidden", "public", "membersonly");
|
||||||
$pagetype = "user";
|
$pagetype = "user";
|
||||||
$userinfo = getRoleByID($_SESSION['userID'])->fetch(PDO::FETCH_ASSOC);
|
$userinfo = getRoleByID($_SESSION['userID']);
|
||||||
|
|
||||||
if (isset($_GET["search"])) {
|
if (isset($_GET["search"])) {
|
||||||
$search = test_input($_GET["search"]);
|
$search = test_input($_GET["search"]);
|
||||||
@@ -123,7 +123,7 @@ if (isset($_GET["groupstatus"])) {
|
|||||||
<button type="submit" name="batchactions" id="ban" value="banned">Ban</button>
|
<button type="submit" name="batchactions" id="ban" value="banned">Ban</button>
|
||||||
<button type="submit" name="batchactions" id="restore" value="user">Activeer</button>
|
<button type="submit" name="batchactions" id="restore" value="user">Activeer</button>
|
||||||
<?php
|
<?php
|
||||||
if ($userinfo['role'] == 'owner') {
|
if ($userinfo == 'owner') {
|
||||||
echo "<button type=\"submit\"
|
echo "<button type=\"submit\"
|
||||||
name=\"batchactions\"
|
name=\"batchactions\"
|
||||||
id=\"admin\"
|
id=\"admin\"
|
||||||
|
|||||||
Reference in New Issue
Block a user