summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 51988b7)
raw | patch | inline | side by side (parent: 51988b7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Jul 2010 13:00:55 +0000 (13:00 +0000) | ||
committer | hickert <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
:wq
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19048 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/logout.php | patch | blob | history |
index 93532c9d88dbb8e7d3a1685abd7fc449c0939496..b2f2584259e82082a9adb005df48622c8fb9fddd 100644 (file)
} 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 */