From e749704b773818cfaaf5cb31bc528f3cda1b4ba7 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 1 Mar 2020 22:45:55 -0700 Subject: [PATCH] roughly working index.php --- Makefile | 2 +- QnetConfigure.cpp | 4 ++ QnetLink.cpp | 3 +- dash/index.php | 124 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 130 insertions(+), 3 deletions(-) create mode 100644 dash/index.php diff --git a/Makefile b/Makefile index bfc6eae..f1f59a1 100644 --- a/Makefile +++ b/Makefile @@ -172,7 +172,7 @@ installdash : /usr/bin/apt-get -y install python3-pip /bin/cp -f dash/qng-info.py $(BINDIR) /bin/cp -f dash/qngdash $(CRONDIR) - /bin/sh /usr/bin/python3 $(BINDIR)/qng-info.py & + /usr/bin/python3 $(BINDIR)/qng-info.py & uninstallbase : ######### QnetGateway ######### diff --git a/QnetConfigure.cpp b/QnetConfigure.cpp index 15d7fba..ba46acd 100644 --- a/QnetConfigure.cpp +++ b/QnetConfigure.cpp @@ -68,6 +68,10 @@ bool CQnetConfigure::ReadConfigFile(const char *configfile, std::mapsecond; - fprintf(statusfp, fstr, 'p', inbound->call, 'p', pos->first.c_str(), tm1.tm_mon+1,tm1.tm_mday,tm1.tm_year % 100, tm1.tm_hour,tm1.tm_min,tm1.tm_sec); + fprintf(statusfp, fstr, 'p', pos->second->call, 'p', pos->first.c_str(), tm1.tm_mon+1,tm1.tm_mday,tm1.tm_year % 100, tm1.tm_hour,tm1.tm_min,tm1.tm_sec); } /* print linked repeaters-reflectors */ diff --git a/dash/index.php b/dash/index.php new file mode 100644 index 0000000..1b61f83 --- /dev/null +++ b/dash/index.php @@ -0,0 +1,124 @@ + + + +QnetGateway Dashboard + + + + +

QnetGateway Dashboard

+IP Addresses:
+ + + +
InternalIPV4IPV6

+Modules:
+ + +',"\n"; + } +} +?> +
ModuleModemFrequencyRepeaterRepeater IP
',strtoupper($mod),'',$cfg[$module],'',$freq,'',$linkstatus,'',$stat[3],'

+Send URCall:
+
+ 1) { + echo 'Module: ', "\n"; + foreach ($configured as $mod) { + echo '', $mod, '
', "\n"; + } + } else + $fmodule = $configured[0]; +?> +URCall: +
+
+ +0 && strlen($fmodule)>0) { + echo 'COMMAND: sgsremote ', $fmodule, ' ', $cfg['ircddb_login'], ' ', $furcall, '
', "\n"; + } +?> + +