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

update admin: detect own external ip

parent a327bdbc
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,11 @@ if (!$oR->isEnabled()){
} else {
$sUrl=(isset($_GET['url']) && $_GET['url']) ? $sUrl=$_GET['url'] : '';
$sMyIp=gethostbyname(gethostname($_SERVER['SERVER_NAME']));
if(!$sMyIp){
$sErrors.='<li>Ip address of current host ['.$_SERVER['SERVER_NAME'].'] was not found.</li>';
}
// ---------- GET CONFIG DATA
......@@ -51,7 +56,7 @@ if (!$oR->isEnabled()){
// ---------- LOOP OVER ALL ENTRIES
$sMyIp=gethostbyname(gethostname());
$sHtml.='
<h2>✔️ Http head tester</h2>
<div class="content">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment