setVar("TITLE",getActiveTitlePrefix()." - Chat Log 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"]; $gameinfos = getGameInfo($id); $tmpl->setVar($gameinfos); //set Context-Bar at the end to have gameinfos $contextbar = array(); $contextbar = addContextItem($contextbar,getActiveTitlePrefix()."-statistics"); $contextbar = addLinkedContextItem($contextbar,"index.php","Ranking"); $contextbar = addLinkedContextItem($contextbar,"game.php?id=$id",$gameinfos["servername"]." - ".$gameinfos["map"]." - ".$gameinfos["date"]); $contextbar = addContextItem($contextbar,"Chatlog"); $tmpl->setLoop("CONTEXTBAR",$contextbar); $tmpl->setVar("id",$id); $tmpl->setLoop("chatlog",getChatLogForRound($id)); //now finish the processtime timer $totaltime = timer()- $starttime; $tmpl->setVar("PROCESSTIME",sprintf ("%01.2f seconds",$totaltime)); @$tmpl->pparse(); ?>