rendered paste body function codes() {
$show = $_GET['show'];
$qy = mysql_query("SELECT * FROM `vgo_articles` WHERE `id` = '$show'") or die(mysql_error());
$t = mysql_fetch_array($qy);
$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'] = nl2br($t['page']);
return $t['page'];
}
function showfull() {
$show = $_GET['show'];
$qy = mysql_query("SELECT * FROM `vgo_articles` WHERE `id` = '$show'") or die(mysql_error());
$t = mysql_fetch_array($qy);
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>";
}