From a31396fb8c67f27a0055e4c4a6fa95e3cde24d1a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Apr 2015 23:53:58 +0200 Subject: Small improvements. --- ip/template.php | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 ip/template.php (limited to 'ip/template.php') diff --git a/ip/template.php b/ip/template.php new file mode 100644 index 0000000..50e9b74 --- /dev/null +++ b/ip/template.php @@ -0,0 +1,132 @@ + + + + + + + + + IP API + + + + + +
+
+
+

Ifconfig

+

Basic IP API/Look up.

+
+ + +

IP API

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

HTTP Header

+
+ $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