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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user