Revision 39 | Revision 88 | 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"]:"de");$tr->setLang($lang);$tr->setPageID("install");$install=$tr->getPage();foreach ($install as $key => $value){$smarty->assign(strtoupper("L_$key"),$value);}$mode=addslashes((isset($_POST["mode"])?$_POST["mode"]:""));$type=addslashes((isset($_POST["type"])?$_POST["type"]:""));$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));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","In $year findet eine WM statt!");$smarty->assign("error",true);}}else{if ($type!="EC"){$tpl_f="install.tpl";$smarty->assign("meld","In $year findet eine EM statt!");$smarty->assign("error",true);}}}else{$tpl_f="install.tpl";$smarty->assign("meld","In $year findet weder eine EM noch eine WM statt!");$smarty->assign("error",true);}$smarty->display("$tpl_f");break;case "step3":$smarty->display("install3.tpl");break;default:$smarty->display("install.tpl");break;}?>