Why won't this work I'm trying to make it parse my page stuff it's loading it form the db and it just won't parse my php code is:
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'News');
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array(
'site_page',
'News_view',
);
$actiontemplates = array();
chdir('/home/rdsx667/public_html/forum/');
require_once('./global.php');
require_once(DIR . '/includes/class_bbcode.php');
$headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude);
$navbits = array();
$navbits[$parent] = '';
$navbits = construct_navbits($navbits);
if ($_REQUEST['do'])
{
$call = $_REQUEST['do'];
$Feed = $db->query_first("select * from " . TABLE_PREFIX . "page where page_id = " . intval($call));
$pagename = $Feed['page_name'];
$text = $Feed['page_contents'];
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$pagecontents = $parser->do_parse($text, $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable);
eval('print_output("' . fetch_template('site_page') . '");');
}
eval('$navbar = "' . fetch_template('navbar') . '";');
?>