setVar("TITLE",getActiveTitlePrefix()." - Game Details"); $tmpl->setVar("CSS","templates/$TEMPLATE_DIR/include/$TMPL_CFG_CSS"); $tmpl->setVar("IMAGES_DIR","templates/$TEMPLATE_DIR/images/"); $tmpl->setVar("ADMINMODE_LINK","admin/index.php"); $tmpl->setLoop("NAVBAR",getNavBar()); //read the base parameters $id = ""; @$id = $_REQUEST["id"]; if(getChatLogCount($id)) { $tmpl->setVar("chat",'true'); $tmpl->setVar("chatloglink",'chatlog.php?id='.$id); } $tmpl->setVar("id",$id); $gameinfos = getGameInfo($id); $tmpl->setVar($gameinfos); $tmpl->setLoop("rounds",getRoundsForGame($id)); //set Context-Bar at the end to have gameinfos $contextbar = array(); $contextbar = addContextItem($contextbar,getActiveTitlePrefix()."-statistics"); $contextbar = addLinkedContextItem($contextbar,"index.php","Ranking"); $contextbar = addContextItem($contextbar,$gameinfos["servername"]." - ".$gameinfos["map"]." - ".$gameinfos["date"]); $tmpl->setLoop("CONTEXTBAR",$contextbar); //now finish the processtime timer $totaltime = timer()- $starttime; $tmpl->setVar("PROCESSTIME",sprintf ("%01.2f seconds",$totaltime)); @$tmpl->pparse(); ?>