From 240a241a542a28bc2c80d1d13d8aee52a536544c Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 21 Jul 2006 04:24:59 +0000 Subject: [PATCH] Use require() instead of include() because we can't operate properly if we can't find all listed include files --- admin/adminCommentView.php | 4 ++-- admin/adminScreenshots.php | 4 ++-- admin/adminUsers.php | 4 ++-- admin/editBundle.php | 4 ++-- commentview.php | 6 +++--- preferences.php | 4 ++-- updatevote.php | 6 +++--- viewbugs.php | 2 +- votestats.php | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/admin/adminCommentView.php b/admin/adminCommentView.php index 2849c67..a92a858 100644 --- a/admin/adminCommentView.php +++ b/admin/adminCommentView.php @@ -4,8 +4,8 @@ /* Without having go into each application version to do so */ /************************************************************/ -include("path.php"); -include(BASE."include/incl.php"); +require("path.php"); +require(BASE."include/incl.php"); apidb_header("Comments"); diff --git a/admin/adminScreenshots.php b/admin/adminScreenshots.php index d98bdf3..3e1f633 100644 --- a/admin/adminScreenshots.php +++ b/admin/adminScreenshots.php @@ -4,8 +4,8 @@ /* Without having go into each application version to do so */ /************************************************************/ -include("path.php"); -include(BASE."include/incl.php"); +require("path.php"); +require(BASE."include/incl.php"); require_once(BASE."include/screenshot.php"); require_once(BASE."include/application.php"); diff --git a/admin/adminUsers.php b/admin/adminUsers.php index 165f3d7..e919628 100644 --- a/admin/adminUsers.php +++ b/admin/adminUsers.php @@ -3,8 +3,8 @@ /* Users Management */ /********************/ -include("path.php"); -include(BASE."include/incl.php"); +require("path.php"); +require(BASE."include/incl.php"); $aClean = array(); //filtered user input diff --git a/admin/editBundle.php b/admin/editBundle.php index bd8aaad..ceda808 100644 --- a/admin/editBundle.php +++ b/admin/editBundle.php @@ -1,7 +1,7 @@ hasPriv("admin")) util_show_error_page_and_exit(); diff --git a/commentview.php b/commentview.php index 0880f59..409558d 100644 --- a/commentview.php +++ b/commentview.php @@ -8,9 +8,9 @@ /* * application environment */ -include("path.php"); -include(BASE."include/incl.php"); -include(BASE."include/filter.php"); +require("path.php"); +require(BASE."include/incl.php"); +require(BASE."include/filter.php"); require_once(BASE."include/comment.php"); apidb_header("Comments"); diff --git a/preferences.php b/preferences.php index 72fa532..53cc920 100644 --- a/preferences.php +++ b/preferences.php @@ -22,8 +22,8 @@ */ // application environment -include("path.php"); -include(BASE."include/incl.php"); +require("path.php"); +require(BASE."include/incl.php"); function build_prefs_list($oUser) { diff --git a/updatevote.php b/updatevote.php index c770e49..c28773e 100644 --- a/updatevote.php +++ b/updatevote.php @@ -6,9 +6,9 @@ /* * application environment */ -include("path.php"); -include(BASE."include/incl.php"); -include(BASE."include/vote.php"); +require("path.php"); +require(BASE."include/incl.php"); +require(BASE."include/vote.php"); vote_update($_POST); diff --git a/viewbugs.php b/viewbugs.php index 977448e..e09dbd1 100644 --- a/viewbugs.php +++ b/viewbugs.php @@ -10,7 +10,7 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); diff --git a/votestats.php b/votestats.php index 343e932..1fe1fab 100644 --- a/votestats.php +++ b/votestats.php @@ -8,7 +8,7 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); require_once(BASE."include/category.php");