diff --git a/htdocs/index.php b/htdocs/index.php index 4366eac6..73377c11 100755 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -8,11 +8,8 @@ set_include_path('.' . PATH_SEPARATOR . '../include/' . PATH_SEPARATOR . '../application/models' . PATH_SEPARATOR . '../application/default/controllers' . PATH_SEPARATOR . get_include_path()); -//include "Zend/Loader.php"; -//Zend_Loader::registerAutoload(); -require_once 'Zend/Loader/Autoloader.php'; -$loader = Zend_Loader_Autoloader::getInstance(); -$loader->setFallbackAutoloader(true); +include "Zend/Loader.php"; +Zend_Loader::registerAutoload(); // load configuration $config = new Zend_Config_Ini('../application/config.ini', 'general'); @@ -27,8 +24,6 @@ $auth->setStorage(new Zend_Auth_Storage_Session('westdc')); $db = Zend_Db::factory($config->db); Zend_Db_Table::setDefaultAdapter($db); $registry->set('db',$db); -$filedb = Zend_Db::factory($config->filelist); -$registry->set('filelist', $filedb); // setup controller $frontController = Zend_Controller_Front::getInstance();