summaryrefslogtreecommitdiff
path: root/ifconfig
diff options
context:
space:
mode:
authorroot2014-11-27 15:55:25 +0100
committerroot2014-11-27 15:55:25 +0100
commit4f923b809b4e38e0639e253f428fb6c4df03ee67 (patch)
tree20d9d9ad9dae0316dad27358b4239b6f18f80e87 /ifconfig
parent311ad398e06cd2eba270ea70ca5a326d03b490f9 (diff)
downloadtools.iamfabulous.de-4f923b809b4e38e0639e253f428fb6c4df03ee67.tar.gz
More structured + better UI
Diffstat (limited to 'ifconfig')
-rw-r--r--ifconfig/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifconfig/index.php b/ifconfig/index.php
index b87d316..83e03ed 100644
--- a/ifconfig/index.php
+++ b/ifconfig/index.php
@@ -19,7 +19,7 @@ if ( empty($_GET) ){
if ( ! isset($_GET["ip"]) || $_GET["ip"] == "" ){
$ip = $_SERVER["REMOTE_ADDR"];
} else {
- if( preg_match("/([0-9]+\.){3}[0-9]+/", $ip) ){
+ if( preg_match("/([0-9]+\.){3}[0-9]+/", $_GET["ip"]) ){
$ip = $_GET["ip"];
} else {
$ip = gethostbyname($_GET["ip"]);