@ -1568,7 +1568,7 @@ function api_not_allowed($print_headers = false)
header('location: '.$home_url.'user_portal.php');
}else{
echo '<divalign="center">';
Display :: display_error_message('<p>Either you are not allowed here or your session has expired.<br/><br/><ahref="'.$home_url.'">Please try to login again from the homepage</a><br/>',false);
if(!headers_sent() or $print_headers){Display::display_header();}
echo '<divalign="center">';
Display :: display_error_message("<p>Either you are not allowed here or your session has expired.<br/><br/>Please try to login again using the following form: <br/>".$test,false);
@ -1594,7 +1594,7 @@ function api_not_allowed($print_headers = false)
//if no course ID was included in the requested URL, redirect to homepage
if($print_headers){Display::display_header();}
echo '<divalign="center">';
Display :: display_error_message('<p>Either you are not allowed here or your session has expired.<br/><br/><ahref="'.$home_url.'">Please try to login again from the homepage</a><br/>',false);