Code

Updated logout
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jul 2010 13:00:55 +0000 (13:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jul 2010 13:00:55 +0000 (13:00 +0000)
->REdirect to login.php if we cannot write to the smarty compile dir.
:wq

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19048 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/logout.php

index 93532c9d88dbb8e7d3a1685abd7fc449c0939496..b2f2584259e82082a9adb005df48622c8fb9fddd 100644 (file)
@@ -69,6 +69,13 @@ if (isset($config)){
 } else {
        $smarty->compile_dir= '/var/spool/gosa/';
 }
+
+if(!is_writeable($smarty->compile_dir)){
+
+    header('location: index.php');
+    exit();
+}
+
 $smarty->assign ("title","GOsa");
     
 /* If GET request is posted, the logout was forced by pressing the link */