Skip to content
Snippets Groups Projects
Commit befef7a3 authored by llaffont's avatar llaffont
Browse files

index.php.default en accord avec console.php

parent 04aaa269
Branches
Tags
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment