From 50f3b27eb9d15369c6e64ac5140db1b0a90e681d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 21 Nov 2013 12:26:32 +0100 Subject: install.php comme point d'entrée possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Permet d'appeler install.php directement plutôt que index.php (qui reste possible). --- public/index.php | 6 +++--- public/install.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'public') diff --git a/public/index.php b/public/index.php index 108853fb7..5728d981b 100755 --- a/public/index.php +++ b/public/index.php @@ -18,11 +18,11 @@ # # ***** END LICENSE BLOCK ***** -require('../constants.php'); - if (file_exists ('install.php')) { - include ('install.php'); + require('install.php'); } else { + require('../constants.php'); + session_cache_limiter(''); require (LIB_PATH . '/http-conditional.php'); $dateLastModification = max( diff --git a/public/install.php b/public/install.php index ed7c5e3bb..dbe79e774 100644 --- a/public/install.php +++ b/public/install.php @@ -1,4 +1,5 @@