Projekt

Obecné

Profil

Stáhnout (275 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2
require "../model/DB.php";
3

    
4
session_start();
5

    
6
if (array_key_exists("loggedIn", $_SESSION) && $_SESSION['loggedIn'] == "true" && array_key_exists("role", $_SESSION) && $_SESSION['role'] == "admin") {
7
    $DB = new DB();
8
    $result = $DB->deleteUser($_POST['userId']);
9
}
(2-2/13)