rendered paste bodyfunction codes($text)
{
$show = $_GET['show'];
$qy = mysql_query("SELECT * FROM `vgo_articles` WHERE `id` = '$show'") or die(mysql_error());
$t = mysql_fetch_array($qy);
$text = htmlspecialchars($text);
$text = str_replace(" "," ",$text);
$text = str_replace("\r\n ","\r\n ",$text);
$text = str_replace("[CODE]\r\n","<div class=\"code\">",$text);
$text = str_replace("\r\n[/CODE]\r\n","</div>",$text);
$text = str_replace("\r\n[/CODE]","</div>",$text);
$text = str_replace("","<b>",$text);
$text = str_replace("","</b>",$text);
$text = str_replace("","<b>",$text);
$text = str_replace("","</b>",$text);
$text = str_replace("","<U>",$text);
$text = str_replace("","</U>",$text);
$text = str_replace("","<I>",$text);
$text = str_replace("","</I>",$text);
$text = str_replace("[UL]","<uI>",$text);
$text = str_replace("[/UL]","</uI>",$text);
$text = str_replace("[li]","<li>",$text);
$text = str_replace("[/li]","</li>",$text);
return nl2br($text);
}
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>";
}