You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(240) |
Oct
(66) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
From: <pre...@us...> - 2002-10-01 03:06:25
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv32174 Modified Files: admin_manage_users_add_page.php admin_manage_users_edit.php Log Message: added an option list method for the access levels. Index: admin_manage_users_add_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_add_page.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- admin_manage_users_add_page.php 30 Sep 2002 05:04:29 -0000 1.2 +++ admin_manage_users_add_page.php 1 Oct 2002 03:06:22 -0000 1.3 @@ -72,7 +72,9 @@ Access Level </td> <td> - <input type="text" name="f_access_level" value="" /> + <select name="f_access_level"> + <?php html_option_list_access_level( REGISTERED ) ?> + </select> </td> </tr> <tr> Index: admin_manage_users_edit.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_edit.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- admin_manage_users_edit.php 1 Oct 2002 02:21:54 -0000 1.4 +++ admin_manage_users_edit.php 1 Oct 2002 03:06:22 -0000 1.5 @@ -77,7 +77,9 @@ Access Level </td> <td> - <input type="text" name="f_access_level" value="<?php echo $v_access_level ?>" /> + <select name="f_access_level"> + <?php html_option_list_access_level( $v_access_level ) ?> + </select> </td> </tr> <tr> |
From: <pre...@us...> - 2002-10-01 02:21:57
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv14753 Modified Files: admin_manage_users_delete_page.php admin_manage_users_edit.php Log Message: fixed user delete Index: admin_manage_users_delete_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_delete_page.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- admin_manage_users_delete_page.php 30 Sep 2002 04:40:51 -0000 1.2 +++ admin_manage_users_delete_page.php 1 Oct 2002 02:21:54 -0000 1.3 @@ -32,7 +32,7 @@ <br /> <br /> <form method="post" action="<?php echo $g_admin_manage_users_delete ?>"> - <input type="hidden" name="f_user_id" value="?php echo $f_user_id ?>" /> + <input type="hidden" name="f_user_id" value="<?php echo $f_user_id ?>" /> <input type="submit" value="Delete User" /> </form> </div> Index: admin_manage_users_edit.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_edit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- admin_manage_users_edit.php 1 Oct 2002 02:20:43 -0000 1.3 +++ admin_manage_users_edit.php 1 Oct 2002 02:21:54 -0000 1.4 @@ -102,7 +102,7 @@ <br /> <br /> <form method="post" action="<?php echo $g_admin_manage_users_delete_page ?>"> -<input type="hidden" name="f_user_id" value="?php echo $f_user_id ?>" /> +<input type="hidden" name="f_user_id" value="<?php echo $f_user_id ?>" /> <input type="submit" value="Delete User" /> </form> |
From: <pre...@us...> - 2002-10-01 02:20:48
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv14313/core Modified Files: user_api.php Log Message: fixed user update Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- user_api.php 1 Oct 2002 02:08:47 -0000 1.13 +++ user_api.php 1 Oct 2002 02:20:43 -0000 1.14 @@ -203,7 +203,7 @@ password='$c_password', access_level='$c_access_level', enabled='$p_enabled' - WHERE id='$c_enabled'"; + WHERE id='$p_user_id'"; return db_query( $query ); } ### -------------------- |
From: <pre...@us...> - 2002-10-01 02:20:47
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv14313 Modified Files: admin_manage_users_edit.php admin_manage_users_update.php Log Message: fixed user update Index: admin_manage_users_edit.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_edit.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- admin_manage_users_edit.php 30 Sep 2002 04:40:51 -0000 1.2 +++ admin_manage_users_edit.php 1 Oct 2002 02:20:43 -0000 1.3 @@ -33,7 +33,7 @@ ?> <div align="center"> <form method="post" action="<?php echo $g_admin_manage_users_update ?>"> -<input type="hidden" name="f_user_id" value="?php echo $v_id ?>" /> +<input type="hidden" name="f_user_id" value="<?php echo $v_id ?>" /> <table> <tr> <th colspan="2"> Index: admin_manage_users_update.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_update.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- admin_manage_users_update.php 1 Oct 2002 00:17:56 -0000 1.3 +++ admin_manage_users_update.php 1 Oct 2002 02:20:43 -0000 1.4 @@ -25,6 +25,13 @@ util_header_redirect( $g_admin_manage_users_edit.'?f_user_id='.$f_user_id ); } + + if ( isset( $f_enabled ) ) { + $f_enabled = 1; + } else { + $f_enabled = 0; + } + user_update( $f_user_id, $f_email, $f_password, $f_access_level, $f_enabled ); util_header_redirect( $g_admin_manage_users ); |
From: <pre...@us...> - 2002-10-01 02:08:51
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv9325/core Modified Files: user_api.php Log Message: fixed user_create to honor access_level Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- user_api.php 1 Oct 2002 00:17:57 -0000 1.12 +++ user_api.php 1 Oct 2002 02:08:47 -0000 1.13 @@ -36,8 +36,8 @@ $t_cookie_string = create_cookie_string( $t_seed ); $c_cookie_string = db_prepare_string( $t_cookie_string ); - $query = "INSERT INTO phpWN_user_table (username, password, email, cookie_string, enabled) - VALUES ('$c_username', '$c_encrypted_password', '$c_email', '$c_cookie_string', 1)"; + $query = "INSERT INTO phpWN_user_table (username, password, email, cookie_string, access_level, enabled) + VALUES ('$c_username', '$c_encrypted_password', '$c_email', '$c_cookie_string', '$p_access_level', 1)"; $result = mysql_query($query); return( false !== $result ); |
From: <pre...@us...> - 2002-10-01 00:18:01
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv2218 Modified Files: admin_manage_users.php admin_manage_users_add.php admin_manage_users_delete.php admin_manage_users_update.php Log Message: more updates for user management Index: admin_manage_users.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- admin_manage_users.php 30 Sep 2002 05:04:29 -0000 1.7 +++ admin_manage_users.php 1 Oct 2002 00:17:56 -0000 1.8 @@ -41,7 +41,7 @@ } echo '</tbody></table>'; echo '<br />'; - echo "<a href=\"$g_admin_manage_users_add_page\">Add User</a>"; + echo link_create( $g_admin_manage_users_add_page, 'Add User' ); #echo '</div>'; # @@@ LOCALIZE Index: admin_manage_users_add.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_add.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- admin_manage_users_add.php 30 Sep 2002 05:04:29 -0000 1.2 +++ admin_manage_users_add.php 1 Oct 2002 00:17:56 -0000 1.3 @@ -21,7 +21,11 @@ $f_access_level = gpc_get( 'f_access_level' ); $f_enabled = gpc_get( 'f_enabled' ); - #user_add( $f_username, $f_email, $f_password, $f_password_confirm, $f_access_level, $f_enabled ); + if ( $f_password != $f_password_confirm ) { + util_header_redirect( $g_admin_manage_users_add_page ); + } + + user_create( $f_username, $f_password, $f_email, $f_access_level, $f_enabled ); util_header_redirect( $g_admin_manage_users ); ?> Index: admin_manage_users_delete.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_delete.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- admin_manage_users_delete.php 30 Sep 2002 04:40:51 -0000 1.2 +++ admin_manage_users_delete.php 1 Oct 2002 00:17:56 -0000 1.3 @@ -15,7 +15,7 @@ access_ensure_check_action( ACTION_USERS_DELETE ); $f_user_id = gpc_get( 'f_user_id' ); - #user_dlete( $f_user_id ); + user_delete( $f_user_id ); util_header_redirect( $g_admin_manage_users ); ?> Index: admin_manage_users_update.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_update.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- admin_manage_users_update.php 30 Sep 2002 04:40:51 -0000 1.2 +++ admin_manage_users_update.php 1 Oct 2002 00:17:56 -0000 1.3 @@ -21,7 +21,11 @@ $f_access_level = gpc_get( 'f_access_level' ); $f_enabled = gpc_get( 'f_enabled' ); - #user_update( $f_user_id, $f_email, $f_password, $f_password_confirm, $f_access_level, $f_enabled ); + if ( $f_password != $f_password_confirm ) { + util_header_redirect( $g_admin_manage_users_edit.'?f_user_id='.$f_user_id ); + } + + user_update( $f_user_id, $f_email, $f_password, $f_access_level, $f_enabled ); util_header_redirect( $g_admin_manage_users ); ?> |
From: <pre...@us...> - 2002-10-01 00:18:01
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv2218/core Modified Files: config_defaults_inc.php link_api.php user_api.php Log Message: more updates for user management Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_defaults_inc.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- config_defaults_inc.php 30 Sep 2002 01:32:14 -0000 1.9 +++ config_defaults_inc.php 1 Oct 2002 00:17:56 -0000 1.10 @@ -93,7 +93,7 @@ ### Customize this file for the add message page $g_note_add_include = 'note_add_msg_inc.php'; - + ### Replace :) with icons [ON] or leave as text [OFF] $g_enable_smileys = ON; @@ -106,7 +106,7 @@ $g_header_color = '#bbddff'; #################################### - # CACHING / OPTIMISATION SETTINGS + # CACHING / OPTIMISATION SETTINGS #################################### # minutes to wait before document is stale (in minutes) @@ -123,9 +123,9 @@ ######################## $g_auto_accept_notes = OFF; - + ################################ - # SECURITY AND AUTHENTICATION + # SECURITY AND AUTHENTICATION ################################ # AUTH_MD5, AUTH_CRYPT, AUTH_PLAIN @@ -217,4 +217,4 @@ # status from $g_status_index-1 to 79 are used for the onboard customization (if enabled) # directly use Mantis to edit them. $g_access_levels_enum_string = '10:anonymous,40:registered,70:moderator,90:administrator'; -?> +?> \ No newline at end of file Index: link_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/link_api.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- link_api.php 21 Sep 2002 02:44:33 -0000 1.6 +++ link_api.php 1 Oct 2002 00:17:57 -0000 1.7 @@ -13,7 +13,7 @@ ########################################################################### ### -------------------- - function link_create( $p_url, $p_caption, $p_link_active, $p_prefix = '[ ', $p_suffix = ' ]' ) { + function link_create( $p_url, $p_caption, $p_link_active=true, $p_prefix = '[ ', $p_suffix = ' ]' ) { if ( !empty( $p_url ) || (false === p_link_active) ) { return "$p_prefix<a href=\"$p_url\">$p_caption</a>$p_suffix"; } else { Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- user_api.php 30 Sep 2002 02:34:34 -0000 1.11 +++ user_api.php 1 Oct 2002 00:17:57 -0000 1.12 @@ -28,9 +28,9 @@ $p_access_level = REGISTERED; # @@@@ Move to config. } - $c_username = db_prepare_string( $p_username ); - $c_email = db_prepare_string( $p_email ); - $c_encrypted_password = db_prepare_string( access_encrypt_password( $p_password ) ); + $c_username = db_prepare_string( $p_username ); + $c_email = db_prepare_string( $p_email ); + $c_encrypted_password = db_prepare_string( access_encrypt_password( $p_password ) ); $t_seed = $p_email . $p_username; $t_cookie_string = create_cookie_string( $t_seed ); @@ -151,7 +151,7 @@ return db_fetch_array( $result ); } ### -------------------- - # $p_where is constructed using user_where_*(). + # $p_where is constructed using user_where_*(). function user_change_password( $p_where, $p_old_password, $p_new_password, $p_verify_password = null ) { $t_user = user_get_info( $p_where ); if ( false === $t_user ) { @@ -181,4 +181,38 @@ return true; } + ### -------------------- + # we assume that the password has been checked for accuracy + # we assume that the enabled value is 0 or 1 + function user_update( $p_user_id, $p_email, $p_password, $p_access_level, $p_enabled ) { + global $g_phpWN_user_table; + + if ( empty( $p_password ) ) { + $t_user_row = user_get_row( $p_user_id ); + $c_password = $t_user_row['password']; + } else { + $c_password = db_prepare_string( access_encrypt_password( $p_password ) ); + } + + $c_email = db_prepare_string( $p_email ); + $c_access_level = db_prepare_string( $p_access_level ); + $c_enabled = db_prepare_string( $p_enabled ); + + $query = "UPDATE $g_phpWN_user_table + SET email='$c_email', + password='$c_password', + access_level='$c_access_level', + enabled='$p_enabled' + WHERE id='$c_enabled'"; + return db_query( $query ); + } + ### -------------------- + function user_delete( $p_user_id ) { + global $g_phpWN_user_table; + + $query = "DELETE FROM $g_phpWN_user_table + WHERE id='$p_user_id'"; + return db_query( $query ); + } + ### -------------------- ?> |
From: <pre...@us...> - 2002-09-30 05:04:32
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv19854 Modified Files: admin_manage_users.php admin_manage_users_add.php admin_manage_users_add_page.php Log Message: more add user modificaitons... still only stubs, user_add/update/delete functions need to be written. Index: admin_manage_users.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- admin_manage_users.php 30 Sep 2002 04:40:51 -0000 1.6 +++ admin_manage_users.php 30 Sep 2002 05:04:29 -0000 1.7 @@ -40,7 +40,10 @@ echo "<tr bgcolor=\"$t_color\"><td><a href=\"$g_admin_manage_users_edit?f_user_id=$v_id\">$v_username</a></td><td>$v_email</td><td>$t_access_level</td><td>$v_enabled</td></tr>"; } echo '</tbody></table>'; + echo '<br />'; + echo "<a href=\"$g_admin_manage_users_add_page\">Add User</a>"; #echo '</div>'; + # @@@ LOCALIZE print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); Index: admin_manage_users_add.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_add.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_manage_users_add.php 30 Sep 2002 04:59:15 -0000 1.1 +++ admin_manage_users_add.php 30 Sep 2002 05:04:29 -0000 1.2 @@ -14,14 +14,14 @@ access_ensure_check_action( ACTION_USERS_ADD ); - $f_user_id = gpc_get( 'f_user_id' ); + $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' ); $f_enabled = gpc_get( 'f_enabled' ); - #user_add( $f_user_id, $f_email, $f_password, $f_password_confirm, $f_access_level, $f_enabled ); + #user_add( $f_username, $f_email, $f_password, $f_password_confirm, $f_access_level, $f_enabled ); util_header_redirect( $g_admin_manage_users ); ?> Index: admin_manage_users_add_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_add_page.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_manage_users_add_page.php 30 Sep 2002 04:59:15 -0000 1.1 +++ admin_manage_users_add_page.php 30 Sep 2002 05:04:29 -0000 1.2 @@ -40,7 +40,7 @@ Username </td> <td> - <?php echo $v_username ?> + <input type="text" name="f_username" value="" /> </td> </tr> <tr> @@ -80,7 +80,7 @@ Enabled </td> <td> - <input type="checkbox" name="f_enabled" checked="checked" ?> /> + <input type="checkbox" name="f_enabled" checked="checked" /> </td> </tr> <tr> |
From: <pre...@us...> - 2002-09-30 04:59:20
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv18678/core Modified Files: api.php Log Message: added the add user pages Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- api.php 30 Sep 2002 02:36:41 -0000 1.28 +++ api.php 30 Sep 2002 04:59:16 -0000 1.29 @@ -37,6 +37,8 @@ $g_admin_view_queue = $g_web_directory . 'admin_view_queue' . $g_ext; $g_admin_manage_notes = $g_web_directory . 'admin_manage_notes' . $g_ext; $g_admin_manage_users = $g_web_directory . 'admin_manage_users' . $g_ext; + $g_admin_manage_users_add_page = $g_web_directory . 'admin_manage_users_add_page' . $g_ext; + $g_admin_manage_users_add = $g_web_directory . 'admin_manage_users_add' . $g_ext; $g_admin_manage_users_edit = $g_web_directory . 'admin_manage_users_edit' . $g_ext; $g_admin_manage_users_update = $g_web_directory . 'admin_manage_users_update' . $g_ext; $g_admin_manage_users_delete = $g_web_directory . 'admin_manage_users_delete' . $g_ext; |
From: <pre...@us...> - 2002-09-30 04:59:20
|
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(); ?> |
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv15371 Modified Files: admin_manage_users.php admin_manage_users_delete.php admin_manage_users_delete_page.php admin_manage_users_edit.php admin_manage_users_update.php Log Message: more stubs put in place for manage users. Index: admin_manage_users.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- admin_manage_users.php 30 Sep 2002 02:38:12 -0000 1.5 +++ admin_manage_users.php 30 Sep 2002 04:40:51 -0000 1.6 @@ -37,7 +37,7 @@ $v_enabled = $v_enabled ? 'x' : ' '; $t_color = util_alternate_colors( $i++ ); $t_access_level = enum_get_element( 'access_levels', $v_access_level ); - echo "<tr bgcolor=\"$t_color\"><td><a href=\"$g_admin_manage_users_edit?f_id=$v_id\">$v_username</a></td><td>$v_email</td><td>$t_access_level</td><td>$v_enabled</td></tr>"; + echo "<tr bgcolor=\"$t_color\"><td><a href=\"$g_admin_manage_users_edit?f_user_id=$v_id\">$v_username</a></td><td>$v_email</td><td>$t_access_level</td><td>$v_enabled</td></tr>"; } echo '</tbody></table>'; #echo '</div>'; Index: admin_manage_users_delete.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_delete.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_manage_users_delete.php 30 Sep 2002 02:38:12 -0000 1.1 +++ admin_manage_users_delete.php 30 Sep 2002 04:40:51 -0000 1.2 @@ -14,5 +14,8 @@ access_ensure_check_action( ACTION_USERS_DELETE ); + $f_user_id = gpc_get( 'f_user_id' ); + #user_dlete( $f_user_id ); + util_header_redirect( $g_admin_manage_users ); ?> Index: admin_manage_users_delete_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_delete_page.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_manage_users_delete_page.php 30 Sep 2002 02:38:12 -0000 1.1 +++ admin_manage_users_delete_page.php 30 Sep 2002 04:40:51 -0000 1.2 @@ -25,7 +25,18 @@ print_admin_menu(); - + $f_user_id = gpc_get( 'f_user_id' ); +?> +<div align="center"> +Are you sure you want to delete this user? +<br /> +<br /> + <form method="post" action="<?php echo $g_admin_manage_users_delete ?>"> + <input type="hidden" name="f_user_id" value="?php echo $f_user_id ?>" /> + <input type="submit" value="Delete User" /> + </form> +</div> +<?php print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); Index: admin_manage_users_edit.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_edit.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_manage_users_edit.php 30 Sep 2002 02:38:12 -0000 1.1 +++ admin_manage_users_edit.php 30 Sep 2002 04:40:51 -0000 1.2 @@ -25,13 +25,15 @@ print_admin_menu(); - $f_id = gpc_get( 'f_id' ); - $t_user_array = user_get_row( $f_id ); + $f_user_id = gpc_get( 'f_user_id' ); + $t_user_array = user_get_row( $f_user_id ); extract( $t_user_array, EXTR_PREFIX_ALL, 'v' ); + + # @@@ Need to LOCALIZE text ?> -<div algin="center"> +<div align="center"> <form method="post" action="<?php echo $g_admin_manage_users_update ?>"> -<input type="hidden" name="f_id" value="?php echo $v_id ?>" /> +<input type="hidden" name="f_user_id" value="?php echo $v_id ?>" /> <table> <tr> <th colspan="2"> @@ -97,6 +99,13 @@ </tr> </table> </form> +<br /> +<br /> +<form method="post" action="<?php echo $g_admin_manage_users_delete_page ?>"> +<input type="hidden" name="f_user_id" value="?php echo $f_user_id ?>" /> +<input type="submit" value="Delete User" /> +</form> + </div> <?php print_footer( __FILE__ ); Index: admin_manage_users_update.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users_update.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_manage_users_update.php 30 Sep 2002 02:38:12 -0000 1.1 +++ admin_manage_users_update.php 30 Sep 2002 04:40:51 -0000 1.2 @@ -14,5 +14,14 @@ access_ensure_check_action( ACTION_USERS_EDIT ); + $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_update( $f_user_id, $f_email, $f_password, $f_password_confirm, $f_access_level, $f_enabled ); + util_header_redirect( $g_admin_manage_users ); ?> |
From: <ro...@us...> - 2002-09-30 04:40:33
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv15103 Modified Files: download.php Log Message: go direct to download file Index: download.php =================================================================== RCS file: /cvsroot/webnotes/web/download.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- download.php 30 Sep 2002 04:34:51 -0000 1.6 +++ download.php 30 Sep 2002 04:40:30 -0000 1.7 @@ -7,8 +7,8 @@ <span class="center_link"> <p align="center"><a href="http://sourceforge.net/project/showfiles.php?group_id=15381">Download phpWebNotes</a></p> -<p align="center"><a href="http://www.extremeserv-linux.com/downloads/misc/phpwebnotescvs/">Download phpWebNotes CVS SNAPs</a></p> -</span> +<p align="center"><a +href="http://www.extremeserv-linux.com/downloads/misc/phpwebnotescvs/phpWebNotes-LatestSNAP.tar.gz">Download Latest phpWebNotes CVS SNAP</a></p> </span> <p>Please check out the <a href="release.php">Release Notes</a> for important notices and information.</p> |
From: <ro...@us...> - 2002-09-30 04:36:48
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv14603 Modified Files: bugtracker.php Log Message: Use relative paths, not full paths Index: bugtracker.php =================================================================== RCS file: /cvsroot/webnotes/web/bugtracker.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- bugtracker.php 9 Sep 2002 00:35:44 -0000 1.4 +++ bugtracker.php 30 Sep 2002 04:36:45 -0000 1.5 @@ -2,6 +2,6 @@ <span class="page_title">Bugtracker</span> <hr size="1" noshade="noshade" width="100%"> <p>phpWebNotes uses Mantis Bugtracker to track bugs and feature requests. -Signup and <a href="http://webnotes.sf.net/mantis">login</a> now to submit bugs and feature requests.</p> +Signup and <a href="/mantis/">login</a> now to submit bugs and feature requests.</p> <p>Thanks for <a href="http://mantisbt.sf.net">Mantis</a> team for developing such an excellent tool.</p> <?php include('footer.php') ?> |
From: <ro...@us...> - 2002-09-30 04:34:54
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv14217 Modified Files: download.php Log Message: Add link to CVS SNAPs Index: download.php =================================================================== RCS file: /cvsroot/webnotes/web/download.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- download.php 12 Sep 2002 22:10:09 -0000 1.5 +++ download.php 30 Sep 2002 04:34:51 -0000 1.6 @@ -7,6 +7,7 @@ <span class="center_link"> <p align="center"><a href="http://sourceforge.net/project/showfiles.php?group_id=15381">Download phpWebNotes</a></p> +<p align="center"><a href="http://www.extremeserv-linux.com/downloads/misc/phpwebnotescvs/">Download phpWebNotes CVS SNAPs</a></p> </span> <p>Please check out the <a href="release.php">Release Notes</a> for important notices and information.</p> @@ -14,4 +15,4 @@ <span class="section">Mirroring</span> <p>It is recommended to sign up on the <a href="mailinglists.php">announcements</a> mailing list, if you wish to mirror the software. You should also have a link back to this page.</p> -<?php include('footer.php') ?> \ No newline at end of file +<?php include('footer.php') ?> |
From: <ro...@us...> - 2002-09-30 04:30:49
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv13435 Modified Files: cvs.php Log Message: Add link to CVS SNAPs Index: cvs.php =================================================================== RCS file: /cvsroot/webnotes/web/cvs.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- cvs.php 12 Sep 2002 22:10:09 -0000 1.4 +++ cvs.php 30 Sep 2002 04:30:46 -0000 1.5 @@ -7,5 +7,8 @@ <span class="center_link"> <p align="center"><a href="http://sourceforge.net/cvs/?group_id=15381">phpWebNotes CVS</a></p> </span> +<span class="center_link"> +<p align="center"><a href="http://www.extremeserv-linux.com/downloads/misc/phpwebnotescvs/">phpWebNotes CVS SNAPs</a></p> +</span> <?php include('footer.php') ?> |
From: <vb...@us...> - 2002-09-30 02:40:54
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv9697/core Modified Files: string_api.php Log Message: - Detecting icq://999999 in the e-mail and note and adding next to them the online status indicator. This is also hyper-linked to the unified messaging page of the user with the specified icq number. Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- string_api.php 30 Sep 2002 01:32:14 -0000 1.11 +++ string_api.php 30 Sep 2002 02:40:51 -0000 1.12 @@ -103,10 +103,15 @@ return ($p_note_string); } ### -------------------- + function string_icq_status( $p_note_string ) { + return (preg_replace("/icq:\/\/([0-9]+)/", "<a href=\"http://web.icq.com/wwp?Uin=\\1\">\\0<img src=\"http://web.icq.com/whitepages/online?icq=\\1&img=5\" width=\"18\" height=\"18\" /></a>", $p_note_string )); + } + ### -------------------- function string_prepare_note_for_viewing( $p_note_string, $p_url = null ) { $p_note_string = htmlspecialchars( $p_note_string ); $p_note_string = string_preserve_spaces_at_bol( $p_note_string ); $p_note_string = string_hyperlink( $p_note_string ); + $p_note_string = string_icq_status( $p_note_string ); if ( null !== $p_url ) { $p_note_string = string_add_note_links( $p_url, $p_note_string ); } |
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv9087 Modified Files: admin_manage_users.php Added Files: admin_manage_users_delete.php admin_manage_users_delete_page.php admin_manage_users_edit.php admin_manage_users_update.php Log Message: initial checkin of user management code. not functional. --- NEW FILE: admin_manage_users_delete.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_delete.php,v 1.1 2002/09/30 02:38:12 prescience Exp $ # -------------------------------------------------------- require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); login_cookie_check(); access_ensure_check_action( ACTION_USERS_DELETE ); util_header_redirect( $g_admin_manage_users ); ?> --- NEW FILE: admin_manage_users_delete_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_delete_page.php,v 1.1 2002/09/30 02:38:12 prescience Exp $ # -------------------------------------------------------- require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); login_cookie_check(); access_ensure_check_action( ACTION_USERS_DELETE ); 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(); print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); print_html_bottom(); ?> --- NEW FILE: admin_manage_users_edit.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_edit.php,v 1.1 2002/09/30 02:38:12 prescience Exp $ # -------------------------------------------------------- require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); login_cookie_check(); access_ensure_check_action( ACTION_USERS_EDIT ); 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(); $f_id = gpc_get( 'f_id' ); $t_user_array = user_get_row( $f_id ); extract( $t_user_array, EXTR_PREFIX_ALL, 'v' ); ?> <div algin="center"> <form method="post" action="<?php echo $g_admin_manage_users_update ?>"> <input type="hidden" name="f_id" value="?php echo $v_id ?>" /> <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="<?php echo $v_email ?>" /> </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="<?php echo $v_access_level ?>" /> </td> </tr> <tr> <td> Enabled </td> <td> <input type="checkbox" name="f_enabled" <?php if ( 1 == $v_enabled ) echo 'checked="checked"' ?> /> </td> </tr> <tr> <td> </td> <td> <input type="submit" value="Update User" /> <?php # @@@ LOCALIZE ?> </td> </tr> </table> </form> </div> <?php print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); print_html_bottom(); ?> --- NEW FILE: admin_manage_users_update.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_update.php,v 1.1 2002/09/30 02:38:12 prescience Exp $ # -------------------------------------------------------- require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); login_cookie_check(); access_ensure_check_action( ACTION_USERS_EDIT ); util_header_redirect( $g_admin_manage_users ); ?> Index: admin_manage_users.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_users.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- admin_manage_users.php 21 Sep 2002 02:44:32 -0000 1.4 +++ admin_manage_users.php 30 Sep 2002 02:38:12 -0000 1.5 @@ -30,14 +30,14 @@ #echo '<div class="pwn-box" align="center">'; echo '<table class="pwn-width100" border="0" width="95%" cellspacing="0">'; - echo "<thead><tr class=\"pwn-category\"><td>User Name</td><td>Email</td><td>Access Level</td><td>Enabled</td></tr></thead><tbody>"; + echo '<thead><tr class="pwn-category"><td></td><td>Email</td><td>Access Level</td><td>Enabled</td></tr></thead><tbody>'; $i = 0; foreach ( $t_users_array as $user ) { extract( $user, EXTR_PREFIX_ALL, 'v' ); $v_enabled = $v_enabled ? 'x' : ' '; $t_color = util_alternate_colors( $i++ ); $t_access_level = enum_get_element( 'access_levels', $v_access_level ); - echo "<tr bgcolor=\"$t_color\"><td>$v_username</td><td>$v_email</td><td>$t_access_level</td><td>$v_enabled</td></tr>"; + echo "<tr bgcolor=\"$t_color\"><td><a href=\"$g_admin_manage_users_edit?f_id=$v_id\">$v_username</a></td><td>$v_email</td><td>$t_access_level</td><td>$v_enabled</td></tr>"; } echo '</tbody></table>'; #echo '</div>'; |
From: <pre...@us...> - 2002-09-30 02:36:45
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv8751/core Modified Files: api.php Log Message: added new user management files Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- api.php 20 Sep 2002 04:17:43 -0000 1.27 +++ api.php 30 Sep 2002 02:36:41 -0000 1.28 @@ -24,30 +24,34 @@ if ( file_exists( $t_custom_config ) ) { require_once( $t_custom_config ); } - + # Filenames - $g_login = $g_web_directory . 'login' . $g_ext; - $g_login_page = $g_web_directory . 'login_page' . $g_ext; - $g_login_success_page = $g_web_directory . 'admin' . $g_ext; - $g_logout = $g_web_directory . 'logout' . $g_ext; - $g_logout_redirect_page = $g_web_directory; - $g_signup_page = $g_web_directory . 'signup_page' . $g_ext; + $g_login = $g_web_directory . 'login' . $g_ext; + $g_login_page = $g_web_directory . 'login_page' . $g_ext; + $g_login_success_page = $g_web_directory . 'admin' . $g_ext; + $g_logout = $g_web_directory . 'logout' . $g_ext; + $g_logout_redirect_page = $g_web_directory; + $g_signup_page = $g_web_directory . 'signup_page' . $g_ext; - $g_admin_index_files = $g_web_directory . 'admin_index_files' . $g_ext; - $g_admin_view_queue = $g_web_directory . 'admin_view_queue' . $g_ext; - $g_admin_manage_notes = $g_web_directory . 'admin_manage_notes' . $g_ext; - $g_admin_manage_users = $g_web_directory . 'admin_manage_users' . $g_ext; - $g_admin_change_password = $g_web_directory . 'admin_change_password' . $g_ext; + $g_admin_index_files = $g_web_directory . 'admin_index_files' . $g_ext; + $g_admin_view_queue = $g_web_directory . 'admin_view_queue' . $g_ext; + $g_admin_manage_notes = $g_web_directory . 'admin_manage_notes' . $g_ext; + $g_admin_manage_users = $g_web_directory . 'admin_manage_users' . $g_ext; + $g_admin_manage_users_edit = $g_web_directory . 'admin_manage_users_edit' . $g_ext; + $g_admin_manage_users_update = $g_web_directory . 'admin_manage_users_update' . $g_ext; + $g_admin_manage_users_delete = $g_web_directory . 'admin_manage_users_delete' . $g_ext; + $g_admin_manage_users_delete_page = $g_web_directory . 'admin_manage_users_delete_page' . $g_ext; + $g_admin_change_password = $g_web_directory . 'admin_change_password' . $g_ext; - $g_user_home_page = $g_web_directory . 'user_home_page' . $g_ext; - $g_admin_page = $g_user_home_page; + $g_user_home_page = $g_web_directory . 'user_home_page' . $g_ext; + $g_admin_page = $g_user_home_page; - $g_css_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'css_inc' . $g_ext; - $g_meta_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'meta_inc' . $g_ext; + $g_css_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'css_inc' . $g_ext; + $g_meta_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'meta_inc' . $g_ext; - $g_note_add_page = $g_web_directory . 'note_add_page' . $g_ext; - $g_note_preview_page = $g_web_directory . 'note_preview_page' . $g_ext; - $g_note_add = $g_web_directory . 'note_add' . $g_ext; + $g_note_add_page = $g_web_directory . 'note_add_page' . $g_ext; + $g_note_preview_page = $g_web_directory . 'note_preview_page' . $g_ext; + $g_note_add = $g_web_directory . 'note_add' . $g_ext; $t_path_lang = $t_path_main . 'lang' . DIRECTORY_SEPARATOR; require_once( $t_path_lang . 'strings_english' . $g_ext ); @@ -67,10 +71,10 @@ require_once( $t_path_core . 'link_api.php' ); require_once( $t_path_core . 'util_api.php' ); require_once( $t_path_core . 'gpc_api.php' ); - require_once( $t_path_core . 'email_api.php' ); - require_once( $t_path_core . 'enum_api.php' ); - require_once( $t_path_core . 'pwn_api.php' ); - require_once( $t_path_main . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $g_theme . + require_once( $t_path_core . 'email_api.php' ); + require_once( $t_path_core . 'enum_api.php' ); + require_once( $t_path_core . 'pwn_api.php' ); + require_once( $t_path_main . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $g_theme . DIRECTORY_SEPARATOR . 'theme_api.php' ); # Cookies |
From: <pre...@us...> - 2002-09-30 02:34:38
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv8365/core Modified Files: user_api.php Log Message: added user_get_row function Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- user_api.php 26 Sep 2002 12:29:30 -0000 1.10 +++ user_api.php 30 Sep 2002 02:34:34 -0000 1.11 @@ -94,7 +94,7 @@ return ("(cookie_string='$c_cookie')"); } ### -------------------- - # The parameter passed to this function is constructed via user_where_*(). + # The parameter passed to this function is constructed via user_where_*(). # $p_where is not cleaned, since it is assume that all the necessary escaping is # done in the function that constructed the where statement. function user_get_info( $p_where ) { @@ -133,6 +133,22 @@ } return $t_users_array; + } + ### -------------------- + function user_get_row( $p_user_id ) { + global $g_phpWN_user_table; + + $t_users_array = array(); + + $query = "SELECT * + FROM $g_phpWN_user_table + WHERE id='$p_user_id'"; + $result = db_query( $query ); + if ( !$result ) { + return false; + } + + return db_fetch_array( $result ); } ### -------------------- # $p_where is constructed using user_where_*(). |
From: <pre...@us...> - 2002-09-30 01:40:27
|
Update of /cvsroot/webnotes/webnotes/sql In directory usw-pr-cvs1:/tmp/cvs-serv28627/sql Modified Files: db_generate.sql Log Message: changed admin to access level 90 Index: db_generate.sql =================================================================== RCS file: /cvsroot/webnotes/webnotes/sql/db_generate.sql,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- db_generate.sql 14 Sep 2002 06:22:03 -0000 1.2 +++ db_generate.sql 30 Sep 2002 01:40:19 -0000 1.3 @@ -51,4 +51,4 @@ # Dumping data for table 'phpWN_user_table' # -INSERT INTO phpWN_user_table VALUES ( '0000000001', 'administrator', 'Wy1r49AOWOdCI', '', '9', '1', '9eCxeTLdGjDpI149f9aca9f0ba076ce2'); \ No newline at end of file +INSERT INTO phpWN_user_table VALUES ( '0000000001', 'administrator', 'Wy1r49AOWOdCI', '', '90', '1', '9eCxeTLdGjDpI149f9aca9f0ba076ce2'); \ No newline at end of file |
From: <vb...@us...> - 2002-09-30 01:32:17
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv26903/core Modified Files: config_defaults_inc.php string_api.php Log Message: - Changed the default theme to phpnet, since classic no longer exists. - 0000061: http://xxxx should be converted to hyperlinks - 0000070: mailto:xxxx should be hyperlinked Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_defaults_inc.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- config_defaults_inc.php 29 Sep 2002 13:51:37 -0000 1.8 +++ config_defaults_inc.php 30 Sep 2002 01:32:14 -0000 1.9 @@ -89,7 +89,7 @@ $g_language = 'english'; ### Theme to be used - $g_theme = 'classic'; + $g_theme = 'phpnet'; ### Customize this file for the add message page $g_note_add_include = 'note_add_msg_inc.php'; Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- string_api.php 26 Sep 2002 13:17:37 -0000 1.10 +++ string_api.php 30 Sep 2002 01:32:14 -0000 1.11 @@ -97,12 +97,22 @@ return ( $p_note ); } ### -------------------- + function string_hyperlink( $p_note_string ) { + $p_note_string = preg_replace("/(http:\/\/[0-9a-zA-Z\-\._]+)/", "<a href=\"\\1\">\\1</a>", $p_note_string); + $p_note_string = preg_replace("/(mailto:[0-9a-zA-Z\-\._@]+)/", "<a href=\"\\1\">\\1</a>", $p_note_string); + return ($p_note_string); + } + ### -------------------- function string_prepare_note_for_viewing( $p_note_string, $p_url = null ) { + $p_note_string = htmlspecialchars( $p_note_string ); + $p_note_string = string_preserve_spaces_at_bol( $p_note_string ); + $p_note_string = string_hyperlink( $p_note_string ); if ( null !== $p_url ) { - return( string_emotions( string_add_note_links( $p_url, string_preserve_spaces_at_bol( htmlspecialchars( $p_note_string ) ) ) ) ); - } else { - return( string_emotions( string_preserve_spaces_at_bol( htmlspecialchars( $p_note_string ) ) ) ); + $p_note_string = string_add_note_links( $p_url, $p_note_string ); } + + $p_note_string = string_emotions( $p_note_string ); + return ($p_note_string); } ### -------------------- ?> |
From: <vb...@us...> - 2002-09-26 22:03:51
|
Update of /cvsroot/webnotes/web In directory usw-pr-cvs1:/tmp/cvs-serv12315 Modified Files: forums.php side_menu.php Added Files: irc.php Log Message: Added IRC page. --- NEW FILE: irc.php --- <?php include('header.php') ?> <span class="page_title">IRC</span> <hr size=1 noshade width="100%"> <p>You can find us on IRC in #webnoteshelp on the <a href="http://www.openprojects.net/irc_servers.shtml">Open Projects Network (OPN)</a>. Click on the links to find a list of servers.</p> <p>Keep in mind that we are probably not going to be around all the time. You can chat in #webnotes to just talk, ask about phpWebNotes, discuss development, etc.</p> <?php include('footer.php') ?> Index: forums.php =================================================================== RCS file: /cvsroot/webnotes/web/forums.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- forums.php 8 Sep 2002 06:12:53 -0000 1.3 +++ forums.php 26 Sep 2002 22:03:48 -0000 1.4 @@ -7,5 +7,5 @@ <li>Open Discussion <li>Help </ul> -<p><a href="http://sourceforge.net/forum/?group_id=15381">SourceForge Forum</a><br></p> +<p><a href="http://sourceforge.net/forum/?group_id=15381">SourceForge Forum</a><br /></p> <?php include('footer.php') ?> Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- side_menu.php 9 Sep 2002 09:35:11 -0000 1.11 +++ side_menu.php 26 Sep 2002 22:03:48 -0000 1.12 @@ -29,7 +29,7 @@ </tr> <tr> <td class="menu_items"> - <!-- IRC<br /> --> + <a href="irc.php">IRC</a><br /> <a href="bugtracker.php">Bugtracker</a><br /> <a href="forums.php">Forums</a><br /> <a href="mailinglists.php">Mailing Lists</a><br /> |
From: <vb...@us...> - 2002-09-26 13:17:40
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv32555/doc Modified Files: ChangeLog Log Message: - 0000065: Emotion icons (added height and width of icons to improve speed) - 0000065: Added $g_enable_smileys. Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ChangeLog 22 Sep 2002 02:47:16 -0000 1.20 +++ ChangeLog 26 Sep 2002 13:17:37 -0000 1.21 @@ -36,6 +36,8 @@ * Added support for prev / next documents. * Added pwn_api.php to act the the main interface to phpWebNotes. * Added support for Last Updated timestamp for pages. + * Added support for emotions icons. + * Added support for the enabled field in the user table. 03.12.2000 - 1.0.0 |
From: <vb...@us...> - 2002-09-26 13:17:40
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv32555/core Modified Files: config_defaults_inc.php string_api.php Log Message: - 0000065: Emotion icons (added height and width of icons to improve speed) - 0000065: Added $g_enable_smileys. Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_defaults_inc.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- config_defaults_inc.php 21 Sep 2002 02:44:33 -0000 1.6 +++ config_defaults_inc.php 26 Sep 2002 13:17:37 -0000 1.7 @@ -94,6 +94,9 @@ ### Customize this file for the add message page $g_note_add_include = 'note_add_msg_inc.php'; + + ### Replace :) with icons [ON] or leave as text [OFF] + $g_enable_smileys = ON; ### Colors $g_table_border_color = '#aaaaaa'; Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- string_api.php 26 Sep 2002 12:54:33 -0000 1.9 +++ string_api.php 26 Sep 2002 13:17:37 -0000 1.10 @@ -68,15 +68,19 @@ } ### -------------------- function string_emotions( $p_note ) { + if ( OFF == config_get( 'enable_smileys' ) ) { + return $p_note; + } + $images_dir = config_get( 'web_directory' ) . 'images/'; - $smile = '<img src="' . $images_dir . 'smile.gif" alt=":)" />'; - $sad = '<img src="' . $images_dir . 'sad.gif" alt=":(" />'; - $wink = '<img src="' . $images_dir . 'wink.gif" alt=";)" />'; - $big_smile = '<img src="' . $images_dir . 'bigsmile.gif" alt=":D" />'; - $cool = '<img src="' . $images_dir . 'cool.gif" alt="8-D" />'; - $mad = '<img src="' . $images_dir . 'mad.gif" alt=">-(" />'; - $shocked = '<img src="' . $images_dir . 'shocked.gif" alt=":-*" />'; + $smile = '<img src="' . $images_dir . 'smile.gif" width="15" height="15" alt=":)" />'; + $sad = '<img src="' . $images_dir . 'sad.gif" width="15" height="15" alt=":(" />'; + $wink = '<img src="' . $images_dir . 'wink.gif" width="15" height="15" alt=";)" />'; + $big_smile = '<img src="' . $images_dir . 'bigsmile.gif" width="15" height="15" alt=":D" />'; + $cool = '<img src="' . $images_dir . 'cool.gif" width="15" height="15" alt="8-D" />'; + $mad = '<img src="' . $images_dir . 'mad.gif" width="15" height="15" alt=">-(" />'; + $shocked = '<img src="' . $images_dir . 'shocked.gif" width="15" height="15" alt=":-*" />'; $p_note = str_replace( ':)', $smile, $p_note ); $p_note = str_replace( ':-)', $smile, $p_note ); |
From: <vb...@us...> - 2002-09-26 12:54:36
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv24780/core Modified Files: string_api.php Log Message: - 0000065: Emotion icons (added rest of emotions) Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- string_api.php 26 Sep 2002 12:29:30 -0000 1.8 +++ string_api.php 26 Sep 2002 12:54:33 -0000 1.9 @@ -74,11 +74,21 @@ $sad = '<img src="' . $images_dir . 'sad.gif" alt=":(" />'; $wink = '<img src="' . $images_dir . 'wink.gif" alt=";)" />'; $big_smile = '<img src="' . $images_dir . 'bigsmile.gif" alt=":D" />'; + $cool = '<img src="' . $images_dir . 'cool.gif" alt="8-D" />'; + $mad = '<img src="' . $images_dir . 'mad.gif" alt=">-(" />'; + $shocked = '<img src="' . $images_dir . 'shocked.gif" alt=":-*" />'; $p_note = str_replace( ':)', $smile, $p_note ); + $p_note = str_replace( ':-)', $smile, $p_note ); $p_note = str_replace( ':(', $sad, $p_note ); + $p_note = str_replace( ':-(', $sad, $p_note ); $p_note = str_replace( ';)', $wink, $p_note ); + $p_note = str_replace( ';-)', $wink, $p_note ); $p_note = str_replace( ':D', $big_smile, $p_note ); + $p_note = str_replace( ':-D', $big_smile, $p_note ); + $p_note = str_replace( '8-)', $cool, $p_note ); + $p_note = str_replace( '>-(', $mad, $p_note ); + $p_note = str_replace( ':-*', $shocked, $p_note ); return ( $p_note ); } |