Thank you Josh
If you are wanting to make your portal page the index page for your site, just change this line:
$_REQUEST['ubb'] = "mypage";
to this:
$_REQUEST['ubb'] = "portal";
Save the page as index.php and upload it to the root of your site:
ex:
https://ubbdev.com