initial commit

This commit is contained in:
Kristjan Komlosi
2020-07-01 12:49:09 +02:00
commit 7b3f290bf4
3 changed files with 22 additions and 0 deletions

10
ifconfig-dynamic.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'curl') !== FALSE
|| strpos($_SERVER['HTTP_USER_AGENT'], 'wget') !== FALSE)
{
echo "$_SERVER[REMOTE_ADDR]";
}
else
{
include 'ifconfig.php';
}

1
ifconfig-simple.php Normal file
View File

@@ -0,0 +1 @@
<?php echo "$_SERVER[REMOTE_ADDR]" ?>

11
ifconfig.php Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> ifconfig.si - test </title>
</head>
<body>
<h1>ifconfig.si<h1>
<h1><?php echo "$_SERVER[REMOTE_ADDR]" ?></h1>
</body>
</html>