pearweb_manual
[ class tree: pearweb_manual ] [ index: pearweb_manual ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?php
  2. auth_require('pear.dev');
  3.  
  4. // Manual notes class
  5. require_once 'notes/ManualNotes.class.php';
  6. $manualNotes = new Manual_Notes;
  7.  
  8. $status  = 'pending';
  9. $action  = 'approveMass';
  10. $title   = 'Approve Pending User Notes';
  11. $button  = 'Approve';
  12. $caption = 'Approve Notes';
  13. $name    = 'approve';
  14.  
  15. if (isset($_GET['status']) && $_GET['status'] == 'approved') {
  16.     $status  = 'yes';
  17.     $action  = 'updateApproved';
  18.     $title   = 'Move Approved Notes to Pending';
  19.     $button  = 'Make Pending';
  20.     $caption = 'Pending';
  21.     $name    = 'pending';
  22. }
  23. /**
  24. elseif (isset($_GET['status']) && $_GET['status'] == 'deleted') {
  25.     $status  = 'no';
  26.     $action  = 'approveMass';
  27.     $title   = 'Deleted notes';
  28.     $button  = 'Un-Delete comments';
  29.     $caption = 'Deleted';
  30.     $name    = 'undelete';
  31. }
  32. */
  33. if (isset($_GET['url']) && !empty($_GET['url'])) {
  34.     $pendingComments = $manualNotes->getPageComments($_GET['url'], $status);
  35. } else {
  36.     $pendingComments = $manualNotes->getPageComments('', $status, true);
  37. }
  38.  
  39. $url = isset($_GET['url']) ? strip_tags($_GET['url']) : '';
  40. if (!isset($error)) {
  41.     $error = '';
  42. }
  43.  
  44. require PEARWEB_TEMPLATEDIR . '/notes/note-manage-admin.tpl.php';

Documentation generated on Mon, 11 Mar 2019 16:04:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.