diff --git a/index.php.default b/index.php.default index 29075b4dd02bb55d59f6c8d12ba500e86fd14c79..1db29a75dcdc8292c83425bc584a2a4bdb82425f 100644 --- a/index.php.default +++ b/index.php.default @@ -19,30 +19,12 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -set_include_path('.' . PATH_SEPARATOR . './library' - . PATH_SEPARATOR . '../ZendFramework-1.6.2/library' - . PATH_SEPARATOR . get_include_path()); - -// Includes de base -include_once "local.php"; -$site= substr($_SERVER['SCRIPT_NAME'], 1, strpos($_SERVER['SCRIPT_NAME'], "index.php") -2); -$parts=explode('/', $site); -if(!file_exists("../" . end($parts))) { - echo "Erreur de vhost !" ; - exit ; -} - -define("BASE_URL", "/" . $site) ; - -include_once "fonctions/fonctions.php"; -require_once "Zend/Loader.php"; -require_once "library/startup.php"; - -$frontController = setupOpac(); +require('includes.php'); try { - $frontController->dispatch(); + setupOpac()->dispatch(); } catch(Exception $e) { echo $e->getMessage(); } + ?> \ No newline at end of file