summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35fdf1d)
raw | patch | inline | side by side (parent: 35fdf1d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Apr 2007 06:54:56 +0000 (06:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Apr 2007 06:54:56 +0000 (06:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6149 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Finish.inc | patch | blob | history |
index 579ce622688083a4465bd8a7b6e8da1b23446777..8e23e44371ed99a1c0d64e128da74c24f9510f32 100644 (file)
*/
$exists = file_exists(CONFIG_DIR."/".CONFIG_FILE);
- /* Redirect to GOsa login */
- if(isset($_POST['next']) && $exists){
+ /* Redirect to GOsa login, if :
+ * - gosa.conf exists
+ * - Permisssion are set correctly
+ */
+ if(isset($_POST['next']) && $exists && !is_world_readable(CONFIG_DIR."/".CONFIG_FILE)){
session_destroy();
header("Location: index.php");
exit();
if($exists && $this->is_world_readable(CONFIG_DIR."/".CONFIG_FILE)){
$err_msg = _("Your configuration file is currently world readable. This is a big security risk. Please updated the file permissions!");
+ }elseif(!$exists){
+ $err_msg = _("The configuration is currently not readable or it does not exists.");
}
$smarty = get_smarty();