Update of /cvsroot/webnotes/webnotes
In directory usw-pr-cvs1:/tmp/cvs-serv18678
Added Files:
admin_manage_users_add.php admin_manage_users_add_page.php
Log Message:
added the add user pages
--- NEW FILE: admin_manage_users_add.php ---
<?php
# phpWebNotes - a php based note addition system
# Copyright (C) 2000-2002 Webnotes Team - web...@so...
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Id: admin_manage_users_add.php,v 1.1 2002/09/30 04:59:15 prescience Exp $
# --------------------------------------------------------
require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' );
login_cookie_check();
access_ensure_check_action( ACTION_USERS_ADD );
$f_user_id = gpc_get( 'f_user_id' );
$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' );
$f_enabled = gpc_get( 'f_enabled' );
#user_add( $f_user_id, $f_email, $f_password, $f_password_confirm, $f_access_level, $f_enabled );
util_header_redirect( $g_admin_manage_users );
?>
--- NEW FILE: admin_manage_users_add_page.php ---
<?php
# phpWebNotes - a php based note addition system
# Copyright (C) 2000-2002 Webnotes Team - web...@so...
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Id: admin_manage_users_add_page.php,v 1.1 2002/09/30 04:59:15 prescience Exp $
# --------------------------------------------------------
require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' );
login_cookie_check();
access_ensure_check_action( ACTION_USERS_ADD );
print_html_top();
print_head_top();
print_title( $g_window_title );
print_css( $g_css_inc_file );
print_head_bottom();
print_body_top();
print_header( $g_page_title );
print_top_page( $g_top_page_inc );
print_admin_menu();
# @@@ Need to LOCALIZE text
?>
<div align="center">
<form method="post" action="<?php echo $g_admin_manage_users_add ?>">
<table>
<tr>
<th colspan="2">
Update User
</th>
</tr>
<tr>
<td>
Username
</td>
<td>
<?php echo $v_username ?>
</td>
</tr>
<tr>
<td>
Email
</td>
<td>
<input type="text" name="f_email" value="" />
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<input type="password" name="f_password" value="" />
</td>
</tr>
<tr>
<td>
Password Confirm
</td>
<td>
<input type="password" name="f_password_confirm" value="" />
</td>
</tr>
<tr>
<td>
Access Level
</td>
<td>
<input type="text" name="f_access_level" value="" />
</td>
</tr>
<tr>
<td>
Enabled
</td>
<td>
<input type="checkbox" name="f_enabled" checked="checked" ?> />
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" value="Add User" />
</td>
</tr>
</table>
</form>
</div>
<?php
print_footer( __FILE__ );
print_bottom_page( $g_bottom_page_inc );
print_body_bottom();
print_html_bottom();
?>
|