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","
",$t['page']); $t['page'] = str_replace("\r\n[/CODE]\r\n","
",$t['page']); $t['page'] = str_replace("\r\n[/CODE]","",$t['page']); $t['page'] = str_replace("[B]","",$t['page']); $t['page'] = str_replace("[/B]","",$t['page']); $t['page'] = str_replace("[b]","",$t['page']); $t['page'] = str_replace("[/b]","",$t['page']); $t['page'] = str_replace("[u]","",$t['page']); $t['page'] = str_replace("[/u]","",$t['page']); $t['page'] = str_replace("[i]","",$t['page']); $t['page'] = str_replace("[/i]","",$t['page']); $t['page'] = str_replace("[UL]","",$t['page']); $t['page'] = str_replace("[/UL]","",$t['page']); $t['page'] = str_replace("[li]","
  • ",$t['page']); $t['page'] = str_replace("[/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 "
    ".$t['title']."             ::
    "; codes($t['page']); echo "
    "; }