/* =========================== gelato CMS development version http://www.gelatocms.com/ gelato CMS is a free software licensed under GPL (General public license) =========================== */ ?> require_once('../config.php'); include("../classes/functions.php"); include("../classes/user.class.php"); require_once("../classes/configuration.class.php"); $user = new user(); $conf = new configuration(); $isEdition = isset($_GET["edit"]); $userId = ($isEdition) ? $_GET["edit"] : NULL; if ($user->isAdmin()) { if (isset($_GET["delete"])) { $user->deleteUser($_GET['delete']); header("Location: admin.php?delete=true"); die(); } if(isset($_POST["btnAdd"])) { unset($_POST["btnAdd"]); if (isset($_POST["repass"])) { unset($_POST["repass"]); } if (isset($_POST["btnVerifyUser"])) { unset($_POST["btnVerifyUser"]); } if (isset($_POST["password"])) { $_POST["password"] = md5($_POST["password"]); } if (isset($_POST["id_user"])) { $user->modifyUser($_POST, $_POST["id_user"]); } else { $user->addUser($_POST); } } else { if ($isEdition) { $register = $user->getUserByID($userId); } ?>
echo ($isEdition) ? "Edit" : "Add"; ?> the user information
gelato CMS :: PHP/MySQL Tumblelog Content Management System.