$ Valja .= <<<VAPRINT
<event>
<id> {$ thread ['lastpostid']}</ id>
<what> $ etype </ mida>
<when> {$ thread ['kuupäeva']} {$ thread ['aeg']}</ ületamisel>
<title> {$ thread ['title']}</ title>
<preview> {$ thread ['preview']}</ preview>
<poster> {$ thread ['lastposter']}</ poster>
<threadid> {$ thread ['threadID']}</ threadID>
<postid> {$ thread ['lastpostid']}</ postid>
<lastpost> {$ thread ['lastpost']}</ lastpost>
<userid> {$ thread ['lastpuserid']}</ userid>
<forumid> {$ thread ['forumid']}</ forumid>
<forumname> {$ thread ['forum']}</ forumname>
<views> {$ thread [seisukohad']}</ seisukohad>
<replies> {$ thread ['replycount']}</ vastused>
<statusicon> {$ thread ['statusicon']}</ statusicon>
</ Üritusega>
VAPRINT;
}
teine
{
$ Rowcolor = ($ rowcolor == "alt1"? "Alt2": "alt1");
$ Kus = $ clip = $ poster_clip = $ poster = null;
if (stristr ($ etype, "keere"))
{
$ Post_url = "showthread.php? T = {$ thread ['threadID']}";
}
teine
{
$ Post_url = "showthread.php? P = {$ thread ['lastpostid']} # post {$ thread ['lastpostid']}";
}
if (! $ thread ['title'])
{
$ Clip = "<strong> Unknown </ strong>";
}
teine
{
$ Clip = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <a target = \\" _blank \\ "href = \\" {$ post_url} \\ "> {$ thread ['title']}</ a> </ strong>";
}
if ($ thread ['preview'])
{
$ Clip .= "<br /> {$ thread ['preview']}";
}
$ Clip .= "({$ thread ['vaated']} seisukohti, {$ thread ['replycount']} vastust)";
if ($ thread ['lastpuserid'])
{
$ Poster_clip = "<a target=\\"_blank\\" href=\\"member.php?u={$thread['lastpuserid']}\\"> {$ thread ['lastposter']}</ a>";
}
$ Poster_clip .= "<br /> {$ thread ['kuupäeva']} {$ thread ['aeg']}";
if ($ thread ['forum'])
{
$ Kus .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ thread ['forum']}</ > </ strong> ";
}
teine
{
$ Kus = "";
}
if (is_browser ('ooper "))
{
$ 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"> $ kus </ td> </ tr> </ table> </ div> \\ n
VAPRINT;
}
teine
{
$ 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"> $ kus </ div> </ td> </ tr> \\ n
VAPRINT;
}
$ Row + +;
if ($ thread ['lastpostid']> $ highestid)
{
$ Highestid = $ thread ['lastpostid'];
}
}
}
if ($ row <20)
{
for ($ x = $ row, $ x <21, $ x + +)
{
if (is_browser ('ooper "))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
teine
{
$ 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;
}
}
}
/ / Mälu kokkuhoid
väljalülitatud ($ teema);
$ Db-> free_result ($ getthreads);
if ($ _REQUEST ['ei'] == "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> $ valja </ üritused>";
}
teine
{
echo "<events />";
}
exit;
}
$ Navbits = array ();
$ Navbits [$ vanem] = 'Site Spy ";
$ Navbits = construct_navbits ($ navbits);
eval ('$ navriba = "". fetch_template (navriba ").'";');
$ Navriba = process_replacement_vars ($ navriba);
eval ('$ headinclude = "". fetch_template (headinclude ").'";');
$ Headinclude = process_replacement_vars ($ headinclude);
eval ('$ footer = "". fetch_template ("jalus").'";');
$ 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 span,,. Spyfade1 td,. Spyfade1 img {
läbipaistmatus: 0.90;
filter: alpha (läbipaistmatuse = 90);
-Moz-läbipaistmatus: 0.90;
}
. Spyfade2 div,. Spyfade2 span,. Spyfade2 td,. Spyfade2 img {
läbipaistmatus: 0.80;
filter: alpha (läbipaistmatuse = 80);
-Moz-läbipaistmatus: 0.80;
}
. Spyfade3 div,. Spyfade3 span,. Spyfade3 td,. Spyfade3 img {
läbipaistmatus: 0,70;
filter: alpha (läbipaistmatuse = 70);
-Moz-läbipaistmatus: 0,70;
}
. Spyfade4 div,. Spyfade4 span,. Spyfade4 td,. Spyfade4 img {
läbipaistmatus: 0,50;
filter: alpha (läbipaistmatuse = 50);
-Moz-läbipaistmatus: 0,50;
}
. Spyfade5 div,. Spyfade5 span,. Spyfade5 td,. Spyfade5 img {
läbipaistmatus: 0,30;
filter: alpha (läbipaistmatuse = 30);
-Moz-läbipaistmatus: 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;
funktsioon pauseSpy () {
var playimg = document.getElementById ("vaplay");
var pauseimg = document.getElementById ("vapause");
playimg.src = "images / misc / play_up.gif";
playimg.alt = "Click to Play";
pauseimg.src = "images / misc / pause_down.gif";
pauseimg.alt = "Peatatud ...";
pausi ();
}
funktsioon 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 = "Klõpsa Paus";
jätkamiseks ();
}
funktsioon pausi () {
mängida = 0;
}
funktsioon jätkamiseks () {
mängida = 1;
}
/ / ->
</ Script>
<title> Arvuti Juice - Site Spy </ title>
</ Head>
<body onload="spyinit();">
$ Header
$ Navriba
<table width="90%" align="center"> <tr> width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; tellitud niidid ainult </ td>
<td width="50%" align="right">
<Img id = "vaplay" src = "images / misc / play_down.gif" style = "Kursori
ointer "alt =" Play "title =" Play Comments "onclick =" playSpy (); "/>
<Img id = "vapause" src = "images / misc / pause_up.gif" style = "Kursori
ointer "alt =" Peata "title =" Peata Comments "onclick =" pauseSpy (); "/>
</ Td> </ tr> </ table>
<br />
VAPRINT;
if (is_browser ('ooper "))
{
$ Valja .= <<<VAPRINT
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<td width="20" class="tcat" nowrap="nowrap" style="height:25px;"> </ td>
<td class="tcat" width="225" nowrap="nowrap" style="height:25px;"> liige </ td>
<td class="tcat" width="80%" style="height:25px;"> Thread / Post </ td>
<td class="tcat" width="200" nowrap="nowrap" style="height:25px;"> Foorum
</ 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;
}
teine
{
$ Valja .= <<<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"> liige </ td> <td class = "thead "> Thread / Post </ td> <td class="thead" width="190"> Forum </ td> </ tr>
</ Thead>
<tbody class="alt1">
$ Prefetched
<tr id="row21" style="font-size: none;" class="spyfade1"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row22" style="font-size: none;" class="spyfade2"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row23" style="font-size: none;" class="spyfade3"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row24" style="font-size: none;" class="spyfade4"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
<tr id="row25" style="font-size: none;" class="spyfade5"> <td align="center"> </ td> <td> </ td> <td> < / td> <td align="center"> </ td> </ tr>
</ Tbody>
</ Table>
VAPRINT;
}
$ Valja .= <<<VAPRINT
$ Jalus
VAPRINT;
echo $ toodang;
?>