|
|
@@ -675,11 +675,6 @@ function download($url, $path)
|
|
|
// swagger
|
|
|
function getServerPath($over = false)
|
|
|
{
|
|
|
- if ($over) {
|
|
|
- if ($GLOBALS['PHPMAILER-domain'] !== '') {
|
|
|
- return $GLOBALS['PHPMAILER-domain'];
|
|
|
- }
|
|
|
- }
|
|
|
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
|
|
|
$protocol = "https://";
|
|
|
} elseif (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
|