diff options
| author | 2013-12-26 01:56:58 +0100 | |
|---|---|---|
| committer | 2013-12-26 01:56:58 +0100 | |
| commit | 58300c36ad77e8d788e99825d509fe8657a36854 (patch) | |
| tree | 6167a28a3c728c65c30256c1f29fd0a0552d8676 /constants.php | |
| parent | 1da74b1eddfafd9191548e0fde150690b80f694b (diff) | |
Cookie : sous-répertoire pour index (changements de répertoires !)
Implémente https://github.com/marienfressinaud/FreshRSS/issues/333
/public/ est renommé /p/
/public/index.php est déplacé dans /p/i/index.php
Le cookie de session est limité à /p/i/
Diffstat (limited to 'constants.php')
| -rw-r--r-- | constants.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/constants.php b/constants.php index c22209efe..0c7adc57e 100644 --- a/constants.php +++ b/constants.php @@ -3,12 +3,15 @@ define('FRESHRSS_VERSION', '0.7-beta3'); define('FRESHRSS_WEBSITE', 'http://freshrss.org'); // Constantes de chemins -define ('FRESHRSS_PATH', dirname(__FILE__)); +define('FRESHRSS_PATH', dirname(__FILE__)); -define ('PUBLIC_PATH', FRESHRSS_PATH . '/public'); -define ('DATA_PATH', FRESHRSS_PATH . '/data'); -define ('LIB_PATH', FRESHRSS_PATH . '/lib'); -define ('APP_PATH', FRESHRSS_PATH . '/app'); + define('PUBLIC_PATH', FRESHRSS_PATH . '/p'); + define('INDEX_PATH', PUBLIC_PATH . '/i'); + define('PUBLIC_RELATIVE', '..'); -define ('LOG_PATH', DATA_PATH . '/log'); -define ('CACHE_PATH', DATA_PATH . '/cache'); + define('DATA_PATH', FRESHRSS_PATH . '/data'); + define('LOG_PATH', DATA_PATH . '/log'); + define('CACHE_PATH', DATA_PATH . '/cache'); + + define('LIB_PATH', FRESHRSS_PATH . '/lib'); + define('APP_PATH', FRESHRSS_PATH . '/app'); |
