aboutsummaryrefslogtreecommitdiff
path: root/p/i/index.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-03 21:20:11 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-03 21:20:11 +0200
commit8a5050289ef695dc4d388eecee692ad9d83e00ce (patch)
treed93ad804586ebc9f849ad3ccd02182b3fd55cf97 /p/i/index.php
parentaf9e5a408a9384399cb6a15bbe33cc4baa1a1d7e (diff)
New install logic
Now the install.php is kept in ./app/ and the trigger is ./data/do-install.php There is no need anymore to have write access in ./p/i/
Diffstat (limited to 'p/i/index.php')
-rwxr-xr-xp/i/index.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/p/i/index.php b/p/i/index.php
index 4afffb3dd..7b34eefd1 100755
--- a/p/i/index.php
+++ b/p/i/index.php
@@ -18,12 +18,12 @@
#
# ***** END LICENSE BLOCK *****
-if (file_exists ('install.php')) {
- require('install.php');
-} else {
- require('../../constants.php');
- require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
+require('../../constants.php');
+require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
+if (file_exists(DATA_PATH . '/do-install.txt')) {
+ require(APP_PATH . '/install.php');
+} else {
session_cache_limiter('');
Minz_Session::init('FreshRSS');
Minz_Session::_param('keepAlive', 1); //For Persona
@@ -42,11 +42,11 @@ if (file_exists ('install.php')) {
try {
$front_controller = new FreshRSS();
- $front_controller->init ();
- $front_controller->run ();
+ $front_controller->init();
+ $front_controller->run();
} catch (Exception $e) {
echo '### Fatal error! ###<br />', "\n";
- Minz_Log::record ($e->getMessage (), Minz_Log::ERROR);
+ Minz_Log::record($e->getMessage(), Minz_Log::ERROR);
echo 'See logs files.';
}
}