diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-23 18:46:48 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-23 18:46:48 -0500 |
commit | 1053846f95f8cbcc14517e85a90848b70c2ddeac (patch) | |
tree | 730f82d4406a747ffaf869ad5669d38fb08092d2 | |
parent | 7fe117815cb66cb2d5d5282ceb7cd188e5d10714 (diff) | |
download | ifconfig.php-1053846f95f8cbcc14517e85a90848b70c2ddeac.tar.gz ifconfig.php-1053846f95f8cbcc14517e85a90848b70c2ddeac.tar.bz2 ifconfig.php-1053846f95f8cbcc14517e85a90848b70c2ddeac.zip |
add curl hints to webpage
-rw-r--r-- | ifconfig.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ifconfig.php b/ifconfig.php index 8b1e210..04e1c18 100644 --- a/ifconfig.php +++ b/ifconfig.php @@ -65,6 +65,7 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) { <title>{$site_title}</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/> <style> + pre { padding: 0.5rem; border: 1px solid black; } p,a { font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; line-height: 1em; @@ -79,7 +80,7 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) { </head> <body> <nav> - <a href="/">home</a> · + <a href="/">html</a> · <a href="/?q=text">text</a> · <a href="/?q=xml">xml</a> · <a href="/?q=ip">ip</a> · @@ -91,6 +92,16 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) { foreach($user as $key => $value) { echo ' <p id="'.$key.'">'.$key.': '.$value.'</p>'."\n"; } + + echo <<<EOD + <pre><code># Curl Commands: + curl -L -X GET https://ip.cleberg.net + curl -L -X GET https://ip.cleberg.net/\?q\=text + curl -L -X GET https://ip.cleberg.net/\?q\=xml + curl -L -X GET https://ip.cleberg.net/\?q\=ip + curl -L -X GET https://ip.cleberg.net/\?q\=ua + </code></pre> + EOD; $date = date("Y"); echo <<<EOD |