mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-25 05:01:37 +02:00
Changed includes to require_onces where applicable
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<?php include('resources/DirectoryLister.php'); $lister = new DirectoryLister(); ?>
|
||||
<?php require_once('resources/DirectoryLister.php'); $lister = new DirectoryLister(); ?>
|
||||
|
||||
<head>
|
||||
<title>Directory listing of <?php echo $lister->getListedPath(); ?></title>
|
||||
|
@@ -65,7 +65,7 @@ class DirectoryLister {
|
||||
$configFile = $this->_appDir . '/config.php';
|
||||
|
||||
if (file_exists($configFile)) {
|
||||
include($configFile);
|
||||
require_once($configFile);
|
||||
} else {
|
||||
$this->setSystemMessage('error', '<b>ERROR:</b> Unable to locate application config file');
|
||||
}
|
||||
|
Reference in New Issue
Block a user