$ Output .= <<<VAPRINT
<event>
<id> {$ thread ['id lastpostid']}</>
<what> $ etype </ quoi>
']}</ temps <when> {$ thread ['date']} {$ thread ['lorsque>
<title> {$ thread ['titre']}</ title>
<PREVIEW> {$ thread ['aperçu']}</> Aperçu
<poster> {$ thread ['affiche']}</ lastposter>
<threadid> {$ thread ['threadid']}</ threadid>
<postid> {$ thread ['lastpostid']}</ postid>
<lastpost> {$ thread ['lastpost']}</ lastpost>
<userid> {$ thread ['userid']}</ lastpuserid>
<forumid> {$ thread ['forumid']}</ forumid>
<forumname> {$ thread [«forum']}</ VOTRENOM>
<views> {$ thread ['vues vues']}</>
<replies> {$ thread ['réponses']}</ replycount>
<statusicon> {$ thread ['statusicon']}</ statusicon>
</ Event>
VAPRINT;
}
d'autre
{
$ Appeler rowColor = ($ appeler rowColor == "alt1" "alt2": "alt1");
$ Lorsque $ = clip = $ = $ poster_clip affiche = null;
if (stristr ($ etype, "thread"))
{
Post_url $ = "showthread.php? T thread = {$ ['threadid']}";
}
d'autre
{
Post_url $ = "showthread.php? P = {$ thread ['lastpostid']} # {$ message thread ['lastpostid']}";
}
if (! $ thread ['title'])
{
$ Clip = "<strong> inconnu </ strong>";
}
d'autre
{
$ Clip = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <a target = \\" _blank \\ "href = \\" {$ post_url} \\ »> {$ thread ['titre']}</ a>> </ strong";
}
if ($ thread ['preview'])
{
Clip $ .= "<br /> {$ thread ['aperçu']}";
}
Clip $ .= "({$ thread ['vues']} vues, {$ thread ['replycount']} réponses)»;
if ($ thread ['lastpuserid'])
{
$ Poster_clip = "<a target=\\"_blank\\" href=\\"member.php?u={$thread['lastpuserid']}\\"> {$ thread ['lastposter']}</ a>";
}
$ Poster_clip .= "<br /> filet {$ thread ['date']} {$ ['temps']}";
if ($ thread ['forum'])
{
$ Lorsque .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ thread']}</ forum [' a>> </ strong ";
}
d'autre
{
$ Where = "";
}
if (is_browser («opéra»))
{
$ Préextraite .= <<<VAPRINT
<div id="row{$row}"> <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td width = "20" class = "$ appeler 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"> $ lorsque </ td> </ tr> </ table> </ div> \\ n
VAPRINT;
}
d'autre
{
$ Préextraite .= <<<VAPRINT
<tr id="row{$row}"> <td class="$rowcolor smallfont" <div align="center"> class="smallfont"> $ etype </ div> </ td> <td class = " $ appeler rowColor smallfont "> <div class="smallfont"> $ poster_clip </ div> </ td> <td class="$rowcolor smallfont"> <div class="smallfont"> $ clip </ div> </ td > <td class="$rowcolor smallfont" <div align="center"> class="smallfont"> $ lorsque </ 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 («opéra»))
{
$ Préextraite .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
d'autre
{
$ Préextraite .= <<<VAPRINT
<tr id="row{$x}"> <td class="$rowcolor smallfont" align="center"> </ td> <td class="$rowcolor smallfont"> </ td> < td class = "$ appeler rowColor smallfont"> </ td> <td class="$rowcolor smallfont" align="center"> </ td> </ tr> \\ n
VAPRINT;
}
}
}
/ / Mémoire d'économie
unset ($ sujet);
$ Db-> free_result (getthreads $);
if ($ _REQUEST ['faire'] == "xml")
{
header ("Content-Type: text / xml '($ stylevar [' charset '] =''; charset =' $ stylevar ['charset']:.!?.''));
echo '<? xml version = "1.0" encoding = "'. stylevar $ ['charset'].'"?>'. "\\ R \\ n";
if ($ sortie)
{
echo "$ <events> sortie </ events>";
}
d'autre
{
echo "<events />";
}
sortie;
}
$ Navbits = array ();
$ Navbits [$ parent] = 'espion du site';
Navbits $ = construct_navbits (navbits $);
eval ('$ navbar = "'. fetch_template (« barre de navigation »).'";');
$ Navbar = process_replacement_vars (barre de navigation $);
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">
Div. Spyfade1,. Spyfade1 durée,. Spyfade1 td,. Spyfade1 img {
opacité: 0,90;
filter: alpha (opacity = 90);
-Moz-opacity: 0.90;
}
Div. Spyfade2,. Spyfade2 durée,. Spyfade2 td,. Spyfade2 img {
opacité: 0,80;
filter: alpha (opacity = 80);
-Moz-opacity: 0.80;
}
Div. Spyfade3,. Spyfade3 durée,. Spyfade3 td,. Spyfade3 img {
opacité: 0,70;
filter: alpha (opacity = 70);
-Moz-opacity: 0.70;
}
Div. Spyfade4,. Spyfade4 durée,. Spyfade4 td,. Spyfade4 img {
opacité: 0,50;
filter: alpha (opacity = 50);
-Moz-opacity: 0.50;
}
Div. Spyfade5,. Spyfade5 durée,. Spyfade5 td,. Spyfade5 img {
opacité: 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>
type="text/javascript"> language="javascript" <script
<! -
spymax = 25;
highestid = $ highestid;
pauseSpy function () {
playimg var = document.getElementById ("vaplay");
pauseimg var = document.getElementById ("vapause");
playimg.src = "images / misc / play_up.gif»;
playimg.alt = "Jeu de";
pauseimg.src = "images / misc / pause_down.gif»;
pauseimg.alt = "pause ...";
pause ();
}
playSpy function () {
playimg var = document.getElementById ("vaplay");
pauseimg var = document.getElementById ("vapause");
playimg.src = "images / misc / play_down.gif»;
playimg.alt = "Jouer ...";
pauseimg.src = "images / misc / pause_up.gif»;
pauseimg.alt = "Cliquez pour Pause";
resume ();
}
une pause function () {
play = 0;
}
CV function () {
play = 1;
}
/ / ->
</ Script>
Jus informatique <title> - Spy site </ title>
</ Head>
<body onload="spyinit();">
$ Header
$ Navbar
<table width="90%" align="center"> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; discussions souscrites seulement </ td>
<td align="right"> width="50%"
<Img id = "vaplay" src = "images / misc / play_down.gif" style = "cursor
ointer; "alt =" Jouer "title =" Commentaires Play "onclick =" playSpy (); "/>
<Img id = "vapause" src = "images / misc / pause_up.gif" style = "cursor
ointer; "alt =" Pause "title =" Commentaires Pause "onclick =" pauseSpy (); "/>
</ Td> </ tr> </ table>
<br />
VAPRINT;
if (is_browser («opéra»))
{
$ Output .= <<<VAPRINT
<table border="0" class="tborder" cellpadding="0" cellspacing="0" width="100%" align="center" id="spy_table">
<td width="20" class="tcat" nowrap="nowrap" style="height:25px;"> </ td>
<td width="225" class="tcat" nowrap="nowrap" style="height:25px;"> membres </ td>
<td class="tcat" width="80%" style="height:25px;"> Discussion / Post </ td>
<td width="200" class="tcat" nowrap="nowrap" style="height:25px;"> Forum
</ Tr>
<td colspan="4" class="alt1">
$ Préchargées
<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;
}
d'autre
{
$ Output .= <<<VAPRINT
<table border="0" class="tborder" cellpadding="6" cellspacing="1" width="100%" align="center" id="spy_table">
<thead>
<tr align="center"> <td class="thead" width="100"> événement </ td> <td class="thead" width="100"> membres </ td> <td class = "thead »> Discussion / Post </ td> <td class="thead" width="190"> Forum </ td> </ tr>
</ Thead>
<tbody class="alt1">
$ Préchargées
<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;
?>