From: hickert Date: Wed, 11 Apr 2007 09:28:09 +0000 (+0000) Subject: Updated setup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=04879012096bb9e57b22ea6dbf48c2c025e0dced;p=gosa.git Updated setup. Reimplemented redirect to index.php if gosa.conf exists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6009 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 3b2fe43aa..d93bc4b67 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -41,6 +41,13 @@ class setup $this->o_steps[8] = new setup_step_7(); $this->o_steps[9] = new setup_step_8(); + /* Ensure that setup is not reachable if gosa.conf */ + if(file_exists(CONFIG_DIR."/gosa.conf")){ + session_destroy(); + header("Location: index.php") ; + exit(); + } + foreach($this->o_steps as $key => $step){ $this->o_steps[$key]->parent = $this; } diff --git a/setup/class_setupStep8.inc b/setup/class_setupStep8.inc index 822940453..72b6dffbb 100644 --- a/setup/class_setupStep8.inc +++ b/setup/class_setupStep8.inc @@ -68,6 +68,13 @@ class setup_step_8 extends setup_step $writeable = is_writeable(CONFIG_DIR); } + /* Redirect to GOsa login */ + if(isset($_POST['use_gosa'])){ + session_destroy(); + header("Location: index.php"); + exit(); + } + /* Downlaod config */ if(isset($_POST['getconf'])){ diff --git a/setup/setup_step6.tpl b/setup/setup_step6.tpl index 39a42de00..ad12837f3 100644 --- a/setup/setup_step6.tpl +++ b/setup/setup_step6.tpl @@ -189,54 +189,54 @@
{t}Snapshot base{/t} 
-
{t}Ldap base{/t} 
-
{t}Server{/t} 
-
{t}User{/t} 
-
{t}Password{/t} 
- {else} {t}Enable{/t}
{t}Snapshot base{/t} 
-
{t}Ldap base{/t} 
-
{t}Server{/t} 
-
{t}User{/t} 
-
{t}Password{/t} 
- {/if} diff --git a/setup/setup_step7.tpl b/setup/setup_step7.tpl index 2105ab37f..51a6b5765 100644 --- a/setup/setup_step7.tpl +++ b/setup/setup_step7.tpl @@ -17,7 +17,7 @@ -
+
{if $failed_checks == 0}

{t}Schema check was completely successful{/t}

diff --git a/setup/setup_step8.tpl b/setup/setup_step8.tpl index bcde3ef39..8d242f7f8 100644 --- a/setup/setup_step8.tpl +++ b/setup/setup_step8.tpl @@ -34,6 +34,16 @@
{t}Last created backup{/t}:  {$last_backup_name}
{/if} + + + + {if $exists} +
+
+ {t}Use GOsa with current configuration file{/t} +
+ + {/if} {else}
{t}Can't write configuration file, please check permissions.{/t}