aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-11-04 22:46:50 +0100
committerarf20 <aruizfernandez05@gmail.com>2025-11-04 22:46:50 +0100
commit9b44ec87f27f206c2805da6e3878c23a59a51346 (patch)
treebc38cc2b48361bf0e2f259181f5dc2637f04354d
parentf6783f5beffcb08d6d87b1f0e85c585343527525 (diff)
downloadarfnet2-web-9b44ec87f27f206c2805da6e3878c23a59a51346.tar.gz
arfnet2-web-9b44ec87f27f206c2805da6e3878c23a59a51346.zip
Change SSL icon, PHP pager
-rw-r--r--images/icons/openssl.gifbin3113 -> 0 bytes
-rw-r--r--images/icons/openssl.pngbin0 -> 13880 bytes
-rw-r--r--index.html2
-rw-r--r--php/pager.php61
4 files changed, 62 insertions, 1 deletions
diff --git a/images/icons/openssl.gif b/images/icons/openssl.gif
deleted file mode 100644
index 7ce43bc..0000000
--- a/images/icons/openssl.gif
+++ /dev/null
Binary files differ
diff --git a/images/icons/openssl.png b/images/icons/openssl.png
new file mode 100644
index 0000000..f19b610
--- /dev/null
+++ b/images/icons/openssl.png
Binary files differ
diff --git a/index.html b/index.html
index b6f2c57..8e6a4b9 100644
--- a/index.html
+++ b/index.html
@@ -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>