Fixed (file) comments.

This commit is contained in:
2018-06-19 18:02:04 +02:00
committed by Stefan Rohde-Enslin
parent 32345e9629
commit e3254eaaf7
13 changed files with 43 additions and 20 deletions

View File

@ -1,7 +1,6 @@
<?PHP
/**
* Start page of the backend.
* Offers a dashboard.
* This script lists all users and offers the option to add new ones.
*
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
*/
@ -32,7 +31,10 @@ if (!isset($users)) {
$users = json_decode(file_get_contents(__DIR__ . "/../data/users.json"), true);
}
if (isset($task) and $task == "insert") { // Adding new users.
/**
* Adding new users.
*/
if (isset($task) and $task == "insert") {
$redirectURL = "./users.php?" . write_common_vars(["username", "realName", "email", "admin"]) . "#addUser";