I'm trying to port one of my scripts over to vbulletin so I can use it's templating system. All I need to do is include either of two files based on the GET. Maybe there are special vbulletin function I need to use?
This is my script:
Code:
require_once('global.php');
include('accountdb/includes/config.php');
if ($vbulletin->userinfo['userid'] != 0 and in_array($vbulletin->userinfo['usergroupid'],$usergroup_access)) {
if(!empty($_GET['do'])){
if($_GET['do'] == 'add'){
include('accountdb/includes/add.php');
exit;
}
if($_GET['do'] == 'list'){
include('accountdb/includes/list.php');
exit;
}
}
}
The scripts work if I include them separately like this:
Code:
ob_start();
include ('accountdb/includes/add.php');
$include_contents = ob_get_contents();
ob_end_flush();