Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2009-11-26 12:45:59 +0300
committerrobocoder <anthon.pang@gmail.com>2009-11-26 12:45:59 +0300
commit92dda4f46395ca78a999171125e41636d54e950f (patch)
tree9e05643464aeaeab37b302e72533f1bb4ef34818 /index.php
parent59ee1d945f87b1f932d294428f96f4fd84b757f3 (diff)
Tested with PHP 5.3.1
Installation: * add another step (databaseCheck); warn if not UTF8 * provide charset example in config.ini.sample.php * missing translation strings from some forms * handle last step ('finished') being refreshed or language selected * handle incomplete install (i.e., anonymous user or initial site not created) index.php: * handle session.save_path not defined, unable to mkdir, or not writable MySQLi: * handle connection error * uncaught exceptions from Dashboard, ExampleFeedburner, and LanguagesManager git-svn-id: http://dev.piwik.org/svn/trunk@1609 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3d14f533a5..09529049de 100644
--- a/index.php
+++ b/index.php
@@ -52,13 +52,22 @@ if(ini_get('session.save_handler') == 'user')
}
if(ini_get('session.save_handler') == 'files')
{
- if(ini_get('safe_mode') || ini_get('open_basedir') || !@is_writable(ini_get('session.save_path')))
+ $sessionPath = ini_get('session.save_path');
+ if(ini_get('safe_mode') || ini_get('open_basedir') || empty($sessionPath) || !@is_writable($sessionPath))
{
$sessionPath = PIWIK_USER_PATH . '/tmp/sessions';
@ini_set('session.save_path', $sessionPath);
if(!is_dir($sessionPath))
{
@mkdir($sessionPath, 0755, true);
+ if(!is_dir($sessionPath))
+ {
+ die("Error: Unable to mkdir $sessionPath");
+ }
+ }
+ else if(!@is_writable($sessionPath))
+ {
+ die("Error: $sessionPath is not writable");
}
}
}