From: Nik Okuntseff Date: Mon, 11 Feb 2019 18:20:28 +0000 (+0000) Subject: Added a check for a writable PHP session path. X-Git-Tag: timetracker_1.19-1~341 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7c9f391d66e4e984a1d23632811ca885d7266676;p=timetracker.git Added a check for a writable PHP session path. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f6ad5a36..693dc292 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4714 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4715 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index a3cdd9cc..d39871f8 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -92,6 +92,11 @@ if ($request->isGet()) { echo('Error: PHP version is not high enough: '.phpversion().'. Required: '.$required_version.'.
'); } + // Check is PHP session path is writeable. + if (!is_writable(session_save_path())) { + echo('Error: PHP session path '.session_save_path().' is not writable.
'); + } + // Depending on DSN, require either mysqli or mysql extensions. if (strrpos(DSN, 'mysqli://', -strlen(DSN)) !== FALSE) { if (extension_loaded('mysqli')) {