Update of /cvsroot/webnotes/webnotes
In directory usw-pr-cvs1:/tmp/cvs-serv24424
Modified Files:
action.php admin_pending.php
Log Message:
- page_delete_notes() was not executing the query and hence leaving orphan
notes.
- Added some extra actions for viewing / moderation.
- Added visibility states as constants.
- Implemented note_accept(), note_pending(), note_decline(), note_archive(),
note_delete() and note_pack_deleted().
- Changed some $g_ with config_get().
- Enhanced link_api to support custom captions. For example, the caption may be
an image, text, or whatever.
- Initial structure to be used for inline moderation.
- View notes with different visibility levels based on the access levels.
Index: action.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/action.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- action.php 18 Sep 2002 12:33:31 -0000 1.4
+++ action.php 19 Sep 2002 04:15:47 -0000 1.5
@@ -26,18 +26,25 @@
# @@@@ add handling for confirm?
+ # The access level check is done in the APIs
if ( isset( $f_note_id )) {
if ( 'accept' === $f_action ) {
- note_accept( $f_note_id );
+ note_accept( $f_note_id );
} else if ( 'reject' === $f_action ) {
- note_decline( $f_note_id );
+ note_decline( $f_note_id );
} else if ( 'archive' === $f_action ) {
- note_archive( $f_note_id );
+ note_archive( $f_note_id );
} else if ( 'delete' === $f_action ) {
- note_delete( $f_note_id );
+ note_delete( $f_note_id );
+ } else if ( 'pack' === $f_action ) {
+ # in this case id = 0
+ note_pack_deleted();
+ } else if ( 'pending' === $f_action ) {
+ note_pending( $f_note_id );
}
}
-
+
+ # The access level check is done in the APIs
if ( isset( $f_page_id ) ) {
$c_page_id = stripslashes( urldecode( $f_page_id ) );
if ( 'unindex' === $f_action ) {
Index: admin_pending.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/admin_pending.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- admin_pending.php 18 Sep 2002 12:33:31 -0000 1.4
+++ admin_pending.php 19 Sep 2002 04:15:47 -0000 1.5
@@ -25,6 +25,20 @@
print_admin_menu();
+#
+# @@@ Should list here:
+# - all pages (sorted by page name)
+# - pages with pending notes (sorted descending)
+#
+# Each page should have the number of accepted notes, declined notes,
+# pending notes, archived notes, and deleted notes.
+#
+# Clicking on a page should open it in another window.
+#
+
+ #print_web_notes( 'XML', 'http://webnotes.sf.net/phpWebNotes-2.0.0-dev/sample/xml.php' );
+
+/*
$result = note_queue( false );
echo '<div align="center">';
@@ -58,6 +72,7 @@
echo '</table>';
}
echo '</div>';
+*/
echo '<br />';
print_footer( __FILE__ );
|