function RenderContent() { if ($_GET["font"]=="none") { echo "<pre>"; echo _html( process_ascii( file_get_contents( get_local_partyresult_path( $_GET["which"], $_GET["when"] ) ) ) ); echo "</pre>"; } else printf("<img src='img_ascii.php?results=%d&year=%d&font=%d' alt='nfo'/>\n",$_GET["which"],$_GET["when"],$_GET["font"]); }
function RenderBody() { $title = "nfo added by "._html($this->nfo->user->nickname)." on "._html($this->nfo->added); echo "<div class='content' title='".$title."'>\n"; if ($_GET["font"]=="none") { echo "<pre>"; $text = file_get_contents( get_local_nfo_path( $_GET["which"] ) ); echo _html( process_ascii( $text ) ); echo "</pre>"; } else printf("<img src='img_ascii.php?nfo=%d&font=%d' alt='nfo'/>\n",$_GET["which"],$_GET["font"]); echo "</div>\n"; }