Code

Added warning, if smarty compile dir ist not accesible while running setup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 24 Aug 2007 13:19:42 +0000 (13:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 24 Aug 2007 13:19:42 +0000 (13:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7139 594d385d-05f5-0310-b6e9-bd551577e9d8

html/setup.php

index 297e073165f041e18282faf9d89b3de35680406c..823994e4b397991b2f48e9efb5adac5a2e3fb374 100644 (file)
@@ -73,6 +73,12 @@ $_SESSION['LastError']          = "";
 /* 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();