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:
@@ -4,8 +4,8 @@
|
|||||||
/* Without having go into each application version to do so */
|
/* Without having go into each application version to do so */
|
||||||
/************************************************************/
|
/************************************************************/
|
||||||
|
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
|
|
||||||
apidb_header("Comments");
|
apidb_header("Comments");
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
/* Without having go into each application version to do so */
|
/* Without having go into each application version to do so */
|
||||||
/************************************************************/
|
/************************************************************/
|
||||||
|
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
require_once(BASE."include/screenshot.php");
|
require_once(BASE."include/screenshot.php");
|
||||||
require_once(BASE."include/application.php");
|
require_once(BASE."include/application.php");
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
/* Users Management */
|
/* Users Management */
|
||||||
/********************/
|
/********************/
|
||||||
|
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
|
|
||||||
$aClean = array(); //filtered user input
|
$aClean = array(); //filtered user input
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/"."incl.php");
|
require(BASE."include/"."incl.php");
|
||||||
|
|
||||||
if(!$_SESSION['current']->hasPriv("admin"))
|
if(!$_SESSION['current']->hasPriv("admin"))
|
||||||
util_show_error_page_and_exit();
|
util_show_error_page_and_exit();
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
/*
|
/*
|
||||||
* application environment
|
* application environment
|
||||||
*/
|
*/
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
include(BASE."include/filter.php");
|
require(BASE."include/filter.php");
|
||||||
require_once(BASE."include/comment.php");
|
require_once(BASE."include/comment.php");
|
||||||
|
|
||||||
apidb_header("Comments");
|
apidb_header("Comments");
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// application environment
|
// application environment
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
|
|
||||||
function build_prefs_list($oUser)
|
function build_prefs_list($oUser)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
/*
|
/*
|
||||||
* application environment
|
* application environment
|
||||||
*/
|
*/
|
||||||
include("path.php");
|
require("path.php");
|
||||||
include(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
include(BASE."include/vote.php");
|
require(BASE."include/vote.php");
|
||||||
|
|
||||||
vote_update($_POST);
|
vote_update($_POST);
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// application environment
|
// application environment
|
||||||
include("path.php");
|
require("path.php");
|
||||||
require(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
require(BASE."include/filter.php");
|
require(BASE."include/filter.php");
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// application environment
|
// application environment
|
||||||
include("path.php");
|
require("path.php");
|
||||||
require(BASE."include/incl.php");
|
require(BASE."include/incl.php");
|
||||||
require(BASE."include/filter.php");
|
require(BASE."include/filter.php");
|
||||||
require_once(BASE."include/category.php");
|
require_once(BASE."include/category.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user