Revision 74 | Revision 89 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?require("libs/Smarty.class.php");require("Translation2.php");$smarty=new Smarty();$xml_opts["filename"]="install.xml";$tr=Translation2::factory("xml",$xml_opts);$lang=(isset($_POST["lang"])?$_POST["lang"]:"en");$tr->setLang($lang);$tr->setPageID("install");$install=$tr->getPage();$type=(isset($_POST["type"])?$_POST["type"]:"");foreach ($install as $key => $value){$smarty->assign(strtoupper("L_$key"),$value);}$mode=addslashes((isset($_POST["mode"])?$_POST["mode"]:""));$year=intval((isset($_POST["year"])?$_POST["year"]:0));$g_anz=intval((isset($_POST["g_anz"])?$_POST["g_anz"]:0));$t_anz=intval((isset($_POST["t_anz"])?$_POST["t_anz"]:0));$smarty->assign("type", $type);$smarty->assign("year", $year);$smarty->assign("step", substr($mode,4,strlen($mode)-4));$smarty->assign("L_T_TYPE",$install["$type"]);$type=addslashes($type);switch ($mode){case "step2":$tpl_f="install2.tpl";$even=!($year%2);if ($even){$r2=($year%4);if($r2==2){if($type!="WC"){$tpl_f="install.tpl";$smarty->assign("meld",sprintf($install["WC_year"],$year));$smarty->assign("error",true);}}else{if ($type!="EC"){$tpl_f="install.tpl";$smarty->assign("meld",sprintf($install["EC_year"],$year));$smarty->assign("error",true);}}}else{$tpl_f="install.tpl";$smarty->assign("meld",sprintf($install["wrong_year"],$year));$smarty->assign("error",true);}$smarty->display("$tpl_f");break;case "step3":$smarty->display("install3.tpl");break;default:$smarty->display("install.tpl");break;}?>