Class Page
{
/************************************************************************* Builds URL's - DO NOT TOUCH */
public $GBL_APP_BASE_URL_HTTPS = 'https';
public $GBL_APP_BASE_URL_HTTP = 'http';
public $GBL_APP_BASE_URL_AUTO = 'http';
public $GBL_APP_BASE_URL_FULL;
public $virtualDirectory;
public function __construct( )
{
// FOR IIS SETUP AUTO DETECT BASE URL
$a = strlen($_SERVER['INSTANCE_META_PATH']);
$this->virtualDirectory = substr ($_SERVER['APPL_MD_PATH'], $a+5);
if ( $_SERVER['HTTPS']=='on' ) { $this->rootUrl .= "s" . ''; }