diff -r 2cd8c1649ba9 -r 58094faf794d users.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/users.php Tue Apr 10 22:40:43 2007 +0000 @@ -0,0 +1,117 @@ + trancer nl> | +// | Sjeemz sjeemz nl> | +// +--------------------------------------------------------------------+ +// +// $Id: users.php,v 1.11 2003/02/05 23:22:33 azurazu Exp $ +// + +require_once("inc/toolkit.inc.php"); + +if($_POST["submit"] +&& $_POST["username"] != "" +&& $_POST["password"] != "" +&& $_POST["fullname"] != "" +&& $_POST["email"] != "" +&& $_POST["level"] > 0) +{ + if(substr_count($_POST["username"], " ") == 0) + { + add_user($_POST["username"], $_POST["password"], $_POST["fullname"], $_POST["email"], $_POST["level"], $_POST["description"], $_POST["active"]); + clean_page($BASE_URL . $BASE_PATH . "users.php"); + } + else + { + $error = "Usernames cant contain spaces"; + } +} +elseif($_POST["submit"]) +{ + $error = "Please fill in all fields"; +} + +// Dirty hack, maybe revise? +include_once("inc/header.inc.php"); +?> +

User Admin

+

Error:

Current users (click to edit):"; + +$users = show_users(''); + +echo "

Number of users: ".count($users); + +show_pages(count($users),ROWAMOUNT); +?> + +

+ + + + + + + +
 NameDomainsDomain listLevelStatus
">[ delete user ]"> () + ">[ delete domain ] ">
+

+ +
+Create new user:
+ + + + + + + + + +
User name:">
Full name:">
Password:">
E-mail:">
User level:
Description:
Active:
 
+
+