index 0ed29d92aeff2a70c5ca3da37b5746aa1c4fd7b0..d46768ca6895321808c6a1f2cdc66cafbadfbb91 100644 (file)
var $license_found = false;
var $License = "";
var $header_image = "images/ldif.png";
+ var $accepted = FALSE;
+ var $attributes = array("accepted");
+
function Step_License()
{
$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_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;