Someone else asked me a similar question. I suggest you add the following to your own code:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
// is user logged in?
if (!$bbuserinfo['userid']) {
print_no_permission();
}
else {
$url = "index.php?$session[sessionurl]";
eval(print_standard_redirect('redirect_login'));
}
?>
In the code, you can replace 'index.php' with the script you want the user to be redirected to after a successful login.
Greets
Alex