From: hickert Date: Thu, 22 Jul 2010 13:00:55 +0000 (+0000) Subject: Updated logout X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a39d58d0f74b89b88cf0b5e64037e5f62e4f37a;p=gosa.git Updated logout ->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 --- diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index 93532c9d8..b2f258425 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -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 */