Changed includes to require_onces where applicable

This commit is contained in:
Chris Kankiewicz
2012-02-06 11:07:23 -07:00
parent de329da66f
commit 690aef9c95
2 changed files with 2 additions and 2 deletions

View File

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

View File

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