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: <vb...@us...> - 2002-09-11 14:34:02
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv8432 Modified Files: api.php config_inc.php Log Message: Fixed 0000032: Setting paths/urls for phpWebNotes in custom_config_inc.php is too late. Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- api.php 11 Sep 2002 09:49:54 -0000 1.17 +++ api.php 11 Sep 2002 14:33:58 -0000 1.18 @@ -24,6 +24,26 @@ 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 . 'index' . $g_ext; + $g_logout = $g_web_directory . 'logout' . $g_ext; + $g_logout_redirect_page = $g_web_directory; + + $g_admin_page = $g_web_directory . 'admin' . $g_ext; + $g_admin_index_files = $g_web_directory . 'admin_index_files' . $g_ext; + $g_admin_manage_notes = $g_web_directory . 'admin_manage_notes' . $g_ext; + $g_admin_view_queue = $g_web_directory . 'admin_view_queue' . $g_ext; + $g_admin_pending = $g_web_directory . 'admin_pending' . $g_ext; + $g_admin_change_password = $g_web_directory . 'admin_change_password' . $g_ext; + + $g_css_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'css_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; $t_path_lang = $t_path_main . 'lang' . DIRECTORY_SEPARATOR; require_once( $t_path_lang . 'strings_english' . $g_ext ); Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- config_inc.php 11 Sep 2002 09:49:54 -0000 1.13 +++ config_inc.php 11 Sep 2002 14:33:59 -0000 1.14 @@ -50,33 +50,10 @@ $g_ext = '.php'; ### url directory - $g_web_directory = DIRECTORY_SEPARATOR . 'webnotes' . DIRECTORY_SEPARATOR; + $g_web_directory = '/webnotes/'; ### absolute directory path $g_absolute_directory = dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR; - - - ### 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 . 'index' . $g_ext; - $g_logout = $g_web_directory . 'logout' . $g_ext; - $g_logout_redirect_page = $g_web_directory; - - $g_admin_page = $g_web_directory . 'admin' . $g_ext; - $g_admin_index_files = $g_web_directory . 'admin_index_files' . $g_ext; - $g_admin_manage_notes = $g_web_directory . 'admin_manage_notes' . $g_ext; - $g_admin_view_queue = $g_web_directory . 'admin_view_queue' . $g_ext; - $g_admin_pending = $g_web_directory . 'admin_pending' . $g_ext; - $g_admin_change_password = $g_web_directory . 'admin_change_password' . $g_ext; - - $g_css_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'css_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; ###################### # COOKIES' SETTINGS |
From: <vb...@us...> - 2002-09-11 10:00:41
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv27294/core Modified Files: note_api.php Log Message: Fixed a problem with note_queue_count() where it used to count orphan notes. Although this case should be fixed elsewhere, it should be handled correctly if it exists. Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- note_api.php 11 Sep 2002 09:49:54 -0000 1.12 +++ note_api.php 11 Sep 2002 10:00:38 -0000 1.13 @@ -10,11 +10,13 @@ ### -------------------- function note_queue_count() { - global $g_phpWN_note_table; + global $g_phpWN_note_table, $g_phpWN_page_table; + # the reason of including the page is to avoid counting orphan + # notes. $query = "SELECT COUNT(*) - FROM $g_phpWN_note_table - WHERE visible='0'"; + FROM $g_phpWN_note_table n, $g_phpWN_page_table p + WHERE visible='0' AND n.page_id = p.id"; $result = db_query( $query ); return db_result( $result, 0, 0 ); } @@ -37,7 +39,7 @@ INTO $g_phpWN_note_table ( id, page_id, email, ip, date_submitted, note, visible ) VALUES - ( null, '$c_page_id', '$c_email', '$c_remote_address', NOW(), '$c_note', $t_visible )"; + ( null, '$c_page_id', '$c_email', '$c_remote_address', NOW(), '$c_note', '$t_visible' )"; return db_query( $query ); } ### -------------------- @@ -234,4 +236,4 @@ } } ### -------------------- -?> \ No newline at end of file +?> |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv24389/core Modified Files: access_api.php api.php config_api.php config_inc.php constants_inc.php css_inc.php database_api.php lang_api.php link_api.php note_api.php page_api.php php_api.php string_api.php user_api.php util_api.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: access_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/access_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- access_api.php 3 Sep 2002 22:30:06 -0000 1.1 +++ access_api.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/api.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- api.php 6 Sep 2002 17:03:36 -0000 1.16 +++ api.php 11 Sep 2002 09:49:54 -0000 1.17 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: config_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- config_api.php 3 Sep 2002 22:30:06 -0000 1.1 +++ config_api.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,8 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Mantis Team - man...@so... - # 2002 Webnotes Team - web...@so... + # 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 Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- config_inc.php 11 Sep 2002 06:43:12 -0000 1.12 +++ config_inc.php 11 Sep 2002 09:49:54 -0000 1.13 @@ -1,4 +1,4 @@ -<? +<?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 Index: constants_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/constants_inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- constants_inc.php 3 Sep 2002 22:30:07 -0000 1.1 +++ constants_inc.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: css_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/css_inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- css_inc.php 6 Sep 2002 17:03:37 -0000 1.1 +++ css_inc.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,7 +1,6 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: database_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/database_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- database_api.php 4 Sep 2002 15:03:50 -0000 1.2 +++ database_api.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: lang_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/lang_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- lang_api.php 3 Sep 2002 22:30:07 -0000 1.1 +++ lang_api.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,8 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Mantis Team - man...@so... - # 2002 Webnotes Team - web...@so... + # 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 Index: link_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/link_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- link_api.php 10 Sep 2002 13:58:34 -0000 1.2 +++ link_api.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2002 Victor Boctor - vb...@us... - # 2002 Webnotes Team - web...@so... + # 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 Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- note_api.php 11 Sep 2002 04:47:49 -0000 1.11 +++ note_api.php 11 Sep 2002 09:49:54 -0000 1.12 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 @@ -87,7 +86,7 @@ function note_archive( $p_id ) { } ### -------------------- - function note_print_all( $p_page_name ) { + function note_print_all( $p_page_name, $p_url ) { global $g_phpWN_note_table, $g_phpWN_page_table, $g_note_order; @@ -227,7 +226,7 @@ } else { if ( page_visible_notes_count ( $t_page_id ) > 0 ) { theme_notes_start( $p_file, $p_url ); - note_print_all( $p_file ); + note_print_all( $p_file, $p_url ); theme_notes_end( $p_file, $p_url ); } else { theme_notes_none( $p_file, $p_url ); Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- page_api.php 11 Sep 2002 04:47:49 -0000 1.8 +++ page_api.php 11 Sep 2002 09:49:54 -0000 1.9 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: php_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/php_api.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- php_api.php 5 Sep 2002 17:30:29 -0000 1.4 +++ php_api.php 11 Sep 2002 09:49:54 -0000 1.5 @@ -1,8 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Mantis Team - man...@so... - # 2002 Webnotes Team - web...@so... + # 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 Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- string_api.php 4 Sep 2002 13:36:58 -0000 1.2 +++ string_api.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: user_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/user_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- user_api.php 5 Sep 2002 22:44:33 -0000 1.1 +++ user_api.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: util_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/util_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- util_api.php 6 Sep 2002 17:03:37 -0000 1.2 +++ util_api.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes/themes In directory usw-pr-cvs1:/tmp/cvs-serv24389/themes Modified Files: theme_api.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/theme_api.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- theme_api.php 5 Sep 2002 17:30:30 -0000 1.3 +++ theme_api.php 11 Sep 2002 09:49:55 -0000 1.4 @@ -1,7 +1,6 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv24389/themes/phpnet Modified Files: theme_api.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- theme_api.php 11 Sep 2002 06:42:21 -0000 1.7 +++ theme_api.php 11 Sep 2002 09:49:55 -0000 1.8 @@ -1,4 +1,4 @@ -<? +<?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 |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv24389 Modified Files: action.php admin.php admin_change_password.php admin_manage_notes.php admin_pending.php admin_view_queue.php login.php login_page.php logout.php note_add.php note_add_msg_inc.php note_add_page.php note_preview_page.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: action.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/action.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- action.php 10 Sep 2002 13:58:33 -0000 1.2 +++ action.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2002 Victor Boctor - vb...@us... - # 2002 Webnotes Team - web...@so... + # 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 Index: admin.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- admin.php 6 Sep 2002 17:03:35 -0000 1.13 +++ admin.php 11 Sep 2002 09:49:54 -0000 1.14 @@ -1,7 +1,6 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 @@ -9,7 +8,7 @@ # $Id$ # -------------------------------------------------------- - include( "core" . DIRECTORY_SEPARATOR . "api.php" ); + require_once( "core" . DIRECTORY_SEPARATOR . "api.php" ); login_cookie_check(); Index: admin_change_password.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_change_password.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- admin_change_password.php 3 Sep 2002 06:59:08 -0000 1.10 +++ admin_change_password.php 11 Sep 2002 09:49:54 -0000 1.11 @@ -1,16 +1,15 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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$ # -------------------------------------------------------- -?> -<? include( "core" . DIRECTORY_SEPARATOR . "api.php" ) ?> -<? + + require_once( "core" . DIRECTORY_SEPARATOR . "api.php" ); + if (isset($f_action)&&($f_action=="change")) { if ($f_password==$f_password2) { $f_password = crypt($f_password); @@ -27,19 +26,18 @@ $row = get_user_info_arr( $g_string_cookie_val ); extract( $row, EXTR_PREFIX_ALL, "v" ); -?> -<? 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_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(); -<? if (isset($pass_change)&&($pass_change==1)) { PRINT "Password changed.<p>"; } @@ -86,7 +84,9 @@ </form> </div> -<? print_bottom_page( $g_bottom_page_inc ) ?> -<? print_footer(__FILE__) ?> -<? print_body_bottom() ?> -<? print_html_bottom() ?> \ No newline at end of file +<?php + print_bottom_page( $g_bottom_page_inc ); + print_footer( __FILE__ ); + print_body_bottom(); + print_html_bottom(); +?> \ No newline at end of file Index: admin_manage_notes.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_notes.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- admin_manage_notes.php 4 Sep 2002 15:03:49 -0000 1.11 +++ admin_manage_notes.php 11 Sep 2002 09:49:54 -0000 1.12 @@ -1,56 +1,58 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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$ # -------------------------------------------------------- -?> -<? include( "core" . DIRECTORY_SEPARATOR . "api.php" ) ?> -<? - if (( isset( $f_action ))&&( $f_action=="delete" )) { + + require_once( "core" . DIRECTORY_SEPARATOR . "api.php" ); + + if ( ( isset( $f_action ) ) && ( $f_action=="delete" ) ) { note_delete( $f_id ); } - if (( isset( $f_action ))&&( $f_action=="update" )) { + if ( ( isset( $f_action ) ) && ( $f_action=="update" ) ) { note_update( $f_id, $f_email, $f_note ); } + + 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_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 ) ?> <br /> <div align="center"> -<a href="<? echo $f_url?>"><? echo $s_back_link ?></a> +<a href="<?php echo $f_url ?>"><?php echo $s_back_link ?></a> <br /> -<table bgcolor="<? echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0"> -<tr bgcolor="<? echo $g_header_color ?>"> +<table bgcolor="<?php echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0"> +<tr bgcolor="<?php echo $g_header_color ?>"> <td colspan="2"> - <strong><? echo $s_manage_notes_title ?></strong> + <strong><?php echo $s_manage_notes_title ?></strong> </td> </tr> -<tr bgcolor="<? echo $g_white_color ?>"> +<tr bgcolor="<?php echo $g_white_color ?>"> <td width="10%"> - <? echo $s_page ?> + <?php echo $s_page ?> </td> <td width="90%"> - <? echo $f_url ?> + <?php echo $f_url ?> </td> </tr> -<? print_manage_notes( $f_page_id, $f_url ) ?> +<?php print_manage_notes( $f_page_id, $f_url ) ?> </table> </div> -<? print_footer( __FILE__ ) ?> -<? print_bottom_page( $g_bottom_page_inc ) ?> -<? print_body_bottom() ?> -<? print_html_bottom() ?> \ No newline at end of file +<?php + print_footer( __FILE__ ); + print_bottom_page( $g_bottom_page_inc ); + print_body_bottom(); + print_html_bottom(); +?> \ No newline at end of file Index: admin_pending.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_pending.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- admin_pending.php 6 Sep 2002 17:03:35 -0000 1.1 +++ admin_pending.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2002 Victor Boctor - vb...@us... - # 2002 Webnotes Team - web...@so... + # 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 Index: admin_view_queue.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_view_queue.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- admin_view_queue.php 6 Sep 2002 17:03:35 -0000 1.13 +++ admin_view_queue.php 11 Sep 2002 09:49:54 -0000 1.14 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: login.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/login.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- login.php 5 Sep 2002 06:25:19 -0000 1.6 +++ login.php 11 Sep 2002 09:49:54 -0000 1.7 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: login_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/login_page.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- login_page.php 5 Sep 2002 06:25:19 -0000 1.12 +++ login_page.php 11 Sep 2002 09:49:54 -0000 1.13 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: logout.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/logout.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- logout.php 5 Sep 2002 14:12:58 -0000 1.11 +++ logout.php 11 Sep 2002 09:49:54 -0000 1.12 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: note_add.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- note_add.php 9 Sep 2002 22:56:55 -0000 1.12 +++ note_add.php 11 Sep 2002 09:49:54 -0000 1.13 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: note_add_msg_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add_msg_inc.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- note_add_msg_inc.php 5 Sep 2002 06:25:19 -0000 1.5 +++ note_add_msg_inc.php 11 Sep 2002 09:49:54 -0000 1.6 @@ -1,3 +1,13 @@ +<?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$ + # -------------------------------------------------------- +?> <div align="center"> <table width="75%"> <tr> Index: note_add_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add_page.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- note_add_page.php 11 Sep 2002 06:42:54 -0000 1.14 +++ note_add_page.php 11 Sep 2002 09:49:54 -0000 1.15 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: note_preview_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_preview_page.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- note_preview_page.php 11 Sep 2002 06:33:36 -0000 1.1 +++ note_preview_page.php 11 Sep 2002 09:49:54 -0000 1.2 @@ -1,4 +1,13 @@ <?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$ + # -------------------------------------------------------- + require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); print_html_top(); @@ -16,7 +25,7 @@ <a href="<? echo $HTTP_REFERER?>"><? echo $s_back_link ?></a> </div> -<? +<?php $t_note['id'] = '0'; $t_note['email']= $f_email; $t_note['date'] = date ($g_date_format); |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes/lang In directory usw-pr-cvs1:/tmp/cvs-serv24389/lang Modified Files: strings_english.php strings_french.php strings_italian.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: strings_english.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/lang/strings_english.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- strings_english.php 10 Sep 2002 13:58:34 -0000 1.5 +++ strings_english.php 11 Sep 2002 09:49:54 -0000 1.6 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: strings_french.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/lang/strings_french.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- strings_french.php 4 Sep 2002 13:36:58 -0000 1.2 +++ strings_french.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 Index: strings_italian.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/lang/strings_italian.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- strings_italian.php 4 Sep 2002 13:36:58 -0000 1.2 +++ strings_italian.php 11 Sep 2002 09:49:54 -0000 1.3 @@ -1,7 +1,6 @@ <?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes/sample In directory usw-pr-cvs1:/tmp/cvs-serv24389/sample Modified Files: webservices.php xml.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: webservices.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/webservices.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- webservices.php 9 Sep 2002 11:24:31 -0000 1.3 +++ webservices.php 11 Sep 2002 09:49:54 -0000 1.4 @@ -1,3 +1,13 @@ +<?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$ + # -------------------------------------------------------- +?> <html> <head> <title>Web services (from Webopedia)</title> Index: xml.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/sample/xml.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- xml.php 9 Sep 2002 11:24:31 -0000 1.3 +++ xml.php 11 Sep 2002 09:49:54 -0000 1.4 @@ -1,3 +1,13 @@ +<?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$ + # -------------------------------------------------------- +?> <html> <head> <title>XML (from Webopedia)</title> |
From: <vb...@us...> - 2002-09-11 09:49:58
|
Update of /cvsroot/webnotes/webnotes/themes/classic In directory usw-pr-cvs1:/tmp/cvs-serv24389/themes/classic Modified Files: theme_api.php Log Message: - Unified the header in all files - Used require_once() rather than include() to include the api.php - Fixed a probem in note_print_all() where $p_url was not defined. - Replaced some < ? with < ? php. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/classic/theme_api.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- theme_api.php 10 Sep 2002 10:34:15 -0000 1.3 +++ theme_api.php 11 Sep 2002 09:49:55 -0000 1.4 @@ -1,7 +1,6 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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 |
From: <rm...@us...> - 2002-09-11 06:45:57
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv16303 Modified Files: ChangeLog Log Message: Preview note support Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ChangeLog 11 Sep 2002 04:47:49 -0000 1.8 +++ ChangeLog 11 Sep 2002 06:45:53 -0000 1.9 @@ -21,6 +21,7 @@ * Added admin_pending.php to allow moderating notes in any order (#10). * Added $g_auto_accept_notes to allow auto-accepting of notes (useful for demos and Intranet installations) * Added $g_auto_index_pages to allow auto-indexing for pages which call phpWebNotes but are not indexed. Default is ON. + * Added the preview note support 03.12.2000 - 1.0.0 |
From: <rm...@us...> - 2002-09-11 06:43:15
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv14913 Modified Files: config_inc.php Log Message: Preview note support Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- config_inc.php 11 Sep 2002 04:47:49 -0000 1.11 +++ config_inc.php 11 Sep 2002 06:43:12 -0000 1.12 @@ -73,6 +73,9 @@ $g_css_inc_file = $g_absolute_directory . 'core' . DIRECTORY_SEPARATOR . 'css_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; ###################### |
From: <rm...@us...> - 2002-09-11 06:42:58
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv14826 Modified Files: note_add_page.php Log Message: Preview note support Index: note_add_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add_page.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- note_add_page.php 10 Sep 2002 10:34:14 -0000 1.13 +++ note_add_page.php 11 Sep 2002 06:42:54 -0000 1.14 @@ -51,14 +51,15 @@ <br /> <div align="center"> <table bgcolor="$g_table_border_color" width="75%" cellspacing="1" border="0"> - <form method="post" action="$g_note_add"> + <form method="post" action="note_preview_page.php"> <input type="hidden" name="f_came_from" value="$HTTP_REFERER" /> <input type="hidden" name="f_page_id" value="$f_page_id" /> <input type="hidden" name="f_url" value="$f_url" /> - + <tr bgcolor="$g_header_color"> <td colspan="2"><strong><? echo $s_add_note ?></strong></td> </tr> + <tr bgcolor="$g_primary_light_color"> <td width="15%">$s_page</td> <td width="85%">$t_base_page_name</td> @@ -76,16 +77,15 @@ <td><textarea type="text" name="f_note" rows="16" cols="72"></textarea></td> </tr> <tr bgcolor="$g_white_color"> - <td colspan="2" align="center"><input type="submit" value="$s_add_note_link" /></td> + <td colspan="2" align="center" width="80%"><input type="submit" value="Preview" /> + </td> + </tr> </form> - </table> + </table> </div> - EOT; - } ### end else - print_footer( __FILE__ ); print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); |
From: <rm...@us...> - 2002-09-11 06:42:26
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv14742 Modified Files: theme_api.php Log Message: Preview note support Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- theme_api.php 10 Sep 2002 10:34:15 -0000 1.6 +++ theme_api.php 11 Sep 2002 06:42:21 -0000 1.7 @@ -100,7 +100,7 @@ <td align="right">#$t_id</td> </tr> <tr bgcolor="#f0f0f0"> - <td colspan="2"><code class="note">$t_note</code></td> + <td colspan="2"><pre>$t_note</pre></td> </tr> </table> </td> |
From: <rm...@us...> - 2002-09-11 06:33:40
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv12820 Added Files: note_preview_page.php Log Message: Preview note support --- NEW FILE: note_preview_page.php --- <?php require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); 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 ); ?> <p> <div align="center"> <a href="<? echo $HTTP_REFERER?>"><? echo $s_back_link ?></a> </div> <? $t_note['id'] = '0'; $t_note['email']= $f_email; $t_note['date'] = date ($g_date_format); $t_note['note'] = $f_note; theme_notes_echo( $p_page_name, $p_url, $t_note ); echo <<<EOT <form method="post" action="note_add.php"> <input type="hidden" name="f_came_from" value="$f_came_from" /> <input type="hidden" name="f_page_id" value="$f_page_id" /> <input type="hidden" name="f_url" value="$f_url" /> <input type="hidden" name="f_email" value="$f_email" /> <input type="hidden" name="f_note" value="$f_note" /> <table width="100%"> <tr bgcolor="$g_white_color"> <td colspan="2" align="center" width="80%"><input type="submit" value="Submit" /> </td> </tr> </table> </form> EOT; print_footer( __FILE__ ); print_body_bottom(); print_html_bottom(); ?> |
From: <vb...@us...> - 2002-09-11 04:47:52
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv22614/doc Modified Files: ChangeLog Log Message: - Implemented 0000035: Allow auto-indexing if page was not indexed - Fixed a typo in page_valid_id() where it was named page_valid_ip() - Fixed a problem in print_webnotes() where it was using $p_page rather than $p_file. [ This is a blind commit - not tested ] Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ChangeLog 9 Sep 2002 22:30:21 -0000 1.7 +++ ChangeLog 11 Sep 2002 04:47:49 -0000 1.8 @@ -20,7 +20,8 @@ * Added the classic theme (#4). * Added admin_pending.php to allow moderating notes in any order (#10). * Added $g_auto_accept_notes to allow auto-accepting of notes (useful for demos and Intranet installations) - + * Added $g_auto_index_pages to allow auto-indexing for pages which call phpWebNotes but are not indexed. Default is ON. + 03.12.2000 - 1.0.0 * Rewrite and release |
From: <vb...@us...> - 2002-09-11 04:47:51
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv22614/core Modified Files: config_inc.php note_api.php page_api.php Log Message: - Implemented 0000035: Allow auto-indexing if page was not indexed - Fixed a typo in page_valid_id() where it was named page_valid_ip() - Fixed a problem in print_webnotes() where it was using $p_page rather than $p_file. [ This is a blind commit - not tested ] Index: config_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_inc.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- config_inc.php 10 Sep 2002 01:14:35 -0000 1.10 +++ config_inc.php 11 Sep 2002 04:47:49 -0000 1.11 @@ -138,6 +138,12 @@ # minutes to wait before document is stale (in minutes) $g_content_expire = 0; + ################### + # ADMIN SETTINGS + ################### + + $g_auto_index_pages = ON; + ######################## # MODERATION SETTINGS ######################## Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- note_api.php 10 Sep 2002 10:34:14 -0000 1.10 +++ note_api.php 11 Sep 2002 04:47:49 -0000 1.11 @@ -213,8 +213,17 @@ echo '<br />'; $t_page_id = page_get_id( $p_file ); - if ( $t_page_id === '' ) { - theme_not_indexed( $p_page, $p_url ); + if ( !page_valid_id( $t_page_id ) ) { + global $g_auto_index_pages; + + if ( ON === $g_auto_index_pages ) { + if ( page_add( $p_file ) ) { + print_web_notes( $p_file, $p_url ); + return; + } + } + + theme_not_indexed( $p_file, $p_url ); } else { if ( page_visible_notes_count ( $t_page_id ) > 0 ) { theme_notes_start( $p_file, $p_url ); Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- page_api.php 10 Sep 2002 13:58:34 -0000 1.7 +++ page_api.php 11 Sep 2002 04:47:49 -0000 1.8 @@ -28,12 +28,12 @@ return false; } ### -------------------- - function page_valid_ip( $p_page_id ) { + function page_valid_id( $p_page_id ) { return ( false !== $p_page_id ); } ### -------------------- function page_is_indexed( $p_file ) { - return ( page_valid_ip( page_get_id( $p_file ) ) ); + return ( page_valid_id( page_get_id( $p_file ) ) ); } ### -------------------- function page_visible_notes_count( $p_page_id ) { @@ -104,7 +104,7 @@ $t_filename = $p_path . $file; $t_id = page_get_id( $t_filename ); #echo "<a href=\"$g_admin_index_files?f_dir=$t_file\">$file</a><br />"; - $t_add = !page_valid_ip( $t_id ); + $t_add = !page_valid_id( $t_id ); if ( !$t_add ) { $t_count = '(' . page_visible_notes_count( $t_id ) . ')'; } else { |
From: <vb...@us...> - 2002-09-10 13:58:39
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv5632 Modified Files: action.php admin_index_files.php Log Message: - Clean up work in admin_index_files.php - Added the possibility of indexing / unindexing single pages. Index: action.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/action.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- action.php 6 Sep 2002 17:03:35 -0000 1.1 +++ action.php 10 Sep 2002 13:58:33 -0000 1.2 @@ -26,20 +26,27 @@ } # @@@@ add handling for confirm? - - if ( !isset( $f_note_id )) { - echo 'f_note_id not defined<br />'; - exit; - } - if ( 'accept' === $f_action ) { - note_accept( $f_note_id ); - } else if ( 'reject' === $f_action ) { - note_decline( $f_note_id ); - } else if ( 'archive' === $f_action ) { - note_archive( $f_note_id ); - } else if ( 'delete' === $f_action ) { - note_delete( $f_note_id ); + if ( isset( $f_note_id )) { + if ( 'accept' === $f_action ) { + note_accept( $f_note_id ); + } else if ( 'reject' === $f_action ) { + note_decline( $f_note_id ); + } else if ( 'archive' === $f_action ) { + note_archive( $f_note_id ); + } else if ( 'delete' === $f_action ) { + note_delete( $f_note_id ); + } + } + + if ( isset( $f_page_id ) ) { + $c_page_id = stripslashes( urldecode( $f_page_id ) ); + if ( 'unindex' === $f_action ) { + page_delete( $c_page_id ); + } + if ( 'index' === $f_action ) { + page_add( $c_page_id ); + } } if ( isset( $f_wait ) ) { Index: admin_index_files.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_index_files.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- admin_index_files.php 10 Sep 2002 10:34:14 -0000 1.14 +++ admin_index_files.php 10 Sep 2002 13:58:33 -0000 1.15 @@ -1,17 +1,16 @@ -<? +<?php # phpWebNotes - a php based note addition system - # Copyright (C) 2000 Kenzaburo Ito - ke...@30... - # 2002 Webnotes Team - web...@so... + # 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$ # -------------------------------------------------------- -?> -<? include ( "core" . DIRECTORY_SEPARATOR . "api.php" ) ?> -<? login_cookie_check() ?> -<? + + require_once ( "core" . DIRECTORY_SEPARATOR . "api.php" ); + login_cookie_check(); + if ( !isset( $f_dir ) ) { $f_dir = dirname( __FILE__ ); } else { @@ -21,56 +20,46 @@ if ( ( substr( $f_dir, -1 ) != '\\' ) && ( substr ( $f_dir, -1 ) != '/' ) ) { $f_dir = $f_dir . DIRECTORY_SEPARATOR; } -?> -<? 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_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 ); -<table bgcolor="<? echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0"> -<tr bgcolor="<? echo $g_header_color ?>"> + print_admin_menu(); + echo '<br />'; +?> + +<table bgcolor="<?php echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0"> +<tr bgcolor="<?php echo $g_header_color ?>"> <td> - <strong><? echo $s_index_files_title ?></strong> + <strong><?php echo $s_index_files_title ?></strong> </td> </tr> -<tr bgcolor="<? echo $g_white_color ?>"> +<tr bgcolor="<?php echo $g_white_color ?>"> <td> - <? echo $s_current_directory ?>: - <? echo $f_dir; ?> + <?php + echo "$s_current_directory: $f_dir"; + ?> </td> </tr> -<? +<?php if ( isset( $f_action_index ) ) { -?> -<tr bgcolor="<? echo $g_white_color ?>"> - <td> - <? echo $s_indexed_following_files ?>: - <br /> - <? page_add_dir( $f_dir, false ) ?> - </td> -</tr> -<? } ?> -<? + page_add_dir( $f_dir, false ); + } + if ( isset( $f_action_index_tree ) ) { + page_add_dir( $f_dir, true ); + } ?> -<tr bgcolor="<? echo $g_white_color ?>"> - <td> - <? echo $s_indexed_following_files ?>: - <br /> - <? page_add_dir( $f_dir, true ) ?> - </td> -</tr> -<? } ?> -<tr bgcolor="<? echo $g_primary_light_color ?>"> +<tr bgcolor="<?php echo $g_primary_light_color ?>"> <td> - <? - print_dirs( $f_dir ); + <?php + print_dirs( $f_dir, $PHP_SELF ); ?> </td> </tr> @@ -88,7 +77,9 @@ </table> </div> -<? print_footer( __FILE__ ) ?> -<? print_bottom_page( $g_bottom_page_inc ) ?> -<? print_body_bottom() ?> -<? print_html_bottom() ?> \ No newline at end of file +<?php + print_footer( __FILE__ ); + print_bottom_page( $g_bottom_page_inc ); + print_body_bottom(); + print_html_bottom(); +?> \ No newline at end of file |
From: <vb...@us...> - 2002-09-10 13:58:39
|
Update of /cvsroot/webnotes/webnotes/lang In directory usw-pr-cvs1:/tmp/cvs-serv5632/lang Modified Files: strings_english.php Log Message: - Clean up work in admin_index_files.php - Added the possibility of indexing / unindexing single pages. Index: strings_english.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/lang/strings_english.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- strings_english.php 6 Sep 2002 17:03:38 -0000 1.4 +++ strings_english.php 10 Sep 2002 13:58:34 -0000 1.5 @@ -99,4 +99,6 @@ $s_action_delete = 'Delete'; $s_action_archive = 'Archive'; $s_action_edit = 'Edit'; + $s_action_index = 'Add Page'; + $s_action_unindex = 'Remove Page'; ?> |
From: <vb...@us...> - 2002-09-10 13:58:39
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv5632/core Modified Files: link_api.php page_api.php Log Message: - Clean up work in admin_index_files.php - Added the possibility of indexing / unindexing single pages. Index: link_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/link_api.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- link_api.php 6 Sep 2002 17:03:37 -0000 1.1 +++ link_api.php 10 Sep 2002 13:58:34 -0000 1.2 @@ -14,12 +14,34 @@ ########################################################################### ### -------------------- - function link_note_action( $p_note_id, $p_action, $p_url ) { + function link_note_action( $p_note_id, $p_action, $p_url, $p_link_active = true ) { $t_caption = lang_get( 'action_' . $p_action ); $c_note_id = db_prepare_int( $p_note_id ); $c_action = urlencode( $p_action ); $c_url = urlencode( $p_url ); $t_action = config_get( 'web_directory') . 'action.php'; - return "[ <a href=\"$t_action?f_action=$c_action&f_note_id=$c_note_id&f_url=$c_url\">$t_caption</a> ]"; + + if ( $p_link_active ) { + return "[ <a href=\"$t_action?f_action=$c_action&f_note_id=$c_note_id&f_url=$c_url\">$t_caption</a> ]"; + } else { + return "[ $t_caption ]"; + } + } + ### -------------------- + # $p_page = $p_page_id if action is unindex + # $p_page = $p_page_name if action is index + function link_page_action( $p_page, $p_action, $p_url, $p_link_active = true ) { + $t_caption = lang_get( 'action_' . $p_action ); + + $c_page_id = urlencode( $p_page ); + $c_action = urlencode( $p_action ); + $c_url = urlencode( $p_url ); + $t_action = config_get( 'web_directory') . 'action.php'; + + if ( $p_link_active ) { + return "[ <a href=\"$t_action?f_action=$c_action&f_page_id=$c_page_id&f_url=$c_url\">$t_caption</a> ]"; + } else { + return "[ $t_caption ]"; + } } ?> Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- page_api.php 10 Sep 2002 10:34:14 -0000 1.6 +++ page_api.php 10 Sep 2002 13:58:34 -0000 1.7 @@ -28,8 +28,12 @@ return false; } ### -------------------- + function page_valid_ip( $p_page_id ) { + return ( false !== $p_page_id ); + } + ### -------------------- function page_is_indexed( $p_file ) { - return ( false !== page_get_id( $p_file ) ); + return ( page_valid_ip( page_get_id( $p_file ) ) ); } ### -------------------- function page_visible_notes_count( $p_page_id ) { @@ -75,8 +79,10 @@ } ### -------------------- ### Allows for path navigation to choose base dir - function print_dirs( $p_path ) { + function print_dirs( $p_path, $p_php_self ) { global $g_admin_index_files; + + echo '<table>'; $handle = opendir( $p_path ); while ( $file = readdir( $handle ) ) { @@ -87,10 +93,30 @@ $t_dir = $p_path . $file; } $t_dir = urlencode( $t_dir ); - echo "<a href=\"$g_admin_index_files?f_dir=$t_dir\">$file</a><br />"; + echo "<tr><td></td><td><a href=\"$g_admin_index_files?f_dir=$t_dir\">[$file]</a></td></tr>"; + } + } + closedir( $handle ); + + $handle = opendir( $p_path ); + while ( $file = readdir( $handle ) ) { + if ( !is_dir( $p_path . $file ) ) { + $t_filename = $p_path . $file; + $t_id = page_get_id( $t_filename ); + #echo "<a href=\"$g_admin_index_files?f_dir=$t_file\">$file</a><br />"; + $t_add = !page_valid_ip( $t_id ); + if ( !$t_add ) { + $t_count = '(' . page_visible_notes_count( $t_id ) . ')'; + } else { + $t_count = ''; + } + + echo "<tr><td>" . link_page_action( $t_filename, 'index', $p_php_self, $t_add ) . ' ' . link_page_action( $t_id, 'unindex', $p_php_self, !$t_add ). "</td><td><tt>$file$t_count</tt></td></tr>"; } } closedir( $handle ); + + echo '</table>'; } ### -------------------- function page_add( $p_page_name ) { @@ -135,9 +161,7 @@ foreach ( $files as $file ) { $t_filename = $p_path . $file; - if ( page_add( $t_filename ) ) { - echo "$t_filename<br />"; - } + page_add( $t_filename ); } # if not recursive return before processing sub-directories @@ -150,6 +174,17 @@ } } ### -------------------- + function page_delete_notes( $p_page_id ) { + global $g_phpWN_note_table; + + $c_page_id = db_prepare_int( $p_page_id ); + + $query = "DELETE FROM $g_phpWN_note_table + WHERE page_id='$c_page_id'"; + + return true; + } + ### -------------------- function page_delete( $p_page_id ) { global $g_phpWN_page_table; @@ -160,11 +195,12 @@ LIMIT 1"; $result = db_query( $query ); - if ( db_num_rows( $result) > 0 ) { - return true; - } - return false; + if ( !page_delete_notes( $p_page_id ) ) { + return false; + }; + + return true; } ### -------------------- ?> |
From: <vb...@us...> - 2002-09-10 10:34:18
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv16718/themes/phpnet Modified Files: theme_api.php Log Message: Clean up work in core/page_api.php Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- theme_api.php 10 Sep 2002 04:42:10 -0000 1.5 +++ theme_api.php 10 Sep 2002 10:34:15 -0000 1.6 @@ -40,7 +40,7 @@ } $c_url = urlencode( $p_url ); - $t_page_id = get_page_id( $p_page ); + $t_page_id = page_get_id( $p_page ); #$path = dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR; #$image = $path .'notes_add.gif'; @@ -119,7 +119,7 @@ } $c_url = urlencode( $p_url ); - $t_page_id = get_page_id( $p_page ); + $t_page_id = page_get_id( $p_page ); $url = $g_web_directory . '/themes/' . $g_theme . '/images/'; $add_picture = $url . 'notes_add.gif'; |
From: <vb...@us...> - 2002-09-10 10:34:18
|
Update of /cvsroot/webnotes/webnotes/themes/classic In directory usw-pr-cvs1:/tmp/cvs-serv16718/themes/classic Modified Files: theme_api.php Log Message: Clean up work in core/page_api.php Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/classic/theme_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- theme_api.php 9 Sep 2002 22:30:22 -0000 1.2 +++ theme_api.php 10 Sep 2002 10:34:15 -0000 1.3 @@ -94,7 +94,7 @@ $s_add_note_link, $s_manage, $s_admin; $c_url = urlencode( $p_page ); - $t_page_id = get_page_id( $p_page ); + $t_page_id = page_get_id( $p_page ); echo <<<EOT <tr bgcolor="$g_primary_dark_color"> |
From: <vb...@us...> - 2002-09-10 10:34:17
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv16718/core Modified Files: note_api.php page_api.php Log Message: Clean up work in core/page_api.php Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- note_api.php 10 Sep 2002 04:28:11 -0000 1.9 +++ note_api.php 10 Sep 2002 10:34:14 -0000 1.10 @@ -212,7 +212,7 @@ function print_web_notes( $p_file, $p_url ) { echo '<br />'; - $t_page_id = get_page_id( $p_file ); + $t_page_id = page_get_id( $p_file ); if ( $t_page_id === '' ) { theme_not_indexed( $p_page, $p_url ); } else { Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- page_api.php 10 Sep 2002 04:28:11 -0000 1.5 +++ page_api.php 10 Sep 2002 10:34:14 -0000 1.6 @@ -10,7 +10,7 @@ # -------------------------------------------------------- ### -------------------- - function get_page_id( $p_file ) { + function page_get_id( $p_file ) { global $g_phpWN_page_table; $c_file = db_prepare_string( $p_file ); @@ -28,6 +28,10 @@ return false; } ### -------------------- + function page_is_indexed( $p_file ) { + return ( false !== page_get_id( $p_file ) ); + } + ### -------------------- function page_visible_notes_count( $p_page_id ) { global $g_phpWN_note_table; @@ -35,19 +39,31 @@ $query = "SELECT COUNT(*) FROM $g_phpWN_note_table + WHERE page_id=$c_page_id AND visible=1"; + $result = db_query( $query ); + return db_result( $result, 0, 0 ); + } + ### -------------------- + function page_notes_count( $p_page_id ) { + global $g_phpWN_note_table; + + $c_page_id = db_prepare_int( $p_page_id ); + + $query = "SELECT COUNT(*) + FROM $g_phpWN_note_table WHERE page_id=$c_page_id"; $result = db_query( $query ); return db_result( $result, 0, 0 ); } ### -------------------- - function get_page_name( $p_id ) { + function page_get_name( $p_page_id ) { global $g_phpWN_page_table; - $c_id = db_prepare_int( $p_id ); + $c_page_id = db_prepare_int( $p_page_id ); $query = "SELECT page FROM $g_phpWN_page_table - WHERE id='$c_id' + WHERE id='$c_page_id' LIMIT 1"; $result = db_query( $query ); @@ -77,9 +93,9 @@ closedir( $handle ); } ### -------------------- - function add_file( $p_page_name ) { + function page_add( $p_page_name ) { # if page already exists, return to avoid duplicates - if ( get_page_id( $p_page_name ) !== false ) { + if ( page_get_id( $p_page_name ) !== false ) { return 0; } @@ -97,7 +113,7 @@ return $result; } ### -------------------- - function index_files( $p_path='', $p_recursive=true ) { + function page_add_dir( $p_path='', $p_recursive=true ) { $dirs = array(); $files = array(); @@ -119,7 +135,7 @@ foreach ( $files as $file ) { $t_filename = $p_path . $file; - if ( add_file( $t_filename ) ) { + if ( page_add( $t_filename ) ) { echo "$t_filename<br />"; } } @@ -130,8 +146,25 @@ } foreach ( $dirs as $dir ) { - index_files( $p_path . $dir . DIRECTORY_SEPARATOR ); + page_add_dir( $p_path . $dir . DIRECTORY_SEPARATOR ); } + } + ### -------------------- + function page_delete( $p_page_id ) { + global $g_phpWN_page_table; + + $c_page_id = db_prepare_int( $p_page_id ); + + $query = "DELETE FROM $g_phpWN_page_table + WHERE id='$c_page_id' + LIMIT 1"; + + $result = db_query( $query ); + if ( db_num_rows( $result) > 0 ) { + return true; + } + + return false; } ### -------------------- ?> |
From: <vb...@us...> - 2002-09-10 10:34:17
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv16718 Modified Files: admin_index_files.php note_add_page.php Log Message: Clean up work in core/page_api.php Index: admin_index_files.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_index_files.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- admin_index_files.php 5 Sep 2002 14:12:57 -0000 1.13 +++ admin_index_files.php 10 Sep 2002 10:34:14 -0000 1.14 @@ -52,7 +52,7 @@ <td> <? echo $s_indexed_following_files ?>: <br /> - <? index_files( $f_dir, false ) ?> + <? page_add_dir( $f_dir, false ) ?> </td> </tr> <? } ?> @@ -63,7 +63,7 @@ <td> <? echo $s_indexed_following_files ?>: <br /> - <? index_files( $f_dir, true ) ?> + <? page_add_dir( $f_dir, true ) ?> </td> </tr> <? } ?> Index: note_add_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add_page.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- note_add_page.php 9 Sep 2002 22:56:55 -0000 1.12 +++ note_add_page.php 10 Sep 2002 10:34:14 -0000 1.13 @@ -20,7 +20,7 @@ print_header( $g_page_title ); print_top_page( $g_top_page_inc ); - $t_page_name = get_page_name( $f_page_id ); + $t_page_name = page_get_name( $f_page_id ); if ( empty ( $t_page_name ) ) { echo "<div align=\"center\">"; # @@@@ replace with one parameterised localisation string |
From: <rm...@us...> - 2002-09-10 04:42:13
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv16363 Modified Files: theme_api.php Log Message: add text at the end of the page when the page doesnt have any note Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- theme_api.php 10 Sep 2002 03:16:14 -0000 1.4 +++ theme_api.php 10 Sep 2002 04:42:10 -0000 1.5 @@ -120,7 +120,7 @@ $c_url = urlencode( $p_url ); $t_page_id = get_page_id( $p_page ); - + $url = $g_web_directory . '/themes/' . $g_theme . '/images/'; $add_picture = $url . 'notes_add.gif'; @@ -129,7 +129,7 @@ <td colspan="2" align="right"><a href="$g_note_add_page?f_page_id=$t_page_id&f_url=$c_url"> <img src="$add_picture" border="0" width="13" height="13" ALT="add a note"/> </a></td> - </tr> + </tr> </table> EOT; } @@ -139,9 +139,16 @@ # APIs are not called. function theme_notes_none( $p_page, $p_url ) { theme_notes_start( $p_page, $p_url ); - theme_notes_end( $p_page, $p_url ); + #theme_notes_end( $p_page, $p_url ); + + echo <<<EOT + <tr valign="top"> + <td bgcolor="#e0e0e0" colspan="2">There are no user contributed notes for this page. + </td> + </tr> + </table> +EOT; } - # This function is called if the current page was not indexed function theme_not_indexed( $p_page ) { } |
From: <vb...@us...> - 2002-09-10 04:28:14
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv13512/core Modified Files: note_api.php page_api.php Log Message: Fixed 0000033: no calls for the theme_notes_none function [not tested] Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- note_api.php 9 Sep 2002 22:56:56 -0000 1.8 +++ note_api.php 10 Sep 2002 04:28:11 -0000 1.9 @@ -216,9 +216,13 @@ if ( $t_page_id === '' ) { theme_not_indexed( $p_page, $p_url ); } else { - theme_notes_start( $p_file, $p_url ); - note_print_all( $p_file ); - theme_notes_end( $p_file, $p_url ); + if ( page_visible_notes_count ( $t_page_id ) > 0 ) { + theme_notes_start( $p_file, $p_url ); + note_print_all( $p_file ); + theme_notes_end( $p_file, $p_url ); + } else { + theme_notes_none( $p_file, $p_url ); + } } } ### -------------------- Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- page_api.php 9 Sep 2002 22:30:21 -0000 1.4 +++ page_api.php 10 Sep 2002 04:28:11 -0000 1.5 @@ -28,6 +28,18 @@ return false; } ### -------------------- + function page_visible_notes_count( $p_page_id ) { + global $g_phpWN_note_table; + + $c_page_id = db_prepare_int( $p_page_id ); + + $query = "SELECT COUNT(*) + FROM $g_phpWN_note_table + WHERE page_id=$c_page_id"; + $result = db_query( $query ); + return db_result( $result, 0, 0 ); + } + ### -------------------- function get_page_name( $p_id ) { global $g_phpWN_page_table; |