Skip to content

Commit d84fa49

Browse files
committed
Merged revision 2280 from stable branch.
1 parent 90368d7 commit d84fa49

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

interface/lib/classes/functions.inc.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ public function currency_format($number) {
9696
return number_format((double)$number, $number_format_decimals, $number_format_dec_point, $number_format_thousands_sep);
9797
}
9898

99+
public function get_ispconfig_url() {
100+
$url = (stristr($_SERVER['SERVER_PROTOCOL'],'HTTPS'))?'https':'http';
101+
$url .= '://'.$_SERVER['SERVER_NAME'];
102+
if($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) {
103+
$url .= ':'.$_SERVER['SERVER_PORT'];
104+
}
105+
return $url;
106+
}
99107

100108

101109
}

0 commit comments

Comments
 (0)