diff --git a/gosa-core/setup/class_setupStep_Finish.inc b/gosa-core/setup/class_setupStep_Finish.inc
index 3898c55c5bf4c50135207eb68a0b65aa5c3953e5..a64fbcd05923e6b33d260f267773b05c56558737 100644 (file)
{
var $gosa_conf_contrib = "/gosa.conf";
var $cfg_file_written = FALSE;
- var $header_image= 'images/ldapserver.png';
+ var $header_image = "images/setup/server.png";
function Step_Finish()
{
function get_conf_data()
{
$smarty = get_smarty();
- $smarty->assign("cv",$this->parent->captured_values);
+ $smarty->assign("cv",xmlentities($this->parent->captured_values));
+ $smarty->assign("config_checksum", md5(file_get_contents(CONFIG_TEMPLATE_DIR.$this->gosa_conf_contrib)));
$str = $smarty->fetch(CONFIG_TEMPLATE_DIR.$this->gosa_conf_contrib);
return($str);
}
function execute()
{
- $info= posix_getgrgid(posix_getgid());
- $webgroup = $info['name'];
-
-
+ if(!function_exists("posix_getgrgid")){
+ $webgroup = "";
+ }else{
+ $info= posix_getgrgid(posix_getgid());
+ $webgroup = $info['name'];
+ }
+
/* Check if there is currently an active gosa.conf
*/
$exists = file_exists(CONFIG_DIR."/".CONFIG_FILE);
* - Permisssion are set correctly
*/
if(isset($_POST['next']) && $exists && !$this->is_world_readable(CONFIG_DIR."/".CONFIG_FILE)){
- session_destroy();
+ session::destroy();
header("Location: index.php");
exit();
}
$err_msg= "";
if($exists && $this->is_world_readable(CONFIG_DIR."/".CONFIG_FILE)){
- $err_msg = _("Your configuration file is currently world readable. Please updated the file permissions!");
+ $err_msg = _("Your configuration file is currently world readable. Please update the file permissions!");
}elseif(!$exists){
$err_msg = _("The configuration is currently not readable or it does not exists.");
}