From b8c4afadf4bff7ac282ac5933eedccb1c666d873 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 17 Nov 2013 01:35:06 +0100 Subject: Nouveau fichier constants.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit En particulier pour stocker le numéro de version de FreshRSS utilisé entre autres par https://github.com/marienfressinaud/FreshRSS/issues/174 et centraliser les constantes de chemins Implémente https://github.com/marienfressinaud/FreshRSS/issues/271 --- public/index.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'public') diff --git a/public/index.php b/public/index.php index 1a1651707..bda585592 100755 --- a/public/index.php +++ b/public/index.php @@ -18,12 +18,7 @@ # # ***** END LICENSE BLOCK ***** -// Constantes de chemins -define ('PUBLIC_PATH', realpath (dirname (__FILE__))); -define ('LIB_PATH', realpath (PUBLIC_PATH . '/../lib')); -define ('APP_PATH', realpath (PUBLIC_PATH . '/../app')); -define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log')); -define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache')); +require('../constants.php'); if (file_exists (PUBLIC_PATH . '/install.php')) { include ('install.php'); -- cgit v1.2.3