X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep3.inc;h=db861f868bc12e51995b1927f2d93571ca7e4e45;hb=7dfb0099027c833555ea3018c40874fd314bf5f2;hp=0912abcc458eb3c234c81aac9d5de7f14e8f2bcf;hpb=ab252cabf298ba33319b464e12642c71ef759407;p=gosa.git diff --git a/setup/class_setupStep3.inc b/setup/class_setupStep3.inc index 0912abcc4..db861f868 100644 --- a/setup/class_setupStep3.inc +++ b/setup/class_setupStep3.inc @@ -28,9 +28,14 @@ class setup_step_3 extends setup_step function setup_step_3() { $this->update_strings(); + } + + function load_license() + { if(!file_exists("../setup/license.txt")){ $this->License = "License not found. Setup stops here."; + $this->license_found = false; }else{ $fp = fopen("../setup/license.txt","r"); $this->License = ""; @@ -52,13 +57,24 @@ class setup_step_3 extends setup_step function execute() { + $this->load_license(); + $smarty = get_smarty(); $smarty -> assign("License",nl2br($this->License)); $smarty -> assign("license_found",$this->license_found); - $this->is_completed = true; + return($smarty -> fetch (get_template_path("../setup/setup_step3.tpl"))); } + + function save_object() + { + if($this->license_found){ + $this->is_completed = true; + }else{ + $this->is_completed = false; + } + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: