diff -r 7be4525290cc -r 2ff220cfde13 users.php --- a/users.php Sun Apr 22 16:27:45 2007 +0000 +++ b/users.php Mon Jun 04 18:43:11 2007 +0000 @@ -1,22 +1,5 @@ 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"] @@ -28,9 +11,16 @@ { 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"); - } + if(strlen($_POST["password"]) < 8) + { + $error = _('Password length should be at least 8 characters.'); + } + else + { + 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 can\'t contain spaces'); @@ -41,71 +31,109 @@ $error = _('Please fill in all fields'); } -// Dirty hack, maybe revise? include_once("inc/header.inc.php"); +if ($error != "") +{ ?> -

-
+ +

+

:

" . _('Current users (click to edit)') . ":"; - +?> +

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

- +
 
+ + + + + + + + - - - - - + + + + + + + -
 
">[ <? echo _('Delete user'); ?> ]"> () +?> +
">[ <? echo _('Delete user'); ?> ]"> () ">[ <? echo _('Delete domain'); ?> ] ">
">[ <? echo _('Delete domain'); ?> ] ">
-

+ +

: .

+
+ +
-
-:
- - - - - - - - - -
:">
:">
:">
:">
:
:
:
 
-
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
:">
:">
:">
:">
: + +
:
:
 
+