From: Nik Okuntseff Date: Sun, 17 Jul 2016 23:04:16 +0000 (+0000) Subject: Added a check if templates_c dir is writable. X-Git-Tag: timetracker_1.19-1~1704 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3144e63d99a9ddbb0d9c4d568a12747c83fce158;p=timetracker.git Added a check if templates_c dir is writable. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 4fdd3c26..be849fff 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.25.3501 | Copyright © Anuko | +  Anuko Time Tracker 1.9.25.3502 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index b35d3524..34f3a8b5 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -45,6 +45,13 @@ function setChange($sql) { if (!$request->isPost()) { echo('

Environment check

'); + // Check if WEB-INF/templates_c dir is writable. + if (is_writable(APP_DIR.'/WEB-INF/templates_c/')) { + echo('WEB-INF/templates_c/ directory is writable.
'); + } else { + echo('Error: WEB-INF/templates_c/ directory is not writable.
'); + } + // Require the configuration file with application settings. if (file_exists(APP_DIR."/WEB-INF/config.php")) { echo('WEB-INF/config.php file exists.
');