X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep_License.inc;h=d46768ca6895321808c6a1f2cdc66cafbadfbb91;hb=02af4f1b990e7dcac14976e535e8c290f8176521;hp=db861f868bc12e51995b1927f2d93571ca7e4e45;hpb=bf462dc5c237b48cdad12a5393ec2afe8e519902;p=gosa.git diff --git a/setup/class_setupStep_License.inc b/setup/class_setupStep_License.inc index db861f868..d46768ca6 100644 --- a/setup/class_setupStep_License.inc +++ b/setup/class_setupStep_License.inc @@ -20,12 +20,16 @@ */ -class setup_step_3 extends setup_step +class Step_License extends setup_step { var $license_found = false; var $License = ""; + var $header_image = "images/ldif.png"; + var $accepted = FALSE; + var $attributes = array("accepted"); + - function setup_step_3() + function Step_License() { $this->update_strings(); } @@ -50,8 +54,8 @@ class setup_step_3 extends setup_step function update_strings() { $this->s_title = _("License"); - $this->s_title_long = _("GNU / GPL-License"); - $this->s_info = _("GNU / GPL-License"); + $this->s_title_long = _("License"); + $this->s_info = _("Terms and conditions for usage"); } @@ -62,14 +66,23 @@ class setup_step_3 extends setup_step $smarty = get_smarty(); $smarty -> assign("License",nl2br($this->License)); $smarty -> assign("license_found",$this->license_found); + $smarty -> assign("accepted",$this->accepted); - return($smarty -> fetch (get_template_path("../setup/setup_step3.tpl"))); + return($smarty -> fetch (get_template_path("../setup/setup_license.tpl"))); } function save_object() { - if($this->license_found){ + if(isset($_POST['step_license'])){ + if(isset($_POST['accepted'])){ + $this->accepted = TRUE; + }else{ + $this->accepted = FALSE; + } + } + + if($this->license_found && $this->accepted){ $this->is_completed = true; }else{ $this->is_completed = false;