summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d4c33a)
raw | patch | inline | side by side (parent: 2d4c33a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Aug 2007 13:20:29 +0000 (13:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Aug 2007 13:20:29 +0000 (13:20 +0000) |
Added warning if smarty compile dir is not accessible
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7140 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7140 594d385d-05f5-0310-b6e9-bd551577e9d8
html/setup.php | patch | blob | history |
diff --git a/html/setup.php b/html/setup.php
index 297e073165f041e18282faf9d89b3de35680406c..38dc97d2c95baee1d393fb501421be5e07bd2926 100644 (file)
--- a/html/setup.php
+++ b/html/setup.php
/* Set template compile directory */
$smarty->compile_dir= '/var/spool/gosa/';
+/* Check for compile directory */
+if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){
+ echo sprintf(_("Directory '%s' specified as compile directory is not accessible!"),
+ $smarty->compile_dir);
+ exit();
+}
+
/* Get posted language */
if(!isset($_SESSION['lang'])){
$_SESSION['lang'] = get_browser_language();