Commit 1053846f95

1053846f95f8cbcc14517e85a90848b70c2ddeac

parent: 7fe117815c

Unsigned

cmc <hello@cleberg.net> · 2023-05-23 23:46 UTC

add curl hints to webpage

Layout: unified · split

ifconfig.php +12 −1
@@ -65,6 +65,7 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
6565 <title>{$site_title}</title>
6666 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
6767 <style>
68 pre { padding: 0.5rem; border: 1px solid black; }
6869 p,a {
6970 font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
7071 line-height: 1em;
@@ -79,7 +80,7 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
7980 </head>
8081 <body>
8182 <nav>
82 <a href="/">home</a> &middot;
83 <a href="/">html</a> &middot;
8384 <a href="/?q=text">text</a> &middot;
8485 <a href="/?q=xml">xml</a> &middot;
8586 <a href="/?q=ip">ip</a> &middot;
@@ -91,6 +92,16 @@ elseif (isset($query) && (($query=="text") || ($query=="all"))) {
9192 foreach($user as $key => $value) {
9293 echo ' <p id="'.$key.'">'.$key.': '.$value.'</p>'."\n";
9394 }
95
96 echo <<<EOD
97 <pre><code># Curl Commands:
98 curl -L -X GET https://ip.cleberg.net
99 curl -L -X GET https://ip.cleberg.net/\?q\=text
100 curl -L -X GET https://ip.cleberg.net/\?q\=xml
101 curl -L -X GET https://ip.cleberg.net/\?q\=ip
102 curl -L -X GET https://ip.cleberg.net/\?q\=ua
103 </code></pre>
104 EOD;
94105
95106 $date = date("Y");
96107 echo <<<EOD