AN-net
04-01-2006, 02:05 AM
ok for some reason the template isnt printing out. it echoes "Hello!Hello3!Hello4!Hello5!". so it isnt the if statements obviously.
here is my code
if($_REQUEST['do'] == "controlpanel")
{
echo "Hello!";
globalize($_REQUEST, array(
'page' => STR_NOHTML
));
if(empty($j))
{
echo "Hello2!";
eval(print_standard_error('journalnotexist'));
}
else
{
echo "Hello3!";
$vbjverify= new verify();
if($bbuserinfo['usergroupid'] == 6 OR ($vbjverify->verify_journal('journalist_compare', $j) AND $can['editown']['journal']))
{
echo "Hello4!";
$navbits= array();
$navbits["journals.php"] = "Journals";
$navbits["journal.php?do=showjournal&j=" . $journal['journal_id']] = $journal['journalist'] . "'s Journal";
$navbits[''] = "Edit Journal";
$navbits= construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('journal_controlpanel_main') . '");');
}
else
{
print_no_permission();
}
}
}
here is my code
if($_REQUEST['do'] == "controlpanel")
{
echo "Hello!";
globalize($_REQUEST, array(
'page' => STR_NOHTML
));
if(empty($j))
{
echo "Hello2!";
eval(print_standard_error('journalnotexist'));
}
else
{
echo "Hello3!";
$vbjverify= new verify();
if($bbuserinfo['usergroupid'] == 6 OR ($vbjverify->verify_journal('journalist_compare', $j) AND $can['editown']['journal']))
{
echo "Hello4!";
$navbits= array();
$navbits["journals.php"] = "Journals";
$navbits["journal.php?do=showjournal&j=" . $journal['journal_id']] = $journal['journalist'] . "'s Journal";
$navbits[''] = "Edit Journal";
$navbits= construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('journal_controlpanel_main') . '");');
}
else
{
print_no_permission();
}
}
}