Clean up includes. Make 'path.php' and 'incl.php' required includes. Switch to using
require_once() for including files in /include so we can have include/*.php files include their own dependencies rather than figuring out that to include A.php we need to include B.php
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user