diff options
| author | arf20 <aruizfernandez05@gmail.com> | 2025-11-04 22:46:50 +0100 |
|---|---|---|
| committer | arf20 <aruizfernandez05@gmail.com> | 2025-11-04 22:46:50 +0100 |
| commit | 9b44ec87f27f206c2805da6e3878c23a59a51346 (patch) | |
| tree | bc38cc2b48361bf0e2f259181f5dc2637f04354d | |
| parent | f6783f5beffcb08d6d87b1f0e85c585343527525 (diff) | |
| download | arfnet2-web-9b44ec87f27f206c2805da6e3878c23a59a51346.tar.gz arfnet2-web-9b44ec87f27f206c2805da6e3878c23a59a51346.zip | |
Change SSL icon, PHP pager
| -rw-r--r-- | images/icons/openssl.gif | bin | 3113 -> 0 bytes | |||
| -rw-r--r-- | images/icons/openssl.png | bin | 0 -> 13880 bytes | |||
| -rw-r--r-- | index.html | 2 | ||||
| -rw-r--r-- | php/pager.php | 61 |
4 files changed, 62 insertions, 1 deletions
diff --git a/images/icons/openssl.gif b/images/icons/openssl.gif Binary files differdeleted file mode 100644 index 7ce43bc..0000000 --- a/images/icons/openssl.gif +++ /dev/null diff --git a/images/icons/openssl.png b/images/icons/openssl.png Binary files differnew file mode 100644 index 0000000..f19b610 --- /dev/null +++ b/images/icons/openssl.png @@ -145,7 +145,7 @@ <a href="http://deb.arf20.com">Debian repo</a> </div> <div class="sec"> - <div class="item imgcont"><img src="/images/icons/openssl.gif"></div> + <div class="item imgcont"><img src="/images/icons/openssl.png"></div> <a href="https://pki.arf20.com">Certificate Authority</a> </div> <div class="sec"> diff --git a/php/pager.php b/php/pager.php new file mode 100644 index 0000000..43b792c --- /dev/null +++ b/php/pager.php @@ -0,0 +1,61 @@ +<?php + +$auth = "ea5jgx:KjNHWkLpy3XaJv2N7WIZ";//"callsign:password"; +$url = "http://www.hampager.de:8080/calls"; + +if (isset($_GET["msg"])) { + $data = [ + 'text' => $_GET["msg"], + 'callSignNames' => array( 'ea5jgx' ), + 'transmitterGroupNames' => array( 'ea-all' ), + 'emergency' => 'false' + ]; + + $options = [ + 'http' => [ + 'method' => 'POST', + 'header' => "Content-type: application/json\r\n". + "Authorization: Basic ".base64_encode("$auth")."\r\n", + 'content' => json_encode($data), + ], + ]; + + $context = stream_context_create($options); + + $response = file_get_contents($url, false, $context); +} + +?> + + +<!DOCTYPE html> +<html> + <head> + <meta charset="UTF-8"> + <link rel="stylesheet" type="text/css" href="https://arf20.com/style.css"> + <title>ARFNET</title> + </head> + + <body> + <header><a href="/"> + <img src="http://arf20.com/arfnet_logo.png" width="64"><span class="title"><strong>ARFNET</strong></span> + </a></header> + <hr> + <main> + <h2 class="center">Pager service</h2> + <form action="/php/pager.php" method="GET"> + <h3>Page arf20!</h3> + <input type="text" name="msg"> + <input type="submit" value="Page"><br> +<?php +if (isset($response)) { + if ($response === false) + echo "<span>Error</span>"; + else + echo "<pre>$response</pre>"; +} +?> + </form> + </main> + </body> +</html> |
