. */ require_once(__DIR__ . '/../index.php'); require_once(__DIR__ . '/../login.php'); require('./header.php'); ?>

Settings

isAdmin()) { try { $user = new User($_pdo, $_GET['delete_user']); if ($user->delete()) { echo "
The user with username {$user->username} has been removed.
"; } else { echo "
The user with username {$user->username} could not be removed.
"; } } catch (PDOException $e) { echo "
The user with username {$user->username} could not be removed due to a PDO error.
"; } catch (Exception $e) { echo "
The user with id {$_GET['delete_user']} could not be found.
"; } } ?>
Password
The passwords don\'t match.
'; } else if (!$_user->verifyPassword($_POST['password_current'])) { echo '
The current password was incorrect.
'; } else { try { $_user->password = $_POST['password_update']; echo '
Password successfully changed.
'; } catch (PDOException $e) { echo '
An unknown error occurred.
'; } } } ?>
Users
isAdmin()) echo ''; ?> id}' data-mixer-order-username='{$user->username}'> "; if ($_user->isAdmin()) { if ($user->id == $_user->id) { echo ""; } else { echo ""; } } echo ""; } ?>
# Username Tools
{$user->id} {$user->username}
isAdmin()) : ?>
Create new