$ Output .= <<<VAPRINT
<event>
<id> {$ draad ['lastpostid']}</ id>
<what> $ etype </ wat>
<when> {$ draad ['date']} {$ draad ['tijd']}</ wanneer>
<title> {$ draad ['title']}</ title>
<preview> {$ draad ['preview']}</ bekijken>
<poster> {$ draad ['lastposter']}</ poster>
<threadid> {$ draad ['threadid']}</ threadid>
<postid> {$ draad ['lastpostid']}</ postID>
<lastpost> {$ draad ['lastpost']}</ lastpost>
<userid> {$ draad ['lastpuserid']}</ userid>
<forumid> {$ draad ['forumid']}</ forumid>
<forumname> {$ draad ['forum']}</ forumname>
<views> {$ draad ['bekeken']}</ bekeken>
<replies> {$ draad ['replycount']}</ reacties>
<statusicon> {$ draad ['statusicon']}</ statusicon>
</ Evenement>
VAPRINT;
}
anders
{
$ Rowcolor = ($ rowcolor == "alt1" "alt2":? "Alt1");
$ Where = $ clip = $ poster_clip = $ poster = null;
if (stristr ($ etype, "thread"))
{
$ Post_url = "showthread.php? T = {$ thread ['threadid']}";
}
anders
{
$ Post_url = "showthread.php? P = {$ thread ['lastpostid']} {$ # post thread ['lastpostid']}";
}
if ($! draad ['title'])
{
$ Clip = "<strong> Onbekend </ strong>";
}
anders
{
$ Clip = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <a target = \\" _blank \\ "href = \\" {$ post_url} \\ "> {$ draad ['title']}</ a> </ strong>";
}
if ($ thread ['voorbeeld'])
{
$ Clip .= "<br /> {$ draad ['preview']}";
}
$ Clip .= "({$ draad ['views']} bekeken, {$ draad ['replycount']} reacties)";
if ($ thread ['lastpuserid'])
{
$ Poster_clip = "<a target=\\"_blank\\" href=\\"member.php?u={$thread['lastpuserid']}\\"> {$ draad ['lastposter']}</ a>";
}
$ Poster_clip .= "<br /> {$ draad ['date']} {$ draad ['tijd']}";
if ($ thread ['forum'])
{
$ Waar .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ draad ['forum']}</ a> </ strong> ";
}
anders
{
$ Where = "";
}
if (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$row}"> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td width = "20" class = "$ rowcolor smallfont "nowrap =" nowrap "align =" center "> $ etype </ td> <td class="$rowcolor smallfont" width="225" nowrap="nowrap" align="left"> $ poster_clip </ td > <td class="$rowcolor smallfont" width="80%"> $ clip </ td> <td class="$rowcolor smallfont" width="200" nowrap="nowrap" align="center"> $ waar </ td> </ tr> </ table> </ div> \\ n
VAPRINT;
}
anders
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$row}"> <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ etype </ div> </ td> <td class = " $ rowcolor smallfont "> <div class="smallfont"> $ poster_clip </ div> </ td> <td class="$rowcolor smallfont"> <div class="smallfont"> $ clip </ div> </ td > <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ waarbij </ div> </ td> </ tr> \\ n
VAPRINT;
}
$ Rij + +;
if ($ thread ['lastpostid']> $ highestid)
{
$ Highestid = $ thread ['lastpostid'];
}
}
}
if ($ rij <20)
{
for ($ x = $ rij; $ x <21, $ x + +)
{
if (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
anders
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$x}"> <td class="$rowcolor smallfont" align="center"> </ td> <td class="$rowcolor smallfont"> </ td> < td class = "$ rowcolor smallfont"> </ td> <td class="$rowcolor smallfont" align="center"> </ td> </ tr> \\ n
VAPRINT;
}
}
}
/ / Geheugen opslaan
unset ($ draad);
$ Db-> free_result ($ getthreads);
if ($ _POST ['do'] == "xml")
{
header ("Content-Type: text / xml '($ stylevar [' charset '] ='''; charset = '$ stylevar [' charset ']:.?.''));
echo '<? xml version = "1.0" encoding = "'. $ stylevar ['charset'].'"?>'. "\\ R \\ n";
if ($ output)
{
echo "<events> $ output </ evenementen>";
}
anders
{
echo "<events />";
}
exit;
}
$ Navbits = array ();
$ Navbits [$ ouders] = 'Site Spy';
$ Navbits = construct_navbits ($ navbits);
eval ('$ navbar = "'. fetch_template ('navigatiebalk').'";');
$ Navbar = process_replacement_vars ($ navbar);
eval ('$ headinclude = "'. fetch_template ('headinclude').'";');
$ Headinclude = process_replacement_vars ($ headinclude);
eval ('$ footer = "'. fetch_template ('footer').'";');
$ Footer = process_replacement_vars ($ footer);
echo <<<VAPRINT
$ Stylevar [htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$ Headinclude
<style type="text/css">
. Spyfade1 div,. Spyfade1 spanwijdte,,. Spyfade1 td,. Spyfade1 img {
opacity: 0.90;
filter: alpha (opacity = 90);
-Moz-opacity: 0.90;
}
. Spyfade2 div,. Spyfade2 span,. Spyfade2 td,. Spyfade2 img {
opacity: 0.80;
filter: alpha (opacity = 80);
-Moz-opacity: 0.80;
}
. Spyfade3 div,. Spyfade3 span,. Spyfade3 td,. Spyfade3 img {
opacity: 0.70;
filter: alpha (opacity = 70);
-Moz-opacity: 0.70;
}
. Spyfade4 div,. Spyfade4 span,. Spyfade4 td,. Spyfade4 img {
opacity: 0.50;
filter: alpha (opacity = 50);
-Moz-opacity: 0.50;
}
. Spyfade5 div,. Spyfade5 span,. Spyfade5 td,. Spyfade5 img {
opacity: 0.30;
filter: alpha (opacity = 30);
-Moz-opacity: 0.30;
}
</ Style>
<script language="javascript" src="clientscript/va_prototype.js"> </ script>
<script language="javascript" src="clientscript/va_effects.js"> </ script>
<script language="javascript" src="clientscript/va_spy.js"> </ script>
<script language="javascript" type="text/javascript">
<! -
spymax = 25;
highestid = $ highestid;
functie pauseSpy () {
var playimg = document.getElementById ("vaplay");
var pauseimg = document.getElementById ("vapause");
playimg.src = "images / misc / play_up.gif";
playimg.alt = "Klik om te spelen";
pauseimg.src = "images / misc / pause_down.gif";
pauseimg.alt = "Onderbroken ...";
pause ();
}
functie playSpy () {
var playimg = document.getElementById ("vaplay");
var pauseimg = document.getElementById ("vapause");
playimg.src = "images / misc / play_down.gif";
playimg.alt = "Playing ...";
pauseimg.src = "images / misc / pause_up.gif";
pauseimg.alt = "Klik om te Pauze";
resume ();
}
functie pause () {
spelen = 0;
}
functie resume () {
play = 1;
}
/ / ->
</ Script>
<title> Computer Juice - Site Spy </ title>
</ Head>
<body onload="spyinit();">
$ Header
$ Navbar
<table width="90%" align="center"> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; geabonneerd discussies die alleen </ td>
<td width="50%" align="right">
<Img id = "vaplay" src = "images / misc / play_down.gif" style = "cursor
ointer; "alt =" Play "title =" Play Commentaar "onclick =" playSpy (); "/>
<Img id = "vapause" src = "images / misc / pause_up.gif" style = "cursor
ointer; "alt =" Pauze "title =" Pauze Commentaar "onclick =" pauseSpy (); "/>
</ Td> </ tr> </ table>
<br />
VAPRINT;
if (is_browser ('opera'))
{
$ Output .= <<<VAPRINT
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<tr> <td width="20" class="tcat" nowrap="nowrap" style="height:25px;"> </ td>
<td class="tcat" width="225" nowrap="nowrap" style="height:25px;"> Lid </ td>
<td class="tcat" width="80%" style="height:25px;"> Onderwerp / Post </ td>
<td class="tcat" width="200" nowrap="nowrap" style="height:25px;"> Forum
</ Tr>
<td colspan="4" class="alt1">
$ Prefetched
<div id="row21" style="display:none;" class="spyfade1"> </ div>
<div id="row22" style="display:none;" class="spyfade2"> </ div>
<div id="row23" style="display:none;" class="spyfade3"> </ div>
<div id="row24" style="display:none;" class="spyfade4"> </ div>
<div id="row25" style="display:none;" class="spyfade5"> </ div>
</ Td> </ tr>
</ Table>
VAPRINT;
}
anders
{
$ Output .= <<<VAPRINT
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="spy_table">
<thead>
<tr align="center"> <td class="thead" width="100"> Event </ td> <td class="thead" width="100"> Lid </ td> <td class = "thead "> Thread / Post </ td> <td class="thead" width="190"> Forum </ td> </ tr>
</ Thead>
<tbody class="alt1">
$ Prefetched
<tr id="row21" style="display: none;" class="spyfade1"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row22" style="display: none;" class="spyfade2"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row23" style="display: none;" class="spyfade3"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row24" style="display: none;" class="spyfade4"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row25" style="display: none;" class="spyfade5"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
</ Tbody>
</ Table>
VAPRINT;
}
$ Output .= <<<VAPRINT
$ Footer
VAPRINT;
echo $ output;
?>