From: <vb...@us...> - 2002-09-05 22:44:37
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv17588 Added Files: user_api.php util_api.php Log Message: Added user_api.php / util_api.php which were missing from the last commit. --- NEW FILE: user_api.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 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: user_api.php,v 1.1 2002/09/05 22:44:33 vboctor Exp $ # -------------------------------------------------------- ########################################################################### ### USER API ### ########################################################################### ### -------------------- function get_user_info_arr( $p_string_cookie_val ) { global $g_phpWN_user_table; $c_string_cookie_val = db_prepare_string( $p_string_cookie_val ); $query = "SELECT * FROM $g_phpWN_user_table WHERE cookie_string='$c_string_cookie_val'"; $result = db_query( $query ); return db_fetch_array( $result ); } ?> --- NEW FILE: util_api.php --- <?php # phpWebNotes - a php based note addition system # Copyright (C) 2000 Kenzaburo Ito - ke...@30... # 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: util_api.php,v 1.1 2002/09/05 22:44:34 vboctor Exp $ # -------------------------------------------------------- ########################################################################### # Utilities API ########################################################################### ### -------------------- function sql_to_unix_time( $p_timeString ) { return mktime( substr( $p_timeString, 8, 2 ), substr( $p_timeString, 10, 2 ), substr( $p_timeString, 12, 2 ), substr( $p_timeString, 4, 2 ), substr( $p_timeString, 6, 2 ), substr( $p_timeString, 0, 4 ) ); } ### -------------------- ?> |