X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f9ade082ba49cf487af31339afa7aeeb0653af57..ca956a5a5758b8514f15c4828bf26a11a7b66032:/www/user.php diff --git a/www/user.php b/www/user.php index fd851c4..364981c 100644 --- a/www/user.php +++ b/www/user.php @@ -3,17 +3,10 @@ * Edit user information */ namespace phorkie; +$reqWritePermissions = true; require_once 'www-header.php'; if (!isset($_SESSION['identity'])) { - include_once 'secure.php'; -} - -if (isset($_POST['name'])) { - $_SESSION['name'] = substr(filter_var($_POST['name'], FILTER_SANITIZE_STRING), 0, 35); -} - -if (isset($_POST['email'])) { - $_SESSION['email'] = substr(filter_var($_POST['email'], FILTER_SANITIZE_EMAIL), 0, 35); + require 'forbidden.php'; } render(