diff --git a/account.php b/account.php index 7a6993a..ded345d 100644 --- a/account.php +++ b/account.php @@ -18,10 +18,10 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); -require(BASE."include/mail.php"); +require_once(BASE."include/mail.php"); // set http header to not cache header("Pragma: no-cache"); diff --git a/addcomment.php b/addcomment.php index 44e25ff..2c821b9 100644 --- a/addcomment.php +++ b/addcomment.php @@ -12,11 +12,10 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); -require(BASE."include/application.php"); -require(BASE."include/mail.php"); +require_once(BASE."include/comment.php"); // you must be logged in to submit comments if(!$_SESSION['current']->isLoggedIn()) diff --git a/admin/addAppNote.php b/admin/addAppNote.php index 2265f65..23ac5f7 100644 --- a/admin/addAppNote.php +++ b/admin/addAppNote.php @@ -3,10 +3,9 @@ /* Add Application Note */ /************************/ -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); -require(BASE."include/application.php"); -require(BASE."include/mail.php"); +require_once(BASE."include/note.php"); $aClean = array(); //array of filtered user input diff --git a/admin/addCategory.php b/admin/addCategory.php index 4d65e58..64b8371 100644 --- a/admin/addCategory.php +++ b/admin/addCategory.php @@ -1,7 +1,7 @@ diff --git a/appbrowse.php b/appbrowse.php index 396c348..9731976 100644 --- a/appbrowse.php +++ b/appbrowse.php @@ -7,11 +7,11 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/"."incl.php"); require(BASE."include/filter.php"); -require(BASE."include/"."appdb.php"); -require(BASE."include/"."category.php"); +require_once(BASE."include/"."appdb.php"); +require_once(BASE."include/"."category.php"); function admin_menu() { diff --git a/appdbStats.php b/appdbStats.php index ece938d..1cd2e05 100644 --- a/appdbStats.php +++ b/appdbStats.php @@ -3,10 +3,9 @@ /* Code to view all kinds of interesting statistics about appdb */ /****************************************************************/ -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); -require(BASE."include/category.php"); -require(BASE."include/maintainer.php"); +require_once(BASE."include/user.php"); apidb_header("Appdb Statistics"); echo html_frame_start("","60%","",0); diff --git a/appimage.php b/appimage.php index ccec3dd..2426287 100644 --- a/appimage.php +++ b/appimage.php @@ -12,11 +12,10 @@ * TODO: * - rename and document sREQUEST_METHOD * - replace iId with iScreenshotId - * - replace require_once with require after checking that it doesn't break anything */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); require_once(BASE."include/screenshot.php"); diff --git a/appsubmit.php b/appsubmit.php index 2e44b70..2f8c7fd 100644 --- a/appsubmit.php +++ b/appsubmit.php @@ -1,4 +1,8 @@ diff --git a/maintainerdelete.php b/maintainerdelete.php index 7ff436b..19e4972 100644 --- a/maintainerdelete.php +++ b/maintainerdelete.php @@ -18,10 +18,10 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); -require(BASE."include/category.php"); -require(BASE."include/application.php"); +require_once(BASE."include/category.php"); +require_once(BASE."include/application.php"); $aClean = array(); //array of filtered user input diff --git a/maintainersubmit.php b/maintainersubmit.php index d8262ed..09f6043 100644 --- a/maintainersubmit.php +++ b/maintainersubmit.php @@ -16,10 +16,10 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); -require(BASE."include/category.php"); -require(BASE."include/application.php"); +require_once(BASE."include/application.php"); +require_once(BASE.'include/version.php'); $aClean = array(); //array of filtered user input diff --git a/screenshots.php b/screenshots.php index 811ae1e..03a0354 100644 --- a/screenshots.php +++ b/screenshots.php @@ -19,12 +19,12 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); require_once(BASE."include/screenshot.php"); -require(BASE."include/application.php"); -require(BASE."include/mail.php"); +require_once(BASE."include/application.php"); +require_once(BASE."include/version.php"); // we issued a command if($aClean['sCmd']) diff --git a/search.php b/search.php index ed5f8a8..936817b 100644 --- a/search.php +++ b/search.php @@ -10,10 +10,9 @@ */ // application environment -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); -require(BASE."include/application.php"); apidb_header("Search Results"); perform_search_and_output_results($aClean['sSearchQuery']); diff --git a/testResults.php b/testResults.php index 6d0318d..6ec4644 100644 --- a/testResults.php +++ b/testResults.php @@ -3,12 +3,11 @@ /* code to submit, view and resubmit Test Results */ /**************************************************/ -include("path.php"); +require("path.php"); require(BASE."include/incl.php"); require(BASE."include/filter.php"); -require(BASE."include/tableve.php"); -require(BASE."include/application.php"); -require(BASE."include/mail.php"); +require_once(BASE."include/tableve.php"); +require_once(BASE."include/application.php"); require_once(BASE."include/testResults.php"); require_once(BASE."include/distributions.php"); diff --git a/vendorview.php b/vendorview.php index 024e053..8e27d04 100644 --- a/vendorview.php +++ b/vendorview.php @@ -6,9 +6,9 @@ /* * application environment */ -include("path.php"); -require_once(BASE."include/incl.php"); -require_once(BASE."include/filter.php"); +require("path.php"); +require(BASE."include/incl.php"); +require(BASE."include/filter.php"); require_once(BASE."include/application.php"); require_once(BASE."include/vendor.php"); diff --git a/viewScreenshots.php b/viewScreenshots.php index 7a581fc..8e33431 100644 --- a/viewScreenshots.php +++ b/viewScreenshots.php @@ -4,12 +4,11 @@ /* Without having go into each application version to do so */ /************************************************************/ -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/screenshot.php"); -require(BASE."include/application.php"); -require(BASE."include/mail.php"); +require_once(BASE."include/application.php"); apidb_header("View Screenshots"); /* display a range of 10 pages */ diff --git a/votestats.php b/votestats.php index 20f23a8..4d03ea1 100644 --- a/votestats.php +++ b/votestats.php @@ -7,9 +7,9 @@ * application environment */ include("path.php"); -include(BASE."include/incl.php"); +require(BASE."include/incl.php"); require(BASE."include/filter.php"); -require(BASE."include/category.php"); +require_once(BASE."include/category.php"); /* default to 25 apps, main categories */ $topNumber = 25;