Exemplo n.º 1
0
<?php

include_once 'admin-class.php';
$admin = new itg_admin();
if ($_SESSION['is_super'] == 0) {
    $adminUser = $admin->getActiveUsers();
} elseif ($_SESSION['is_super'] == 1) {
    $adminUser = $admin->getAllUsers();
} else {
    header("Location: dashboard.php?msg=Not authorized to view users");
}
if (count($adminUser) <= 0) {
    header("Location: dashboard.php?msg=No users found");
}
if ($_GET['op'] == "delete") {
    $admin->deleteUser();
}
if ($_POST) {
    $admin->addMultipleSession($_POST);
}
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <title>Tracker | Users</title>
        <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">