2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-23 18:12:16 +00:00
Files
website/common/code/webnotes/admin_manage_users_add.php
Rene Rivera 1d41a5cc39 *** empty log message ***
[SVN r49]
2006-01-10 07:16:17 +00:00

42 lines
1.1 KiB
PHP

<?php
# phpWebNotes - a php based note addition system
# Copyright (C) 2000-2002 Webnotes Team - webnotes-devel@sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Id$
# --------------------------------------------------------
require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' );
login_cookie_check();
access_ensure_check_action( ACTION_USERS_ADD );
$f_username = gpc_get( 'f_username' );
$f_email = gpc_get( 'f_email' );
$f_password = gpc_get( 'f_password' );
$f_password_confirm = gpc_get( 'f_password_confirm' );
$f_access_level = gpc_get( 'f_access_level' );
if ( $f_password != $f_password_confirm ) {
util_header_redirect( $g_admin_manage_users_add_page );
}
if ( isset( $f_enabled ) ) {
$f_enabled = 1;
} else {
$f_enabled = 0;
}
if ( isset( $f_protected ) ) {
$f_protected = 1;
} else {
$f_protected = 0;
}
user_create( $f_username, $f_password, $f_email, $f_access_level, $f_enabled, $f_protected );
util_header_redirect( $g_admin_manage_users );
?>