if (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] == 'on') { $scheme = "https"; else { $scheme = "http"; } ?>