enabled) { $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff")); echo $msg->msg_html_all(); exit; } $fields = array ( "login" => array ("post", "string", ""), "pass" => array ("post", "string", ""), "passconf" => array ("post", "string", ""), "canpass" => array ("post", "integer", ""), "db_server_id" => array ("post", "integer", ""), "notes" => array ("post", "string", ""), "nom" => array ("post", "string", ""), "prenom" => array ("post", "string", ""), "nmail" => array ("post", "string", ""), "type" => array ("post", "string", ""), "create_dom_list" => array ("post", "string", ""), "create_dom" => array ("post", "integer", 0), "submit" => array ("post", "string", ""), ); getFields($fields); if ($create_dom && !empty($create_dom_list) ) { $dom_to_create = $create_dom_list; } else { $dom_to_create = false; } if ($pass != $passconf) { $msg->raise("ERROR", "admin", _("Passwords do not match")); include("adm_add.php"); exit(); } // Attemp to create, exit if fail if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type, 0, $notes, 0, $dom_to_create, $db_server_id))) { include ("adm_add.php"); exit; } $msg->raise("INFO", "admin", _("The new member has been successfully created")); include("adm_list.php"); exit; ?>