Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
d84fa498
Commit
d84fa498
authored
Apr 06, 2011
by
tbrehm
Browse files
Merged revision 2280 from stable branch.
parent
90368d72
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/functions.inc.php
View file @
d84fa498
...
...
@@ -96,6 +96,14 @@ class functions {
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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment