diff options
| author | 2013-04-14 18:57:47 +0200 | |
|---|---|---|
| committer | 2013-04-14 18:57:47 +0200 | |
| commit | 8c2c5d287d5ac08aa9d0a3fb3d353ea7a18c92c3 (patch) | |
| tree | 092efce746a6edc2b43ec701ea14be6fa2a986ab /public/index.php | |
| parent | 9b8fab7b80052cc3bb11f860ad3efd85ad8950cd (diff) | |
Fix issue #43 : création d'un installateur
Diffstat (limited to 'public/index.php')
| -rwxr-xr-x | public/index.php | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/public/index.php b/public/index.php index 330843719..4e39d028e 100755 --- a/public/index.php +++ b/public/index.php @@ -25,16 +25,20 @@ define ('APP_PATH', realpath (PUBLIC_PATH . '/../app')); define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log')); define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache')); -set_include_path (get_include_path () - . PATH_SEPARATOR - . LIB_PATH - . PATH_SEPARATOR - . LIB_PATH . '/minz' - . PATH_SEPARATOR - . APP_PATH); +if (file_exists (PUBLIC_PATH . '/install.php')) { + include ('install.php'); +} else { + set_include_path (get_include_path () + . PATH_SEPARATOR + . LIB_PATH + . PATH_SEPARATOR + . LIB_PATH . '/minz' + . PATH_SEPARATOR + . APP_PATH); -require (APP_PATH . '/App_FrontController.php'); + require (APP_PATH . '/App_FrontController.php'); -$front_controller = new App_FrontController (); -$front_controller->init (); -$front_controller->run (); + $front_controller = new App_FrontController (); + $front_controller->init (); + $front_controller->run (); +} |
