From 4830474019c7f55e8f815816e4ecfce1ce9d68c7 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 7 Mar 2020 20:14:11 -0700 Subject: [PATCH] moved example.php to index.php --- .gitignore | 1 - DASHBOARD.README | 26 ++++++-------------------- example.php => index.php | 1 - 3 files changed, 6 insertions(+), 22 deletions(-) rename example.php => index.php (99%) diff --git a/.gitignore b/.gitignore index 5639ebb..b52d830 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,3 @@ qnremote qnvoice qnrelay qnmodem -index.php diff --git a/DASHBOARD.README b/DASHBOARD.README index 28240db..cd10959 100644 --- a/DASHBOARD.README +++ b/DASHBOARD.README @@ -1,18 +1,9 @@ ##### DASHBOARD.README ##### A web-based dashboard can be enabled. You can supply your own index.php file, -or a functional dashboard is available. If no index.php file is in the build -directroy when try to install the dashboard, the installation will fail. To -get started, copy the "example.php" file to "index.php": +or a functional dashboard is available. -cp example.php index.php - -The example.php file is a good place to start if you want to create your own -by adding features to your dashboard. This dashboard include a
with -a button to send any URCALL to your gateway. - -To install the dashboard system, run the following command after you have -created an index.php file: +To install the dashboard system, run the following command: sudo make installdash @@ -21,20 +12,15 @@ for the server. To uninstall, run the following: sudo make uninstalldash -These installed packaged are not uninstalled by the uninstall script. It will -only shut down the php web server. - -Likewise, the index.php file will not be erased in the build directory when you -uninstall the dashboard, so if you've done a "git pull" and have noticed that -there was a new example.php file downloaded, you may want to copy the newer -example.php file to index.php. +These installed "necessary packages" are not uninstalled by the uninstall script. +It will only shut down the php web server. -One the dashboard server is running, simply point a browser at the Hotspot's IP +Once the dashboard server is running, simply point a browser at the Hotspot's IP address or at http://.local/ (on the same subnet). Please note that this is a very simple server and is not recommended for the world wide web. If you want a robust dashboard accessible from the web, you -will want to use a robust server, like apache, and a different index.php file. +will want to use a hardened server, like apache, and a different index.php file. Please note that if you are tryping in a URCALL when the webpage is refreshing, the entry field will loose focus and you'll have to try again. diff --git a/example.php b/index.php similarity index 99% rename from example.php rename to index.php index ac0c17d..a4abb39 100644 --- a/example.php +++ b/index.php @@ -202,7 +202,6 @@ if ('true' == GetCFGValue('dash_show_ur')) { echo '', "\n"; if (isset($_POST['sendurcall'])) { $furcall = $_POST['furcall']; - if (empty($_POST['fmodule'])) { if (1==count($configured)) { $fmodule = $configured[0];