From 2b24f3ef0e800f878177973eefcb28380a292503 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Nov 2014 20:10:50 +0100 Subject: ifconfig stable --- ifconfig/template.php | 105 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 103 insertions(+), 2 deletions(-) (limited to 'ifconfig/template.php') diff --git a/ifconfig/template.php b/ifconfig/template.php index 2271887..50e9b74 100644 --- a/ifconfig/template.php +++ b/ifconfig/template.php @@ -17,13 +17,114 @@
+

Ifconfig

+

Basic IP API/Look up.

+
+ + +

IP API

+
+ $value){ + echo "
".str_replace('_', ' ', ucfirst($key))."
".$value."
"; + } + ?> +
+ +

HTTP Header

$value){ - echo "
".$key."
".$value."
"; + foreach($header as $key => $value){ + echo "
".$key."
".$value."
"; } ?>
+ + +
+
+ + + + + +
+ +
+ + +
+
+ + +
+
+ +
+ +
+
+
+ +
+
+ +
+ +
+
+
+ +
+ +
+ + +
+ + + +Choose output format. +
+
+
+ + +
+ +
+ +
+
+ + + +
+
+
+ +

Command Line Interface:

+ + Get IP: $ curl http://tools.iamfabulous.de/ifconfig/ =>
+ JSON: $ curl http://tools.iamfabulous.de/ifconfig/?output=json
+ Get everything: $ curl http://tools.iamfabulous.de/ifconfig/?geoip=1&header=1&output=json + +
-- cgit v1.2.3