From: hickert Date: Fri, 24 Aug 2007 13:19:42 +0000 (+0000) Subject: Added warning, if smarty compile dir ist not accesible while running setup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e75d5d1a603169d0e272cdc2be51720cea93eef2;p=gosa.git Added warning, if smarty compile dir ist not accesible while running setup. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7139 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/setup.php b/html/setup.php index 297e07316..823994e4b 100644 --- a/html/setup.php +++ b/html/setup.php @@ -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();