Change your index.php file to this:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
if ($vbulletin->userinfo['userid'])
{
exec_header_redirect('activity.php');
}
else
{
exec_header_redirect('forum.php');
}
?>
Hope it helps.