$ Output .= <<<VAPRINT
<event>
<id> {$ thread ['lastpostid']}</ id>
<what> $ etype </ ano>
<when> {$ thread [petsa]} {$ thread [']}</ ng oras kapag>
<title> {$ thread [pamagat']}</ title>
<preview> {$ thread ['preview ang preview sa']}</>
<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 ['na mga view']}</ view>
<replies> {$ thread ['replycount']}</ tugon>
<statusicon> {$ thread ['statusicon']}</ statusicon>
</ Kaganapan>
VAPRINT;
}
iba
{
$ Rowcolor = ($ rowcolor == "alt1" "alt2":? "Alt1");
$ Kung saan = $ clip = $ poster_clip = $ poster = null;
kung (stristr ($ etype, "thread"))
{
$ Post_url = "showthread.php? T = {$ thread ['threadid']}";
}
iba
{
$ Post_url = "showthread.php? P = {$ thread ['lastpostid']} # post {$ thread [lastpostid']}";
}
kung (! $ thread [pamagat '])
{
$ Clip = "<strong> kilalang </ strong>";
}
iba
{
$ Clip = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <a target = \\" _blank \\ "href = \\" {$ post_url} \\ "> {$ thread [pamagat']}</ a> </ strong>";
}
kung ($ thread ['preview'])
{
$ Clip .= "<br /> {$ thread [preview']}";
}
$ Clip .= "({$ thread ['na mga view']} view, {$ thread ['replycount']} tugon)";
kung ($ thread ['lastpuserid'])
{
$ Poster_clip = "<a target=\\"_blank\\" href=\\"member.php?u={$thread['lastpuserid']}\\"> {$ thread [lastposter']}</ a>";
}
$ Poster_clip .= "<br /> {$ thread ['petsa']} {$ thread [oras']}";
kung ($ thread ['forum'])
{
$ Kung saan .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ forum ng thread ['']}</ a> </ strong> ";
}
iba
{
$ Kung saan = "";
}
kung (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$row}"> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td lapad = "20" na class = "$ rowcolor smallfont "nowrap =" nowrap "ihanay =" 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"> $ kung saan </ td> </ tr> </ table> </ div> \\ n
VAPRINT;
}
iba
{
$ 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"> $ kung saan </ div> </ td> </ tr> \\ n
VAPRINT;
}
$ Hilera + +;
kung ($ thread ['lastpostid']> $ highestid)
{
$ Highestid = $ thread [lastpostid '];
}
}
}
kung ($ hilera <20)
{
para sa ($ x = $ hilera; $ x <21; $ x + +)
{
kung (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
iba
{
$ 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;
}
}
}
/ / Memory-save
unset ($ thread);
$ Db-> free_result ($ getthreads);
kung ($ _REQUEST ['ang'] == "xml")
{
header ('Content-Type: text / xml' ($ stylevar ['charset'] ='''; charset =' $ stylevar ['charset']:.!?.''));
echo '<? bersyon sa xml = "1.0" encoding = "'. $ stylevar [charset '].'"?>'. "\\ R \\ n";
kung ($ output)
{
echo "<events> $ output </ kaganapan>";
}
iba
{
echo "<events />";
}
lumabas;
}
$ Navbits = array ();
$ Navbits [$ magulang] = 'espya ng Site';
$ Navbits = construct_navbits ($ navbits);
eval ('$ navbar = "'. fetch_template ('navbar').'";');
$ 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 span,,. 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;
function na pauseSpy () {
var playimg = document.getElementById ("vaplay");
var pauseimg = document.getElementById ("vapause");
playimg.src = "images / Misc / play_up.gif";
playimg.alt = "I-click ang sa play";
pauseimg.src = "images / Misc / pause_down.gif";
pauseimg.alt = "Naka-pause ...";
pause ();
}
function na 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 = "Mag-click sa I-pause";
ipagpatuloy ang ();
}
function na i-pause () {
maglaro = 0;
}
function na ipagpatuloy () {
maglaro = 1;
}
/ / ->
</ Script>
<title> Computer juice - Site ispya </ title>
</ Head>
<body onload="spyinit();">
$ Header
$ Navbar
<table width="90%" align="center"> <tr> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; subscribe thread lamang </ td>
<td width="50%" align="right">
<Img id = "vaplay" src = "images / Misc / play_down.gif" style = "cursor
ointer; "alt =" Play "na pamagat =" Play Comments "onclick =" playSpy (); "/>
<Img id = "vapause" src = "images / Misc / pause_up.gif" style = "cursor
ointer; "alt = pamagat na" I-pause "=" I-pause ang mga Komento "onclick =" pauseSpy (); "/>
</ Td> </ tr> </ table>
<br />
VAPRINT;
kung (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;"> Miyembro </ td>
<td class="tcat" width="80%" style="height:25px;"> Thread / Post </ td>
<td class="tcat" width="200" nowrap="nowrap" style="height:25px;"> Forum
</ Tr>
<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;
}
iba
{
$ 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"> Kaganapan </ td> <td class="thead" width="100"> Miyembro </ 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;
?>