Skip to content
Snippets Groups Projects
Commit d84fa498 authored by tbrehm's avatar tbrehm
Browse files

Merged revision 2280 from stable branch.

parent 90368d72
No related branches found
No related tags found
No related merge requests found
...@@ -96,6 +96,14 @@ class functions { ...@@ -96,6 +96,14 @@ class functions {
return number_format((double)$number, $number_format_decimals, $number_format_dec_point, $number_format_thousands_sep); return number_format((double)$number, $number_format_decimals, $number_format_dec_point, $number_format_thousands_sep);
} }
public function get_ispconfig_url() {
$url = (stristr($_SERVER['SERVER_PROTOCOL'],'HTTPS'))?'https':'http';
$url .= '://'.$_SERVER['SERVER_NAME'];
if($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) {
$url .= ':'.$_SERVER['SERVER_PORT'];
}
return $url;
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment