public/wordpress/wp-content/plugins/backupbuddy/pluginbuddy/standalone_preloader.php
// NOTE: Modified from WP to rtrim on dirname() due to Windows issues.
Modified from WP to rtrim on dirname() due to Windows issues.
Modified from WP to rtrim on dirname () due to Windows issues .
function site_url() {
	$pageURL = 'http';
	if ( isset( $_SERVER["HTTPS"] ) && ( $_SERVER["HTTPS"] == "on" ) ) {$pageURL .= "s";}
	$pageURL .= "://";
	if ($_SERVER["SERVER_PORT"] != "80") {
		$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"] . rtrim( dirname($_SERVER['PHP_SELF']), '/\\' );
	} else {
		$pageURL .= $_SERVER["SERVER_NAME"] . rtrim( dirname($_SERVER['PHP_SELF']), '/\\' );
	}
	return $pageURL;
}
function site_url ( ) { $ pageURL = 'http' ; if ( isset ( $ _SERVER [ " HTTPS " ] ) && ( $ _SERVER [ " HTTPS " ] == " on " ) ) { $ pageURL .= " s " ; } $ pageURL .= " :// " ; if ( $ _SERVER [ " SERVER_PORT " ] != " 80 " ) { $ pageURL .= $ _SERVER [ " SERVER_NAME " ] . " : " . $ _SERVER [ " SERVER_PORT " ] . rtrim ( dirname ( $ _SERVER [ 'PHP_SELF' ] ) , '/\\' ) ; } else { $ pageURL .= $ _SERVER [ " SERVER_NAME " ] . rtrim ( dirname ( $ _SERVER [ 'PHP_SELF' ] ) , '/\\' ) ; } return $ pageURL ; }
NOTE: Modified from WP to rtrim on dirname() due to Windows issues.
NOTE : Modified from WP to rtrim on dirname () due to Windows issues .