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...> - 2003-09-13 06:59:34
|
Update of /cvsroot/webnotes/webnotes/core In directory sc8-pr-cvs1:/tmp/cvs-serv24376/core Modified Files: email_api.php Log Message: Send email notifications to all moderators / administrators when new notes are submitted or updated. M note_add.php - Send email notification on updating bugs. M core/email_api.php - Support sending emails to all administrators/moderators on new notes / updated notes. Index: email_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/email_api.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- email_api.php 12 Sep 2003 10:58:16 -0000 1.7 +++ email_api.php 13 Sep 2003 06:59:30 -0000 1.8 @@ -110,7 +110,7 @@ $content .= "Note Id: $note_id\n"; $content .= "Email: $note_email\n"; $content .= "IP: $note_ip\n"; - $content .= "Date Submitted: " . date( 'd-M-Y', $note_date_submitted ) . "\n"; + $content .= "Date Submitted: " . date( 'd-M-Y H:i:s', $note_date_submitted ) . "\n"; $content .= "Visible: " . ( $note_visible ? "Yes" : "No" ) . "\n"; $content .= str_pad( '', 70, '-' ) . "\n"; $content .= $note_note . "\n"; @@ -120,6 +120,28 @@ } # -------------------- + # build an array of recipients + function email_recipients( $p_note_id ) + { + global $g_phpWN_user_table; + + $query = "SELECT email FROM $g_phpWN_user_table + WHERE access_level >= " . MODERATOR . + " AND email <> ''"; + $result = db_query( $query ); + + $emails_array = array(); + while( $row = db_fetch_array( $result ) ) { + $emails_array[] = $row['email']; + } + + $emails_array = array_unique( $emails_array ); + $emails = implode( ',', $emails_array ); + + return $emails; + } + + # -------------------- # email note to administrator # @@@ Query the database to send to moderators / administrators, rather than # just the administrator in the configs. @@ -128,7 +150,17 @@ $content = ''; email_build_note_message( $p_note_id, $subject, $content ); + $t_recipients = email_recipients( $p_note_id ); + global $g_administrator_email; - email_send( $g_administrator_email, $subject, $content ); + email_send( $t_recipients, $subject, $content ); + } + + # -------------------- + # email note to administrator + # @@@ Query the database to send to moderators / administrators, rather than + # just the administrator in the configs. + function email_note_updated( $p_note_id ) { + email_note_added( $p_note_id ); } ?> |
From: <vb...@us...> - 2003-09-13 06:59:34
|
Update of /cvsroot/webnotes/webnotes In directory sc8-pr-cvs1:/tmp/cvs-serv24376 Modified Files: note_add.php Log Message: Send email notifications to all moderators / administrators when new notes are submitted or updated. M note_add.php - Send email notification on updating bugs. M core/email_api.php - Support sending emails to all administrators/moderators on new notes / updated notes. Index: note_add.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- note_add.php 12 Sep 2003 10:58:16 -0000 1.19 +++ note_add.php 13 Sep 2003 06:59:30 -0000 1.20 @@ -25,6 +25,7 @@ } } else { $result = note_update( $f_note_id, $f_email, $f_note ); + email_note_updated( $f_note_id ); } $t_page_info = page_get_info( page_where_id_equals( $f_page_id ) ); |
From: <vb...@us...> - 2003-09-13 06:59:34
|
Update of /cvsroot/webnotes/webnotes/doc In directory sc8-pr-cvs1:/tmp/cvs-serv24376/doc Modified Files: ChangeLog Log Message: Send email notifications to all moderators / administrators when new notes are submitted or updated. M note_add.php - Send email notification on updating bugs. M core/email_api.php - Support sending emails to all administrators/moderators on new notes / updated notes. Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- ChangeLog 12 Sep 2003 10:58:16 -0000 1.30 +++ ChangeLog 13 Sep 2003 06:59:30 -0000 1.31 @@ -13,7 +13,7 @@ * Added current time, last updated time for each page, number of notes of notes for each page to the manage notes page. * Added support for tracking the number of hits on each page. * Display the number of hits on each page in the manage notes page. - * Added support for sending email notifications for note addition to Administrator. + * Send email notifications to moderators/administrators on addition/update of notes. 06.10-2002 - 2.0.0pr1 (2.0.0 pre-release 1) * Fixed bug causing weird "headers already sent in whatever" errors on some servers |
From: <vb...@us...> - 2003-09-12 10:58:20
|
Update of /cvsroot/webnotes/webnotes/core In directory sc8-pr-cvs1:/tmp/cvs-serv19810/core Modified Files: database_api.php email_api.php note_api.php Log Message: M note_add.php - Call the email notification function. M core/database_api.php - Added support for getting the id of the inserted record. M core/email_api.php - Email sending function. M core/note_api.php - Change note_add() to return the id of the inserted record. Index: database_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/database_api.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- database_api.php 11 Sep 2002 09:49:54 -0000 1.3 +++ database_api.php 12 Sep 2003 10:58:16 -0000 1.4 @@ -79,6 +79,15 @@ return false; } } + # -------------------- + # return the last inserted id + function db_insert_id() { + if ( mysql_affected_rows() > 0 ) { + return mysql_insert_id(); + } else { + return false; + } + } ### -------------------- function db_close() { $t_result = mysql_close(); Index: email_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/email_api.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- email_api.php 12 Sep 2003 06:56:27 -0000 1.6 +++ email_api.php 12 Sep 2003 10:58:16 -0000 1.7 @@ -33,7 +33,8 @@ # this function sends the actual email function email_send( $p_recipient, $p_subject, $p_message, $p_header='' ) { global $g_from_email, $g_enable_email_notification, - $g_return_path_email, $g_use_x_priority; + $g_return_path_email, $g_use_x_priority, + $g_phpWebNotes_version; # short-circuit if no emails should be sent if ( OFF == $g_enable_email_notification ) { @@ -94,26 +95,26 @@ } extract( $note, EXTR_PREFIX_ALL, 'note' ); - $page = page_get_info( page_where_id_equals( $v_page_id ) ); + $page = page_get_info( page_where_id_equals( $note_page_id ) ); if ( $page === false ) { return false; } extract( $page, EXTR_PREFIX_ALL, 'page' ); - $subject = '[$page_page] $note_email'; + $subject = "[$page_page] $note_email"; $content = ''; - $content .= str_pad( '', 70, '=' ); - $content .= $page_url; - $content .= str_pad( '', 70, '-' ); + $content .= str_pad( '', 70, '=' ) . "\n"; + $content .= 'http://' . $_SERVER['SERVER_ADDR'] . $page_url . "\n"; + $content .= str_pad( '', 70, '-' ) . "\n"; $content .= "Note Id: $note_id\n"; $content .= "Email: $note_email\n"; $content .= "IP: $note_ip\n"; $content .= "Date Submitted: " . date( 'd-M-Y', $note_date_submitted ) . "\n"; - $content .= "Visible: " . ( $note_visible ? "Yes" : "No" ); - $content .= str_pad( '', 70, '-' ); - $content .= $v_note_note; - $content .= str_pad( '', 70, '=' ); + $content .= "Visible: " . ( $note_visible ? "Yes" : "No" ) . "\n"; + $content .= str_pad( '', 70, '-' ) . "\n"; + $content .= $note_note . "\n"; + $content .= str_pad( '', 70, '=' ) . "\n"; return true; } Index: note_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/note_api.php,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- note_api.php 3 Oct 2002 05:26:31 -0000 1.30 +++ note_api.php 12 Sep 2003 10:58:16 -0000 1.31 @@ -77,6 +77,7 @@ VALUES ( null, $c_page_id, '$c_email', '$c_remote_address', NOW(), '$c_note', $t_visible )"; $result = db_query( $query ); + $result = db_insert_id(); page_touch( $p_page_id ); |
From: <vb...@us...> - 2003-09-12 10:58:20
|
Update of /cvsroot/webnotes/webnotes In directory sc8-pr-cvs1:/tmp/cvs-serv19810 Modified Files: note_add.php Log Message: M note_add.php - Call the email notification function. M core/database_api.php - Added support for getting the id of the inserted record. M core/email_api.php - Email sending function. M core/note_api.php - Change note_add() to return the id of the inserted record. Index: note_add.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- note_add.php 21 Sep 2002 02:44:32 -0000 1.18 +++ note_add.php 12 Sep 2003 10:58:16 -0000 1.19 @@ -20,6 +20,9 @@ ### insert note if ( 0 == $f_note_id ) { $result = note_add( $f_page_id, $f_email, $REMOTE_ADDR, $f_note); + if ( $result !== false ) { + email_note_added( $result ); + } } else { $result = note_update( $f_note_id, $f_email, $f_note ); } |
From: <vb...@us...> - 2003-09-12 10:58:20
|
Update of /cvsroot/webnotes/webnotes/doc In directory sc8-pr-cvs1:/tmp/cvs-serv19810/doc Modified Files: ChangeLog Log Message: M note_add.php - Call the email notification function. M core/database_api.php - Added support for getting the id of the inserted record. M core/email_api.php - Email sending function. M core/note_api.php - Change note_add() to return the id of the inserted record. Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- ChangeLog 20 Aug 2003 08:46:35 -0000 1.29 +++ ChangeLog 12 Sep 2003 10:58:16 -0000 1.30 @@ -13,6 +13,7 @@ * Added current time, last updated time for each page, number of notes of notes for each page to the manage notes page. * Added support for tracking the number of hits on each page. * Display the number of hits on each page in the manage notes page. + * Added support for sending email notifications for note addition to Administrator. 06.10-2002 - 2.0.0pr1 (2.0.0 pre-release 1) * Fixed bug causing weird "headers already sent in whatever" errors on some servers |
From: <vb...@us...> - 2003-09-12 06:56:30
|
Update of /cvsroot/webnotes/webnotes/core In directory sc8-pr-cvs1:/tmp/cvs-serv8997/core Modified Files: email_api.php Log Message: M core\email_api.php Started working on the email notifications. Index: email_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/email_api.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- email_api.php 6 Oct 2002 15:23:36 -0000 1.5 +++ email_api.php 12 Sep 2003 06:56:27 -0000 1.6 @@ -33,8 +33,7 @@ # this function sends the actual email function email_send( $p_recipient, $p_subject, $p_message, $p_header='' ) { global $g_from_email, $g_enable_email_notification, - $g_return_path_email, $g_use_x_priority, - $g_use_phpMailer, $g_phpMailer_method, $g_smtp_host; + $g_return_path_email, $g_use_x_priority; # short-circuit if no emails should be sent if ( OFF == $g_enable_email_notification ) { @@ -45,20 +44,10 @@ $t_subject = trim( $p_subject ); $t_message = trim( $p_message ); - # for debugging only - #echo $t_recipient."<br />".$t_subject."<br />".$t_message."<br />".$t_headers; - #exit; - #echo "<br />xxxRecipient =".$t_recipient."<br />"; - #echo "Headers =".nl2br($t_headers)."<br />"; - #echo $t_subject."<br />"; - #echo nl2br($t_message)."<br />"; - #exit; - # Visit http://www.php.net/manual/function.mail.php # if you have problems with mailing $t_headers = "From: $g_from_email\n"; - #$t_headers .= "Reply-To: $p_reply_to_email\n"; $t_headers .= "X-Sender: <$g_from_email>\n"; $t_headers .= "X-Mailer: phpWebNotes $g_phpWebNotes_version\n"; @@ -66,6 +55,7 @@ $t_headers .= "X-Priority: 0\n"; # Urgent = 1, Not Urgent = 5, Disable = 0 } $t_headers .= "Return-Path: <$g_return_path_email>\n"; # return email if error + # If you want to send foreign charsets # $t_headers .= "Content-Type: text/html; charset=iso-8859-1\n"; @@ -96,4 +86,48 @@ return str_replace( "\r\r\n", "\r\n", $p_string ); } # -------------------- + # email build note message + function email_build_note_message( $p_note_id, &$subject, &$content ) { + $note = note_get_info( note_where_id_equals( $p_note_id ) ); + if ( $note === false ) { + return false; + } + extract( $note, EXTR_PREFIX_ALL, 'note' ); + + $page = page_get_info( page_where_id_equals( $v_page_id ) ); + if ( $page === false ) { + return false; + } + extract( $page, EXTR_PREFIX_ALL, 'page' ); + + $subject = '[$page_page] $note_email'; + + $content = ''; + $content .= str_pad( '', 70, '=' ); + $content .= $page_url; + $content .= str_pad( '', 70, '-' ); + $content .= "Note Id: $note_id\n"; + $content .= "Email: $note_email\n"; + $content .= "IP: $note_ip\n"; + $content .= "Date Submitted: " . date( 'd-M-Y', $note_date_submitted ) . "\n"; + $content .= "Visible: " . ( $note_visible ? "Yes" : "No" ); + $content .= str_pad( '', 70, '-' ); + $content .= $v_note_note; + $content .= str_pad( '', 70, '=' ); + + return true; + } + + # -------------------- + # email note to administrator + # @@@ Query the database to send to moderators / administrators, rather than + # just the administrator in the configs. + function email_note_added( $p_note_id ) { + $subject = ''; + $content = ''; + email_build_note_message( $p_note_id, $subject, $content ); + + global $g_administrator_email; + email_send( $g_administrator_email, $subject, $content ); + } ?> |
From: <vb...@us...> - 2003-08-26 13:15:57
|
Update of /cvsroot/webnotes/web In directory sc8-pr-cvs1:/tmp/cvs-serv28116 Modified Files: cvs.php side_menu.php Log Message: Some website updates Index: cvs.php =================================================================== RCS file: /cvsroot/webnotes/web/cvs.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- cvs.php 2 Oct 2002 06:08:22 -0000 1.6 +++ cvs.php 25 Aug 2003 14:40:03 -0000 1.7 @@ -7,7 +7,5 @@ <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.smarttux.com/phpwebnotescvs/">phpWebNotes CVS SNAPs</a></p> </span> <?php include('footer.php') ?> Index: side_menu.php =================================================================== RCS file: /cvsroot/webnotes/web/side_menu.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- side_menu.php 26 Sep 2002 22:03:48 -0000 1.12 +++ side_menu.php 25 Aug 2003 14:40:03 -0000 1.13 @@ -51,7 +51,20 @@ </td> </tr> <tr> + </tr> + <tr> <td class="menu_sf"> + <br /> + <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> + <input type="hidden" name="cmd" value="_xclick"> + <input type="hidden" name="business" value="vi...@fu..."> + <input type="hidden" name="item_name" value="phpWebnotes"> + <input type="hidden" name="no_note" value="1"> + <input type="hidden" name="currency_code" value="USD"> + <input type="hidden" name="tax" value="0"> + <input type="image" src="https://www.paypal.com/images/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> + </form> + <br /> <br /> <a href="http://sourceforge.net/projects/webnotes/"> <img src="http://sourceforge.net/sflogo.php?group_id=15381" width="88" height="31" border="0" alt="phpWebNotes @ SourceForge"></a><br /> <br /> |
From: <vb...@us...> - 2003-08-20 17:04:45
|
Update of /cvsroot/webnotes/webnotes In directory sc8-pr-cvs1:/tmp/cvs-serv16866 Modified Files: admin_manage_notes.php Log Message: Include the total number of notes / visits in the manage notes page. Index: admin_manage_notes.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_notes.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- admin_manage_notes.php 20 Aug 2003 08:46:35 -0000 1.21 +++ admin_manage_notes.php 20 Aug 2003 11:26:16 -0000 1.22 @@ -59,11 +59,15 @@ EOT; $count = 0; + $t_total_visits = 0; + $t_total_notes = 0; $pages = page_get_array ( page_where_url_exists(), 'last_updated DESC' ); foreach( $pages as $page ) { extract( $page, EXTR_PREFIX_ALL, 'v' ); $t_number = page_notes_count( $v_id ); + $t_total_notes += $t_number; $t_visits = page_visits_count( $v_id ); + $t_total_visits += $t_visits; $t_last_updated = date( config_get( 'date_format' ), $v_last_updated ); $color = util_alternate_colors( $count++ ); @@ -72,7 +76,7 @@ echo <<<EOT </table> - <p>There are $count page(s) that are indexed.</p>\n + <p>There are $count page(s) that are indexed, with $t_total_notes note(s) and $t_total_visits visit(s).</p>\n EOT; print_footer( __FILE__ ); |
From: <vb...@us...> - 2003-08-20 10:10:17
|
Update of /cvsroot/webnotes/webnotes In directory sc8-pr-cvs1:/tmp/cvs-serv22181 Modified Files: admin_manage_notes.php Log Message: - Added the "visits" field to the pages table. - Added support for tracking the page visits. - Display the page visits in the manage notes page. Index: admin_manage_notes.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_notes.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- admin_manage_notes.php 19 Aug 2003 23:19:58 -0000 1.20 +++ admin_manage_notes.php 20 Aug 2003 08:46:35 -0000 1.21 @@ -55,22 +55,19 @@ <p><strong>Following are all the pages that use phpWebNotes:</strong></p> <p>Time now is $t_now</p> <table class="box" summary=""> - <tr><th>Page</th><th># of Notes</th><th>Last Updated</td><th>URL</th></tr>\n + <tr><th>Page</th><th># of Notes</th><th># of hits</th><th>Last Updated</td><th>URL</th></tr>\n EOT; $count = 0; $pages = page_get_array ( page_where_url_exists(), 'last_updated DESC' ); foreach( $pages as $page ) { extract( $page, EXTR_PREFIX_ALL, 'v' ); - $v_id = (integer)$v_id; - $query = "SELECT COUNT(*) FROM " . config_get( 'phpWN_note_table' ) . ' ' . - "WHERE (page_id = $v_id )"; - $result = db_query( $query ); - $t_number = db_result( $result ); + $t_number = page_notes_count( $v_id ); + $t_visits = page_visits_count( $v_id ); $t_last_updated = date( config_get( 'date_format' ), $v_last_updated ); $color = util_alternate_colors( $count++ ); - echo "<tr bgcolor=\"$color\"><td><a href=\"$v_url\">$v_page</a></td><td>$t_number</td><td>$t_last_updated</td><td>$v_url</td></tr>\n"; + echo "<tr bgcolor=\"$color\"><td><a href=\"$v_url\">$v_page</a></td><td>$t_number</td><td>$t_visits</td><td>$t_last_updated</td><td>$v_url</td></tr>\n"; } echo <<<EOT |
From: <vb...@us...> - 2003-08-20 10:10:16
|
Update of /cvsroot/webnotes/webnotes/core In directory sc8-pr-cvs1:/tmp/cvs-serv22181/core Modified Files: page_api.php pwn_api.php Log Message: - Added the "visits" field to the pages table. - Added support for tracking the page visits. - Display the page visits in the manage notes page. Index: page_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/page_api.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- page_api.php 1 Oct 2002 06:51:45 -0000 1.19 +++ page_api.php 20 Aug 2003 08:46:35 -0000 1.20 @@ -360,4 +360,30 @@ return( $t_page_data ); } ### -------------------- + function page_visit( $p_page_id ) { + $c_page_id = db_prepare_int( $p_page_id ); + $query ='UPDATE ' . config_get( 'phpWN_page_table') . ' ' . + "SET visits=visits+1 " . + "WHERE id=$c_page_id " . + "LIMIT 1"; + return ( false !== db_query( $query ) ); + } + ### -------------------- + function page_visits_count( $p_page_id ) { + $c_page_id = db_prepare_int( $p_page_id ); + + $query = "SELECT visits + FROM " . config_get( 'phpWN_page_table' ) . " + WHERE id=$c_page_id + LIMIT 1"; + + $result = db_query( $query ); + if ( db_num_rows( $result) > 0 ) { + return db_result( $result, 0, 0 ); + } + + return false; + } + ### -------------------- + ?> Index: pwn_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/pwn_api.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- pwn_api.php 1 Oct 2002 12:51:42 -0000 1.7 +++ pwn_api.php 20 Aug 2003 08:46:35 -0000 1.8 @@ -31,6 +31,7 @@ page_update_neighbours( $t_page_id, $p_prev_page, $p_next_page, $p_parent_page ); $page_data = page_prepare_theme_data( $t_page_id ); theme_body ( $page_data ); + page_visit( $t_page_id ); } } ### -------------------- |
From: <vb...@us...> - 2003-08-20 09:54:27
|
Update of /cvsroot/webnotes/webnotes/sql In directory sc8-pr-cvs1:/tmp/cvs-serv22181/sql Modified Files: db_upgrade.sql Log Message: - Added the "visits" field to the pages table. - Added support for tracking the page visits. - Display the page visits in the manage notes page. Index: db_upgrade.sql =================================================================== RCS file: /cvsroot/webnotes/webnotes/sql/db_upgrade.sql,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- db_upgrade.sql 7 Oct 2002 02:54:39 -0000 1.9 +++ db_upgrade.sql 20 Aug 2003 08:46:36 -0000 1.10 @@ -16,3 +16,4 @@ # Upgrade 2.0.0pr1 to latest # ALTER TABLE `phpwn_user_table` ADD `protected` INT( 1 ) DEFAULT '0' NOT NULL AFTER `enabled` ; +ALTER TABLE `phpWN_page_table` ADD `visits` INT(10) NOT NULL; |
From: <vb...@us...> - 2003-08-20 09:50:19
|
Update of /cvsroot/webnotes/webnotes/doc In directory sc8-pr-cvs1:/tmp/cvs-serv22181/doc Modified Files: ChangeLog Log Message: - Added the "visits" field to the pages table. - Added support for tracking the page visits. - Display the page visits in the manage notes page. Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- ChangeLog 19 Aug 2003 23:41:34 -0000 1.28 +++ ChangeLog 20 Aug 2003 08:46:35 -0000 1.29 @@ -6,9 +6,13 @@ phpWebNotes ??.??-2003 - 2.0.0 + * Database Change: Added protected field in the users table. + * Database Change: Added visits field in the pages table. * Added support for protected users. These users are useful for demo account to disallow users from changing password / email / ..etc. * Fixed a problem where the ?var=value portions of http addresses were not hyperlinked. * Added current time, last updated time for each page, number of notes of notes for each page to the manage notes page. + * Added support for tracking the number of hits on each page. + * Display the number of hits on each page in the manage notes page. 06.10-2002 - 2.0.0pr1 (2.0.0 pre-release 1) * Fixed bug causing weird "headers already sent in whatever" errors on some servers |
From: <vb...@us...> - 2003-08-20 03:33:31
|
Update of /cvsroot/webnotes/webnotes/doc In directory sc8-pr-cvs1:/tmp/cvs-serv12536/doc Modified Files: ChangeLog Log Message: Updated the change log. Index: ChangeLog =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ChangeLog,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- ChangeLog 29 Oct 2002 04:54:51 -0000 1.27 +++ ChangeLog 19 Aug 2003 23:41:34 -0000 1.28 @@ -5,8 +5,10 @@ phpWebNotes -??.11-2002 - 2.0.0 +??.??-2003 - 2.0.0 * Added support for protected users. These users are useful for demo account to disallow users from changing password / email / ..etc. + * Fixed a problem where the ?var=value portions of http addresses were not hyperlinked. + * Added current time, last updated time for each page, number of notes of notes for each page to the manage notes page. 06.10-2002 - 2.0.0pr1 (2.0.0 pre-release 1) * Fixed bug causing weird "headers already sent in whatever" errors on some servers |
From: <vb...@us...> - 2003-08-20 03:20:06
|
Update of /cvsroot/webnotes/webnotes/core In directory sc8-pr-cvs1:/tmp/cvs-serv12390/core Modified Files: string_api.php Log Message: M string_api.php - Fixed a problem where ?var=value portions of URLs were not hyperlinked. Index: string_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- string_api.php 1 Oct 2002 13:19:45 -0000 1.13 +++ string_api.php 19 Aug 2003 23:40:16 -0000 1.14 @@ -98,7 +98,7 @@ } ### -------------------- 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("/(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); } |
From: <vb...@us...> - 2003-08-20 00:59:48
|
Update of /cvsroot/webnotes/webnotes In directory sc8-pr-cvs1:/tmp/cvs-serv9034 Modified Files: admin_manage_notes.php Log Message: M admin_manage_notes.php - Added current time. - Added number of notes for each page. - Added last updated time for each page. Index: admin_manage_notes.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_manage_notes.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- admin_manage_notes.php 3 Oct 2002 03:47:50 -0000 1.19 +++ admin_manage_notes.php 19 Aug 2003 23:19:58 -0000 1.20 @@ -46,22 +46,31 @@ echo "<tr bgcolor=\"$color\"><td><a href=\"$v_url\">$v_page</a></td><td>$v_url</td><td>$v_notes_count</td></tr>\n"; } + $t_now = date( config_get( 'date_format' ) ); echo <<<EOT </table> <p>There are $count page(s) to be moderated.</p>\n <hr> <div class="spacer"></div> <p><strong>Following are all the pages that use phpWebNotes:</strong></p> + <p>Time now is $t_now</p> <table class="box" summary=""> - <tr><th>Page</th><th>URL</th></tr>\n + <tr><th>Page</th><th># of Notes</th><th>Last Updated</td><th>URL</th></tr>\n EOT; $count = 0; $pages = page_get_array ( page_where_url_exists(), 'last_updated DESC' ); foreach( $pages as $page ) { extract( $page, EXTR_PREFIX_ALL, 'v' ); + $v_id = (integer)$v_id; + $query = "SELECT COUNT(*) FROM " . config_get( 'phpWN_note_table' ) . ' ' . + "WHERE (page_id = $v_id )"; + $result = db_query( $query ); + $t_number = db_result( $result ); + $t_last_updated = date( config_get( 'date_format' ), $v_last_updated ); + $color = util_alternate_colors( $count++ ); - echo "<tr bgcolor=\"$color\"><td><a href=\"$v_url\">$v_page</a></td><td>$v_url</td></tr>\n"; + echo "<tr bgcolor=\"$color\"><td><a href=\"$v_url\">$v_page</a></td><td>$t_number</td><td>$t_last_updated</td><td>$v_url</td></tr>\n"; } echo <<<EOT @@ -73,4 +82,4 @@ print_bottom_page( $g_bottom_page_inc ); print_body_bottom(); print_html_bottom(); -?> \ No newline at end of file +?> |
From: <ro...@us...> - 2002-10-29 23:43:58
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv11775 Modified Files: config_defaults_inc.php Log Message: Save some space Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/config_defaults_inc.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- config_defaults_inc.php 7 Oct 2002 02:54:39 -0000 1.16 +++ config_defaults_inc.php 29 Oct 2002 23:43:55 -0000 1.17 @@ -204,7 +204,6 @@ # allow email notification $g_enable_email_notification = ON; - # @@@@ what is the benefit of this option? # Set to OFF to remove X-Priority header $g_use_x_priority = ON; |
From: <ro...@us...> - 2002-10-29 23:29:21
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv6633 Modified Files: gpc_api.php Log Message: We're phpWebNotes, not Mantis Index: gpc_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/core/gpc_api.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gpc_api.php 3 Oct 2002 03:47:50 -0000 1.2 +++ gpc_api.php 29 Oct 2002 23:29:18 -0000 1.3 @@ -1,9 +1,8 @@ <?php - # Mantis - a php based bugtracking system - # Copyright (C) 2000 - 2002 Kenzaburo Ito - ke...@30... - # Copyright (C) 2002 Mantis Team - man...@li... - # This program is distributed under the terms and conditions of the GPL - # See the files README and LICENSE for details + # 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$ |
From: <ro...@us...> - 2002-10-29 06:12:41
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv1238 Added Files: class.smtp.php Log Message: Dump phpMailer into CVS --- NEW FILE: class.smtp.php --- <?php /* * File: smtp.php * * Description: Define an SMTP class that can be used to connect * and communicate with any SMTP server. It implements * all the SMTP functions defined in RFC821 except TURN. * * Creator: Chris Ryan <ch...@gr...> * Created: 03/26/2001 * * TODO: * - Move all the duplicate code to a utility function * Most of the functions have the first lines of * code do the same processing. If this can be moved * into a utility function then it would reduce the * overall size of the code significantly. */ [...969 lines suppressed...] echo "SMTP -> get_lines(): \$data was \"$data\"" . $this->CRLF; echo "SMTP -> get_lines(): \$str is \"$str\"" . $this->CRLF; } $data .= $str; if($this->do_debug >= 4) { echo "SMTP -> get_lines(): \$data is \"$data\"" . $this->CRLF; } # if the 4th character is a space then we are done reading # so just break the loop if(substr($str,3,1) == " ") { break; } } return $data; } } ?> |
From: <ro...@us...> - 2002-10-29 06:12:03
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv1068 Added Files: class.phpmailer.php Log Message: Dump phpMailer into CVS --- NEW FILE: class.phpmailer.php --- <?php //////////////////////////////////////////////////// // phpmailer - PHP email class // // Version 1.62, Created 06/26/2002 // // Class for sending email using either // sendmail, PHP mail(), or SMTP. Methods are // based upon the standard AspEmail(tm) classes. // // Author: Brent R. Matzelle <bma...@ya...> // // License: LGPL, see LICENSE //////////////////////////////////////////////////// /** * phpmailer - PHP email transport class * @author Brent R. Matzelle */ [...1597 lines suppressed...] $mime[] = sprintf("Content-Type: %s; charset = \"%s\"%s", $this->ContentType, $this->CharSet, $this->LE); //$mime[] = sprintf("Content-Transfer-Encoding: %s%s", $this->Encoding, // $this->LE); if(strlen($this->Disposition) > 0) { $mime[] = sprintf("Content-Disposition: %s;"); if(strlen($this->FileName) > 0) $mime[] = sprinf("filename=\"%s\"", $this->$this->FileName); } if($bLineEnding) $mime[] = $this->LE; return join("", $mime); } } ?> |
From: <ro...@us...> - 2002-10-29 06:03:14
|
Update of /cvsroot/webnotes/webnotes/themes/classic In directory usw-pr-cvs1:/tmp/cvs-serv31230 Modified Files: theme_api.php Log Message: Its not an empty template, stop saying that it is Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/classic/theme_api.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- theme_api.php 15 Sep 2002 05:08:05 -0000 1.5 +++ theme_api.php 29 Oct 2002 06:03:10 -0000 1.6 @@ -8,17 +8,6 @@ # $Id$ # -------------------------------------------------------- - ######################################################################### - # This is an empty template to be used to create new themes. - # To create a new theme, please follow the following steps: - # - Create a directory under the themes directory with the theme name. - # - Make a copy of this file under the new theme directory - # - Assign $g_theme to the theme name (not the full path) in - # core/custom_config_inc.php - ######################################################################### - - # The path to the api.php is calculated assume this file resides in a sub-directory - # under themes. For example, themes/phpnet/. require_once ( dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'core' . DIRECTORY_SEPARATOR . 'api.php' ); |
From: <ro...@us...> - 2002-10-29 05:57:27
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv28796 Modified Files: README Log Message: Remove licence from README Index: README =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/README,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- README 2 Oct 2002 02:21:48 -0000 1.5 +++ README 29 Oct 2002 05:57:24 -0000 1.6 @@ -3,24 +3,6 @@ # This program is distributed under the terms and conditions of the GPL # See the files README and LICENSE for details -LICENSE - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -------------------------------------------------------------------------------- - phpWebNotes is a PHP based solution to letting users add their own comments to a document. It is heavily modelled after the example set by php.net. |
From: <ro...@us...> - 2002-10-29 05:55:42
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv28317 Modified Files: ROADMAP Log Message: PAM support, not LDAP support Index: ROADMAP =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/ROADMAP,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- ROADMAP 20 Sep 2002 01:16:26 -0000 1.13 +++ ROADMAP 29 Oct 2002 05:55:39 -0000 1.14 @@ -32,7 +32,7 @@ 2.1.0 * Multiple authentication modes * Add IP/IP range blocking. - * LDAP Support + * PAM Support * FAQ * Support direct links to specific notes * Allow certain HTML tags or bbcodes [url], [b], ...etc. |
From: <ro...@us...> - 2002-10-29 05:11:47
|
Update of /cvsroot/webnotes/webnotes/doc In directory usw-pr-cvs1:/tmp/cvs-serv15889 Modified Files: INSTALL Log Message: A few changes to troubleshooting Index: INSTALL =================================================================== RCS file: /cvsroot/webnotes/webnotes/doc/INSTALL,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- INSTALL 6 Oct 2002 15:35:12 -0000 1.12 +++ INSTALL 29 Oct 2002 05:11:44 -0000 1.13 @@ -38,7 +38,7 @@ database. Also, don't forget to input the correct directory paths. 5. For every page that you want notes to be available you will need to convert -their extension to one that is interpreted by PHP. Then: +their extension to one that is interpreted by PHP (Such as .php). Then: Insert the following inside the <head> </head> tag): @@ -121,10 +121,16 @@ is checked. In order to solve this problem, login to the database and set the enabled flag to 1 for the accounts that you need enabled. -* PROBLEM: Adding notes does nothing (obsolete since PHP 4.0.6 is the minimum requirement). +* PROBLEM: Adding notes does nothing -SOLUTION 1: You may have track_vars set to Off (or 0). Set this to On in your -php.ini file. As of version 4.0.3 it is permanently set to On. +SOLUTION: You may have track_vars set to Off (or 0). Set this to On in your +php.ini file. As of version 4.0.3 and newer it is set to On by default. + +* PROBLEM: phpWebNotes does not work under PHP 4.2 and 4.3 + +SOLUTION: phpWebNotes requires register_globals to be on which used to be enabled +by default in 4.1.2 and older. 4.2.0 and newer have it set to Off as default so +you will have to set register_globals to On in php.ini ------------------------------------------------------------------------------- ### Useful links ### |
From: <ro...@us...> - 2002-10-29 05:02:36
|
Update of /cvsroot/webnotes/webnotes/core In directory usw-pr-cvs1:/tmp/cvs-serv13500 Removed Files: .htaccess Log Message: Useless on non-apache servers, remove. --- .htaccess DELETED --- |