<table class="main" width="700" border="1" class="<? if ($i==2) { echo "altbg"; } else { echo "bg"; } ?>" cellpadding="0" cellspacing="0" bordercolor="#111111" style="<? if ($n > 1) { echo "border-top:none;"; } ?>">
<tr style="border:none !important;">
<td rowspan="1" width="80" height="0" valign="top" class="userinfo <? if ($i==2) { echo "altbg"; } ?>">
<? if ($fpicarray['approved'] == "1") { ?><a href="../profile.php?username=<?=$uarray['username']?>" border=0>
<div align="left"><img border=1 style="border-color: black;" src="../pics/<? echo $fpicarray['username']; ?>/<?echo $fpicarray['number'];?>_t.jpg"><a>
<? } else if ($fpicarray['approved'] == "0") { ?>
<b>Pending approval</b>
<? } else { ?>
<b>Denied</b>
<? } ?>
<br>
<font size=1>
<? if ($uarray['status'] == "0") { echo "<b>Regular User</b>"; }
else if ($uarray['status'] == "1") { echo "<b>Saluted User</b>"; }
else if ($uarray['status'] == "2") { echo "<b>Moderator</b>"; }
else if ($uarray['status'] == "3") { echo "<b>Pic/Forum Mod</b>"; }
else if ($uarray['status'] == "4") { echo "<b>Administrator</b>"; }
else if ($uarray['status'] == "5") { echo "<b>Banned User</b>"; } ?>
<br>
<? if ($uarray['sex'] == "m") { echo "Male"; } else if ($uarray['sex'] == "f") { echo "Female"; }?> <br>
Posts: <? echo $uarray['forumposts']; ?><br>
<? $diff = time() - $uarray['lastaction']; if ($diff <= 900) { echo "Status: <b>Online</b>"; } else { echo "Status: Offline"; }?>
</font>
</div></td>
<td width=600 height="0" style="padding-left: 3px; width: 600 !important; padding-bottom: 3px; border:none !important;" class="<? if ($i==2) { echo "altbg"; $i=0; } else { echo "bg"; } ?>" valign="top">
<div class="post">
<div class="posthead">Posted by <b><a href="../profile.php?username=<? echo $username; ?>"><? echo $parray['username']; ?></a></b>
[<a href="../mail.php?compose&username=<?=$username?>">PM User</a>][<a href="../forums/reply.php?forumid=<? echo $fid; ?>&threadid=<? echo $threadid; ?>&postid=<? echo $parray['pid'];?>">Quote</a>][<a href="#bottom">Go to Bottom</a>]
<? if ($sessstatus > 1 && $sessstatus != 5) {?>
<? }?>
on <? echo $parray['ts']; ?></font></div>
<div class="hr"></div>
<div class="postbody"><?
$message = $parray['body'];
$preg = array(
// Font and text manipulation ( [color] [size] [font] [align] )
'/\[color=(.*?)(?::\w+)?\](.*?)\[\/color(?::\w+)?\]/si' => "<font color=\"\\1\">\\2</font>",
'/\[color=(.*?)(?::\w+)?\](.*)$/si' => "<font color=\"\\1\">\\2</font>",
'/\[size=(.*?)(?::\w+)?\](.*?)\[\/size(?::\w+)?\]/si' => "<font size=\"\\1\">\\2</font>",
'/\[size=(.*?)(?::\w+)?\](.*)$/si' => "<font size=\"\\1\">\\2</font>",
'/\[font=(.*?)(?::\w+)?\](.*?)\[\/font(?::\w+)?\]/si' => "<font face=\"\\1\">\\2</font>",
'/\[font=(.*?)(?::\w+)?\](.*)$/si' => "<font face=\"\\1\">\\2</font>",
'/\[bgcolor=(.*?)(?::\w+)?\](.*?)\[\/bgcolor(?::\w+)?\]/si' => "<font style=\"background-color:\\1;\">\\2</font>",
'/\[bgcolor=(.*?)(?::\w+)?\](.*)$/si' => "<font style=\"background-color:\\1;\">\\2</font>",
'/\[b(?::\w+)?\](.*?)\[\/b(?::\w+)?\]/si' => "<b>\\1</b>",
'/\[b\](.*)$/si' => "<b>\\1</b>",
'/\[s(?::\w+)?\](.*?)\[\/s(?::\w+)?\]/si' => "<strike>\\1</strike>",
'/\[s\](.*)$/si' => "<strike>\\1</strike>",
'/\[i(?::\w+)?\](.*?)\[\/i(?::\w+)?\]/si' => "<i>\\1</i>",
'/\[i\](.*)$/si' => "<i>\\1</i>",
'/\[u(?::\w+)?\](.*?)\[\/u(?::\w+)?\]/si' => "<u>\\1</u>",
'/\[u\](.*)$/si' => "<u>\\1</u>",
'/\[align=(.*?)(?::\w+)?\](.*?)\[\/align(?::\w+)?\]/si' => "<div style=\"text-align:\\1\">\\2</div>",
'/\[align=(.*?)(?::\w+)?\](.*)$/si' => "<div style=\"text-align:\\1\">\\2</div>",
'/\[center(?::\w+)?\](.*?)\[\/center(?::\w+)?\]/si' => "<center>\\1</center>",
'/\[center\](.*)$/si' => "<center>\\1</center>",
'/\[user=(.*?)(?::\w+)?\]/si' => '<a href="/profile.php?username=\\1">\\1</a>',
// [url]
'/\[url(?::\w+)?\]www\.(.*?)\[\/url(?::\w+)?\]/si' => "<a href=\"http://www.\\1\">\\1</a>",
'/\[url(?::\w+)?\](.*?)\[\/url(?::\w+)?\]/si' => "<a href=\"\\1\">\\1</a>",
'/\[url=(.*?)(?::\w+)?\](.*?)\[\/url(?::\w+)?\]/si' => "<a href=\"\\1\">\\2</a>",
'/\[url\](.*?)/si' => "<a href=\"\\1\">\\1</a>",
'/\[url=(.*?)(?::\w+)?\](.*?)/si' => "<a href=\"\\1\">\\2</a>",
// [img]
'/\[img(?::\w+)?\](.*?)\[\/img(?::\w+)?\]/si' => "<img src=\"\\1\" border=\"0\" />",
// [quote]
'/\[quote(?::\w+)?\](.*?)\[\/quote(?::\w+)?\]/si' => "<div class=\"quote\"><i>Quote</i>:<div class=\"quotebody\">\\1</div></div>",
'/\[quote=(?:"|"|\')?(.*?)["\']?(?:"|"|\')?\](.*?)\[\/quote(?::\w+)?\]/si' => "<div class=\"quote\"><i>Originally posted by</i> <b>\\1</b>:<div class=\"quotebody\">\\2</div></div>",
//the following lines clean up our output a bit
'/<ol(.*?)>(?:.*?)<li(.*?)>/si' => "<ol\\1><li\\2>",
'/<ul(.*?)>(?:.*?)<li(.*?)>/si' => "<ul\\1><li\\2>"
);
$body = preg_replace(array_keys($preg), array_values($preg), $message);
$body = preg_replace("/\[\/(.*?)\]/si", "", $body);
echo $body; ?>
</div>
</div>
<?
$sig = $uarray['signature'];
$sig = trim($sig);
if ($uarray['signature'] != "0" && !empty($sig)) { ?>
<br>
<div class="sig"></div>
<div class="sigbody" style="border:none !important;"><?
$message = $uarray['signature'];
$preg = array(
// Font and text manipulation ( [color] [size] [font] [align] )
'/\[color=(.*?)(?::\w+)?\](.*?)\[\/color(?::\w+)?\]/si' => "<font color=\"\\1\">\\2</font>",
'/\[color=(.*?)(?::\w+)?\](.*)$/si' => "<font color=\"\\1\">\\2</font>",
'/\[size=(.*?)(?::\w+)?\](.*?)\[\/size(?::\w+)?\]/si' => "<font size=\"\\1\">\\2</font>",
'/\[size=(.*?)(?::\w+)?\](.*)$/si' => "<font size=\"\\1\">\\2</font>",
'/\[font=(.*?)(?::\w+)?\](.*?)\[\/font(?::\w+)?\]/si' => "<font face=\"\\1\">\\2</font>",
'/\[font=(.*?)(?::\w+)?\](.*)$/si' => "<font face=\"\\1\">\\2</font>",
'/\[b(?::\w+)?\](.*?)\[\/b(?::\w+)?\]/si' => "<b>\\1</b>",
'/\[b\](.*)$/si' => "<b>\\1</b>",
'/\[i(?::\w+)?\](.*?)\[\/i(?::\w+)?\]/si' => "<i>\\1</i>",
'/\[i\](.*)$/si' => "<i>\\1</i>",
'/\[u(?::\w+)?\](.*?)\[\/u(?::\w+)?\]/si' => "<u>\\1</u>",
'/\[u\](.*)$/si' => "<u>\\1</u>",
'/\[align=(.*?)(?::\w+)?\](.*?)\[\/align(?::\w+)?\]/si' => "<div style=\"text-align:\\1\">\\2</div>",
'/\[align=(.*?)(?::\w+)?\](.*)$/si' => "<div style=\"text-align:\\1\">\\2</div>",
'/\[center(?::\w+)?\](.*?)\[\/center(?::\w+)?\]/si' => "<center>\\1</center>",
'/\[center\](.*)$/si' => "<center>\\1</center>",
'/\[user=(.*?)(?::\w+)?\]/si' => '<a href="/profile.php?username=\\1">\\1</a>',
// [url]
'/\[url(?::\w+)?\]www\.(.*?)\[\/url(?::\w+)?\]/si' => "<a href=\"http://www.\\1\">\\1</a>",
'/\[url(?::\w+)?\](.*?)\[\/url(?::\w+)?\]/si' => "<a href=\"\\1\">\\1</a>",
'/\[url=(.*?)(?::\w+)?\](.*?)\[\/url(?::\w+)?\]/si' => "<a href=\"\\1\">\\2</a>",
'/\[url\](.*?)/si' => "<a href=\"\\1\">\\1</a>",
'/\[url=(.*?)(?::\w+)?\](.*?)/si' => "<a href=\"\\1\">\\2</a>",
// [img]
//'/\[img(?::\w+)?\](.*?)\[\/img(?::\w+)?\]/si' => "<img src=\"\\1\" border=\"0\" />",
// [quote]
'/\[quote(?::\w+)?\](.*?)\[\/quote(?::\w+)?\]/si' => "<div class=\"quote\"><i>Originally posted by </i><b>\\1</b>:<div class=\"quotebody\">\\2</div></div>",
'/\[quote=(?:"|"|\')?(.*?)["\']?(?:"|"|\')?\](.*?)\[\/quote(?::\w+)?\]/si' => "<div class=\"quote\"><i>Originally posted by</i> <b>\\1</b>:<div class=\"quotebody\">\\2</div></div>",
// the following lines clean up our output a bit
'/<ol(.*?)>(?:.*?)<li(.*?)>/si' => "<ol\\1><li\\2>",
'/<ul(.*?)>(?:.*?)<li(.*?)>/si' => "<ul\\1><li\\2>"
);
$sig = preg_replace(array_keys($preg), array_values($preg), $message);
$sig = preg_replace("/\[\/(.*?)\]/si", "", $sig);
echo $sig; ?>
</div>
<? }
if ($sessstatus > 1 && $sessstatus != '5') {
// Switched by Trip w/ with uncommented code below for browser fix
// Shows Admin IP information
echo "<br><div align=\"right\">";
echo $parray['ip']; ?><br><? echo $parray['hostname'];
?>