Projekt

Obecné

Profil

Stáhnout (265 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2
require "../model/DB.php";
3
session_start();
4
if (array_key_exists("loggedIn", $_SESSION) && $_SESSION['loggedIn'] == "true" && array_key_exists("role", $_SESSION) && $_SESSION['role'] == "admin") {
5
    $DB = new DB();
6

    
7
    $result = $DB->createUser($_POST);
8
}
(7-7/13)