Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / user.php
index 1cc8aebe52fa8269a91c12bf18ad02ef50176ae3..364981ca7491fdd8e6ebd29b637d705da28b1f2b 100644 (file)
@@ -3,17 +3,10 @@
  * Edit user information
  */
 namespace phorkie;
+$reqWritePermissions = true;
 require_once 'www-header.php';
 if (!isset($_SESSION['identity'])) {
-    require_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(