From: <vb...@us...> - 2002-09-03 06:59:12
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv16194/core Modified Files: api.php Log Message: - Did some updates to the documents and added some extra docs. - Move the db_connect to api.php rather than doing it in all files. - Added the Italian strings from the website - Added the French strings from the website Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- api.php 3 Sep 2002 03:44:36 -0000 1.7 +++ api.php 3 Sep 2002 06:59:08 -0000 1.8 @@ -256,8 +256,6 @@ $g_phpWN_note_table, $g_phpWN_page_table, $p_note_order; - db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name ); - $query = "SELECT * FROM $g_phpWN_page_table p, $g_phpWN_note_table n @@ -686,6 +684,13 @@ } } ### -------------------- + + ########################################################################### + ### CODE TO EXECUTE ### + ########################################################################### + + db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name ); + ########################################################################### ### END ### ########################################################################### |