Skip to content
Snippets Groups Projects
Commit 78f276c6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update admin: detect own external ip

parent 254a0f87
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ if (!$oR->isEnabled()){ ...@@ -37,7 +37,7 @@ if (!$oR->isEnabled()){
} else { } else {
$sUrl=(isset($_GET['url']) && $_GET['url']) ? $sUrl=$_GET['url'] : ''; $sUrl=(isset($_GET['url']) && $_GET['url']) ? $sUrl=$_GET['url'] : '';
$sMyIp=gethostbyname(gethostname($_SERVER['SERVER_NAME'])); $sMyIp=gethostbyname($_SERVER['SERVER_NAME']);
if(!$sMyIp){ if(!$sMyIp){
$sErrors.='<li>Ip address of current host ['.$_SERVER['SERVER_NAME'].'] was not found.</li>'; $sErrors.='<li>Ip address of current host ['.$_SERVER['SERVER_NAME'].'] was not found.</li>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment