![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| wiesemann Fri May 11 21:13:11 2007 UTC Modified files: /pearweb/public_html/notes/admin index.php trans.php Log: - fix indefinite "delete loop" (undeleting was not possible) http://cvs.php.net/viewvc.cgi/pearwe...&diff_format=u Index: pearweb/public_html/notes/admin/index.php diff -u pearweb/public_html/notes/admin/index.php:1.10 pearweb/public_html/notes/admin/index.php:1.11 --- pearweb/public_html/notes/admin/index.php:1.10 Fri May 11 20:54:15 2007 +++ pearweb/public_html/notes/admin/index.php Fri May 11 21:13:11 2007 @@ -28,7 +28,7 @@ $title = 'Deleted notes'; $button = 'Un-Delete comments'; $caption = 'Deleted'; - $name = 'delete'; + $name = 'undelete'; } if (isset($_GET['url']) && !empty($_GET['url'])) { http://cvs.php.net/viewvc.cgi/pearwe...&diff_format=u Index: pearweb/public_html/notes/admin/trans.php diff -u pearweb/public_html/notes/admin/trans.php:1.10 pearweb/public_html/notes/admin/trans.php:1.11 --- pearweb/public_html/notes/admin/trans.php:1.10 Fri May 11 20:54:15 2007 +++ pearweb/public_html/notes/admin/trans.php Fri May 11 21:13:11 2007 @@ -131,12 +131,12 @@ case 'approvemass': if (isset($_POST['noteIds']) && is_array($_POST['noteIds'])) { - if (isset($_POST['approve'])) { + if (isset($_POST['approve']) || isset($_POST['undelete'])) { $notes = $manualNotes->updateCommentList($_POST['noteIds'], 'yes'); } elseif (isset($_POST['delete'])) { $notes = $manualNotes->updateCommentList($_POST['noteIds'], 'no'); } else { - $notes = PEAR::raiseError('Neither delete nor approve was selected'); + $notes = PEAR::raiseError('Neither delete nor un-delete nor approve was selected'); } if (PEAR::isError($notes)) { | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, indexphp, pearweb, transphp |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pearweb /public_html/notes/admin index.php trans.php /templates/notes note-manage-admin.tpl.php | Mark Wiesemann | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /public_html/bugs/rss bug.php | Mark Wiesemann | Pear | 0 | 05-20-2007 7:42 PM |
| [PEPr][ADMIN] XML::RSSBuilder deleted | David Coallier | Pear | 3 | 05-20-2007 7:41 PM |
| Google uses a new spider to index web pages | FURiON | Search Engines and Directories | 3 | 06-25-2006 7:18 PM |
| Featured Websites | ||||
|