? patches
? search.txt
? search2.txt
? u.php
? modules/forum/forum.module---
? modules/forum/forum.module_orig
? sites/default/settings.php
Index: includes/file.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/file.inc,v
retrieving revision 1.97
diff -u -p -r1.97 file.inc
--- includes/file.inc	24 Apr 2007 13:53:10 -0000	1.97
+++ includes/file.inc	20 May 2007 10:39:22 -0000
@@ -566,7 +566,7 @@ function file_transfer($source, $headers
     fclose($fd);
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
   exit();
 }
@@ -574,9 +574,9 @@ function file_transfer($source, $headers
 /**
  * Call modules that implement hook_file_download() to find out if a file is
  * accessible and what headers it should be transferred with. If a module
- * returns -1 drupal_access_denied() will be returned. If one or more modules
+ * returns -1, MENU_ACCESS_DENIED will be returned. If one or more modules
  * returned headers the download will start with the returned headers. If no
- * modules respond drupal_not_found() will be returned.
+ * modules respond, MENU_NOT_FOUND will be returned.
  */
 
 function file_download() {
@@ -592,13 +592,13 @@ function file_download() {
   if (file_exists(file_create_path($filepath))) {
     $headers = module_invoke_all('file_download', $filepath);
     if (in_array(-1, $headers)) {
-        return drupal_access_denied();
+        return MENU_ACCESS_DENIED;
     }
     if (count($headers)) {
         file_transfer($filepath, $headers);
     }
   }
-  return drupal_not_found();
+  return MENU_NOT_FOUND;
 }
 
 
Index: includes/locale.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/locale.inc,v
retrieving revision 1.126
diff -u -p -r1.126 locale.inc
--- includes/locale.inc	17 May 2007 08:34:43 -0000	1.126
+++ includes/locale.inc	20 May 2007 10:39:33 -0000
@@ -176,7 +176,7 @@ function locale_languages_edit_form($lan
     return $form;
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -359,7 +359,7 @@ function locale_languages_delete_form($l
   $languages = language_list();
 
   if (!isset($languages[$langcode])) {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
   else {
     $form['langcode'] = array('#type' => 'value', '#value' => $langcode);
Index: modules/blog/blog.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/blog/blog.module,v
retrieving revision 1.280
diff -u -p -r1.280 blog.module
--- modules/blog/blog.module	30 Apr 2007 17:03:23 -0000	1.280
+++ modules/blog/blog.module	20 May 2007 10:39:34 -0000
@@ -160,7 +160,7 @@ function blog_page_user($uid) {
     return $output;
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/book/book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book/book.module,v
retrieving revision 1.420
diff -u -p -r1.420 book.module
--- modules/book/book.module	14 May 2007 13:43:34 -0000	1.420
+++ modules/book/book.module	20 May 2007 10:39:39 -0000
@@ -654,7 +654,7 @@ function book_export($type, $nid) {
   }
   else {
     drupal_set_message(t('Unknown export format.'));
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -692,7 +692,7 @@ function book_export_html($nid, $depth) 
     return theme('book_export_html', check_plain($node->title), $content);
   }
   else {
-    drupal_access_denied();
+    return MENU_ACCESS_DENIED;
   }
 }
 
@@ -890,7 +890,7 @@ function book_admin_edit($nid) {
     return $form;
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.544
diff -u -p -r1.544 comment.module
--- modules/comment/comment.module	20 May 2007 07:30:03 -0000	1.544
+++ modules/comment/comment.module	20 May 2007 10:39:51 -0000
@@ -631,7 +631,7 @@ function comment_edit($cid) {
     return comment_form_box((array)$comment);
   }
   else {
-    drupal_access_denied();
+    return MENU_ACCESS_DENIED;
   }
 }
 
Index: modules/filter/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.173
diff -u -p -r1.173 filter.module
--- modules/filter/filter.module	14 May 2007 13:43:35 -0000	1.173
+++ modules/filter/filter.module	20 May 2007 10:39:58 -0000
@@ -345,7 +345,7 @@ function filter_admin_delete() {
     }
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/menu/menu.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/menu/menu.module,v
retrieving revision 1.111
diff -u -p -r1.111 menu.module
--- modules/menu/menu.module	16 May 2007 13:45:16 -0000	1.111
+++ modules/menu/menu.module	20 May 2007 10:40:03 -0000
@@ -220,8 +220,7 @@ function menu_flip_item($visible, $mid, 
 function menu_edit_item_form($type, $mid = 0) {
   if ($type == 'edit') {
     if (!($item = menu_get_item_by_mid($mid))) {
-      drupal_not_found();
-      return;
+      return MENU_NOT_FOUND;
     }
   }
   else {
@@ -415,8 +414,7 @@ function menu_node_form_delete($node) {
 function menu_edit_menu_form($type, $mid = 0) {
   if ($type == 'edit') {
     if (!$item = menu_get_item_by_mid($mid)) {
-      drupal_not_found();
-      return;
+      return MENU_NOT_FOUND;
     }
   }
   else {
@@ -447,8 +445,7 @@ function menu_edit_menu_form($type, $mid
  */
 function menu_item_delete_form($mid) {
   if (!($menu = db_fetch_object(db_query('SELECT type, path, title FROM {menu} WHERE mid = %d', $mid)))) {
-    drupal_not_found();
-    return;
+    return MENU_NOT_FOUND;
   }
 
   $form['path'] = array('#type' => 'value', '#value' => $menu->path);
@@ -494,7 +491,7 @@ function menu_reset_item($mid) {
     return confirm_form($form, t('Are you sure you want to reset the item %item to its default values?', array('%item' => $item->title)), 'admin/build/menu', t('Any customizations will be lost. This action cannot be undone.'), t('Reset'));
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.816
diff -u -p -r1.816 node.module
--- modules/node/node.module	20 May 2007 07:28:05 -0000	1.816
+++ modules/node/node.module	20 May 2007 10:40:19 -0000
@@ -1768,7 +1768,7 @@ function node_revision_revert($nid, $rev
     }
     drupal_goto('node/'. $nid .'/revisions');
   }
-  drupal_access_denied();
+  return MENU_ACCESS_DENIED;
 }
 
 /**
@@ -1801,7 +1801,7 @@ function node_revision_delete($nid, $rev
     }
   }
 
-  drupal_access_denied();
+  return MENU_ACCESS_DENIED;
 }
 
 /**
@@ -2406,8 +2406,7 @@ function node_revisions() {
         if ((user_access('view revisions') || user_access('administer nodes')) && node_access('view', $node)) {
           return node_revision_overview($node);
         }
-        drupal_access_denied();
-        return;
+        return MENU_ACCESS_DENIED;
       case 'view':
         if (is_numeric(arg(3))) {
           $node = node_load(arg(1), arg(3));
@@ -2416,8 +2415,7 @@ function node_revisions() {
               drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp))));
               return node_show($node, arg(2));
             }
-            drupal_access_denied();
-            return;
+            return MENU_ACCESS_DENIED;
           }
         }
         break;
@@ -2429,7 +2427,7 @@ function node_revisions() {
         break;
     }
   }
-  drupal_not_found();
+  return MENU_NOT_FOUND;
 }
 
 /**
Index: modules/poll/poll.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/poll/poll.module,v
retrieving revision 1.228
diff -u -p -r1.228 poll.module
--- modules/poll/poll.module	14 May 2007 13:43:36 -0000	1.228
+++ modules/poll/poll.module	20 May 2007 10:40:21 -0000
@@ -484,7 +484,7 @@ function poll_results() {
     return node_show($node, 0);
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -511,7 +511,7 @@ function poll_votes() {
     print theme('page', $output);
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -555,7 +555,7 @@ function poll_vote(&$node) {
     drupal_goto('node/'. $nid);
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -588,7 +588,7 @@ function poll_cancel(&$node) {
     drupal_goto('node/'. $nid);
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/profile/profile.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v
retrieving revision 1.201
diff -u -p -r1.201 profile.module
--- modules/profile/profile.module	14 May 2007 13:43:36 -0000	1.201
+++ modules/profile/profile.module	20 May 2007 10:40:25 -0000
@@ -215,8 +215,7 @@ function profile_field_form($arg = NULL)
       $edit = db_fetch_array(db_query('SELECT * FROM {profile_fields} WHERE fid = %d', $fid));
 
       if (!$edit) {
-        drupal_not_found();
-        return;
+        return MENU_NOT_FOUND;
       }
       drupal_set_title(t('edit %title', array('%title' => $edit['title'])));
       $form['fid'] = array('#type' => 'value',
@@ -225,15 +224,13 @@ function profile_field_form($arg = NULL)
       $type = $edit['type'];
     }
     else {
-      drupal_not_found();
-      return;
+      return MENU_NOT_FOUND;
     }
   }
   else {
     $types = _profile_field_types();
     if (!isset($types[$arg])) {
-      drupal_not_found();
-      return;
+      return MENU_NOT_FOUND;
     }
     $type = $arg;
     drupal_set_title(t('add new %type', array('%type' => $types[$type])));
@@ -392,8 +389,7 @@ function profile_field_form_submit($form
 function profile_field_delete($fid) {
   $field = db_fetch_object(db_query("SELECT title FROM {profile_fields} WHERE fid = %d", $fid));
   if (!$field) {
-    drupal_not_found();
-    return;
+    return MENU_NOT_FOUND;
   }
   $form['fid'] = array('#type' => 'value', '#value' => $fid);
   $form['title'] = array('#type' => 'value', '#value' => $field->title);
@@ -459,13 +455,11 @@ function profile_browse() {
   if ($name && $field->fid) {
     // Only allow browsing of fields that have a page title set.
     if (empty($field->page)) {
-      drupal_not_found();
-      return;
+      return MENU_NOT_FOUND;
     }
     // Do not allow browsing of private fields by non-admins.
     if (!user_access('administer users') && $field->visibility == PROFILE_PRIVATE) {
-       drupal_access_denied();
-       return;
+       return MENU_ACCESS_DENIED;
     }
 
     // Compile a list of fields to show.
@@ -491,8 +485,7 @@ function profile_browse() {
         $arguments[] = $value;
         break;
       default:
-        drupal_not_found();
-        return;
+        return MENU_NOT_FOUND;
     }
 
     // Extract the affected users:
@@ -518,7 +511,7 @@ function profile_browse() {
     return $output;
   }
   else if ($name && !$field->fid) {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
   else {
     // Compile a list of fields to show.
Index: modules/statistics/statistics.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/statistics/statistics.module,v
retrieving revision 1.258
diff -u -p -r1.258 statistics.module
--- modules/statistics/statistics.module	30 Apr 2007 17:03:27 -0000	1.258
+++ modules/statistics/statistics.module	20 May 2007 10:40:29 -0000
@@ -186,7 +186,7 @@ function statistics_access_log($aid) {
     return $output;
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -219,7 +219,7 @@ function statistics_node_tracker() {
     return $output;
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
@@ -250,7 +250,7 @@ function statistics_user_tracker() {
     return $output;
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.478
diff -u -p -r1.478 system.module
--- modules/system/system.module	17 May 2007 07:28:42 -0000	1.478
+++ modules/system/system.module	20 May 2007 10:40:44 -0000
@@ -392,7 +392,7 @@ function system_main_admin_page($arg = N
   // Let's 404 them since the menu system cannot be told we do not
   // accept arguments.
   if (isset($arg) && substr($arg, 0, 3) != 'by-') {
-    return drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 
   // Check for status report errors.
@@ -2640,7 +2640,7 @@ function system_batch_page() {
   require_once './includes/batch.inc';
   $output = _batch_page();
   if ($output === FALSE) {
-    drupal_access_denied();
+    return MENU_ACCESS_DENIED;
   }
   else {
     // Force a page without blocks or messages to
Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.355
diff -u -p -r1.355 taxonomy.module
--- modules/taxonomy/taxonomy.module	14 May 2007 13:43:37 -0000	1.355
+++ modules/taxonomy/taxonomy.module	20 May 2007 10:40:51 -0000
@@ -1382,7 +1382,7 @@ function taxonomy_terms_parse_string($st
 function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
   $terms = taxonomy_terms_parse_string($str_tids);
   if ($terms['operator'] != 'and' && $terms['operator'] != 'or') {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 
   if ($terms['tids']) {
@@ -1425,11 +1425,11 @@ function taxonomy_term_page($str_tids = 
           node_feed($result, $channel);
           break;
         default:
-          drupal_not_found();
+          return MENU_NOT_FOUND;
       }
     }
     else {
-      drupal_not_found();
+      return MENU_NOT_FOUND;
     }
   }
 }
@@ -1454,7 +1454,7 @@ function taxonomy_admin_term_edit($tid) 
   if ($term = (array)taxonomy_get_term($tid)) {
     return drupal_get_form('taxonomy_form_term', $term['vid'], $term);
   }
-  return drupal_not_found();
+  return MENU_NOT_FOUND;
 }
 
 /**
Index: modules/tracker/tracker.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/tracker/tracker.module,v
retrieving revision 1.148
diff -u -p -r1.148 tracker.module
--- modules/tracker/tracker.module	16 May 2007 13:45:16 -0000	1.148
+++ modules/tracker/tracker.module	20 May 2007 10:40:52 -0000
@@ -66,11 +66,11 @@ function tracker_track_user() {
       return tracker_page($account->uid);
     }
     else {
-      drupal_access_denied();
+      return MENU_ACCESS_DENIED;
     }
   }
   else {
-    drupal_not_found();
+    return MENU_NOT_FOUND;
   }
 }
 
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.782
diff -u -p -r1.782 user.module
--- modules/user/user.module	17 May 2007 21:33:59 -0000	1.782
+++ modules/user/user.module	20 May 2007 10:41:08 -0000
@@ -1268,7 +1268,7 @@ function user_pass_reset($uid, $timestam
     else {
       // Deny access, no more clues.
       // Everything will be in the watchdog's URL for the administrator to check.
-      drupal_access_denied();
+      return MENU_ACCESS_DENIED;
     }
   }
 }
