Repository navigation
Expand file tree
/
Copy pathbottom.php
More file actions
102 lines (80 loc) · 3.66 KB
/
Copy pathbottom.php
File metadata and controls
102 lines (80 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
require_once 'dbinc/param.php';
require_once 'include/func_php_core.php';
echo '<!DOCTYPE html>';
echo '<html lang="de">';
echo '<meta charset="UTF-8">';
echo '<head><title>Bottom</title>';
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">';
if ((getParamData('darkMode') ?? 0) == 1)
{
echo '<link rel="stylesheet" href="css/dark_mode.css?' . microtime() . '">';
}
else
{
echo '<link rel="stylesheet" href="css/normal_mode.css?' . microtime() . '">';
}
echo '<link rel="stylesheet" href="css/bottom.css?' . microtime() . '">';
echo '<script type="text/javascript" src="jquery/jquery.min.js"></script>';
echo '<script type="text/javascript" src="jquery/jquery-ui.js"></script>';
echo '<link rel="stylesheet" href="jquery/jquery-ui.css">';
echo '<link rel="stylesheet" href="jquery/css/jq_custom.css">';
#Prevents UTF8 Errors on misconfigured php.ini
ini_set( 'default_charset', 'UTF-8' );
echo '</head>';
echo '<body>';
require_once 'include/func_php_bottom.php';
require_once 'include/func_js_bottom.php';
$errMsg = @utf8_decode($_REQUEST['errMsg'] ?? '');
$msgText = $_REQUEST['msgText'] ?? '';
$dm = $_REQUEST['dm'] ?? '';
$loraIp = getParamData('loraIp');
$group = $_REQUEST['group'] ?? '';
$nodeFwVersion = getParamData('nodeFwVersion');
$loraIpText = $nodeFwVersion != '' ? $loraIp . ' (' . $nodeFwVersion . ')' : $loraIp;
$clickOnCall = getParamData('clickOnCall'); // 0=call->DM, 1= qrz, 2=@call, 3=Notice
$clickOnCallDMActiveCss = $clickOnCall == 0 ? 'active' : '';
$clickOnCallQrzActiveCss = $clickOnCall == 1 ? 'active' : '';
$clickOnCallMsgActiveCss = $clickOnCall == 2 ? 'active' : '';
$clickOnCallNoticeActiveCss = $clickOnCall == 3 ? 'active' : '';
# Wenn Gruppe nicht DM und Gruppe eine Gruppennummer ist dann wieder Gruppennummer eintragen
$dm = $group != $dm && $group > 0 ? $group : $dm;
if ($errMsg != '')
{
echo '<span class="bottomErrorMsg">' . $errMsg . '</span>';
}
else
{
echo '<br>';
}
echo '<form action="send_msg.php" method="POST">';
echo '<input type="hidden" id="groupId" name="group" value="' . $group . '">';
echo '<div class="bottomDmMsgLine">';
echo '<span class="bottomSize16">DM:</span>';
echo'<input class="bottomInputDm" id="bottomDm" type="text" value="' . $dm . '" size="20" id="dm" name="dm" />';
echo '<span class="bottomSize16">MSG:</span>';
echo'<input class="bottomInputMsg" type="text" value="' . $msgText . '" id="msgText" name="msgText" required />';
echo '<select id="entitySelect">';
selectEmoticons();
echo '</select>';
echo '</div>';
echo'<div class="bottomCounterContainer">';
echo '<p id="byteCount">0 / 149 Byte</p>';
echo '</div>';
echo '<div class="bottomSubmitLine">';
echo '<button class="bottomInputSubmit" type="submit">Absenden</button>';
echo '<div class="bottomIconContainer">';
echo '<img class="bottomImgIcons ' . $clickOnCallDMActiveCss . '" src="image/call_dm.png" >';
echo '<img class="bottomImgIcons ' . $clickOnCallQrzActiveCss . '" src="image/call_qrz.png" >';
echo '<img class="bottomImgIcons ' . $clickOnCallMsgActiveCss . '" src="image/call_at.png" >';
echo '<img class="bottomImgIcons ' . $clickOnCallNoticeActiveCss . '"src="image/call_notice.png" >';
echo '</div>';
echo '</div>';
echo'<div class="bottomStatusContainer">';
echo '<div id="posStatus" class="bottomStatus"></div>';
echo '<div id="noTimeSync" class="bottomStatus"></div>';
echo '<div id="LoraIP" class="bottomStatus">IP: ' . $loraIpText . '</div>';
echo '</div>';
echo '</form>';
echo '</body>';
echo '</html>';