rendered paste body $show = $_GET['show'];
$qy = mysql_query("SELECT * FROM `vgo_articles` WHERE `id` = '$show'") or die(mysql_error());
$t = mysql_fetch_array($qy);
function codes() {
$t['page'] = htmlspecialchars($t['page']);
$t['page'] = str_replace(" "," ",$t['page']);
$t['page'] = str_replace("\r\n ","\r\n ",$t['page']);
$t['page'] = str_replace("[CODE]\r\n","<div class=\"code\">",$t['page']);
$t['page'] = str_replace("\r\n[/CODE]\r\n","</div>",$t['page']);
$t['page'] = str_replace("\r\n[/CODE]","</div>",$t['page']);
$t['page'] = str_replace("[b]","<b>",$t['page']);
$t['page'] = str_replace("[/b]","</b>",$t['page']);
$t['page'] = str_replace("[B]","<b>",$t['page']);
$t['page'] = str_replace("[/B]","</b>",$t['page']);
$t['page'] = str_replace("[U]","<U>",$t['page']);
$t['page'] = str_replace("[/U]","</U>",$t['page']);
$t['page'] = str_replace("[I]","<I>",$t['page']);
$t['page'] = str_replace("[/I]","</I>",$t['page']);
$t['page'] = str_replace("[UL]","<uI>",$t['page']);
$t['page'] = str_replace("[/UL]","</uI>",$t['page']);
$t['page'] = str_replace("[li]","<li>",$t['page']);
$t['page'] = str_replace("[/li]","</li>",$t['page']);
$t['page'] = str_replace("[/FONT]","</font>",$t['page']);
$t['page'] = preg_replace("/\[FONT SIZE=(\S)\]/","<font size=\\1>",$t['page']);
nl2br($t['page']);
}
echo "<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">
<tr>
<td class=\"tahoma\" align=\"right\" width=\"324\" style=\"background-image:url(images/bg_title.gif);\" height=\"28\">
<a href='?show=".$a['id']."&shon=news'><b><font face=\"arial\" style=\"font-size: 10pt\" color=\"#accfe5\">".$t['title']."</font></b></a>
</td>
<td class=\"tahoma\" align=\"left\" width=\"147\" style=\"background-image:url(images/bg_title.gif);\" height=\"28\">
<font color=\"#e8b574\"> :: </font>
</td>
</tr>
<tr>
<td>";
codes($t['page']);
echo " </td>
</tr>
</table>";