diff options
| author | 2013-12-26 01:56:58 +0100 | |
|---|---|---|
| committer | 2013-12-26 01:56:58 +0100 | |
| commit | 58300c36ad77e8d788e99825d509fe8657a36854 (patch) | |
| tree | 6167a28a3c728c65c30256c1f29fd0a0552d8676 /public/index.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 'public/index.php')
| -rwxr-xr-x | public/index.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/public/index.php b/public/index.php deleted file mode 100755 index c8b15b3d9..000000000 --- a/public/index.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php -# ***** BEGIN LICENSE BLOCK ***** -# MINZ - A free PHP framework -# Copyright (C) 2011 Marien Fressinaud -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# ***** END LICENSE BLOCK ***** - -if (file_exists ('install.php')) { - require('install.php'); -} else { - require('../constants.php'); - - session_cache_limiter(''); - if (!file_exists(DATA_PATH . '/no-cache.txt')) { - require (LIB_PATH . '/http-conditional.php'); - $dateLastModification = max( - @filemtime(DATA_PATH . '/touch.txt'), - @filemtime(LOG_PATH . '/application.log'), - @filemtime(DATA_PATH . '/config.php') - ); - $_SERVER['QUERY_STRING'] .= '&utime=' . file_get_contents(DATA_PATH . '/touch.txt'); //For ETag - if (httpConditional($dateLastModification, 0, 0, false, false, true)) { - exit(); //No need to send anything - } - } - - require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader - - try { - $front_controller = new FreshRSS(); - $front_controller->init (); - $front_controller->run (); - } catch (Exception $e) { - echo '### Fatal error! ###<br />', "\n"; - Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); - echo 'See logs files.'; - } -} |
