Use require() instead of include() because we can't operate properly if we can't find all listed include files

This commit is contained in:
Chris Morgan
2006-07-21 04:24:59 +00:00
committed by WineHQ
parent 9364f5bc5a
commit 240a241a54
9 changed files with 18 additions and 18 deletions

View File

@@ -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");

View File

@@ -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");

View File

@@ -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

View File

@@ -1,7 +1,7 @@
<?php
include("path.php");
include(BASE."include/"."incl.php");
require("path.php");
require(BASE."include/"."incl.php");
if(!$_SESSION['current']->hasPriv("admin"))
util_show_error_page_and_exit();

View File

@@ -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");

View File

@@ -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)
{

View File

@@ -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);

View File

@@ -10,7 +10,7 @@
*/
// application environment
include("path.php");
require("path.php");
require(BASE."include/incl.php");
require(BASE."include/filter.php");

View File

@@ -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");