From 1a39d58d0f74b89b88cf0b5e64037e5f62e4f37a Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 22 Jul 2010 13:00:55 +0000 Subject: [PATCH] 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 --- gosa-core/html/logout.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.30.2