getConn(); $acc_obj = new access_group_Class($dbconn, $_SESSION['user']->id); $rows = $acc_obj->getRows(); $obj = new user_Class($dbconn, $_SESSION['user']->id); $users = $obj->getRowsArr(); // admin is owned by super admin, so we have to add him to list $users[$_SESSION['user']->id] = $_SESSION['user']->name; if(!isset($_SESSION['user']) || $_SESSION['user']->accesslevel != 'Admin') { header('Location: ../login.php'); exit; } ?>