From 2bddfba99ad57adbe475f1def03ac8bd5077401d Mon Sep 17 00:00:00 2001
From: Rod Wright
";
diff --git a/distfiles/CHANGELOG b/distfiles/CHANGELOG
index 98c8823..ce3c49c 100644
--- a/distfiles/CHANGELOG
+++ b/distfiles/CHANGELOG
@@ -95,3 +95,31 @@ Changelog
1.3.1 - 2022-05-11
- Updated installation scripts and instructions to reflect changes in
Raspberry Pi OS Release 2022-04-04.
+
+1.3.2 - 2022-08-08
+ - Fixed typo in dbadmin.php that prevented adding new When Discovered
+ items.
+ - Fixed bug in create.php that prevented the page from working.
+ - Fixed bug in config.php that prevented banners from being modified.
+ - Fixed bug where action_by and action_reason were not preselected for
+ subsequent searches in search.php.
+ - Fixed bug in about.php and gpl.php that still used old $mts_db
+ database handle.
+ - Removed the server session directory option in config.php
+ Miscellaneous settings. For this to make sense, you'd have to have
+ shell access to the server and if that's the case, you'd be able
+ to make the necessary database changes as well.
+ - Fixed opendrs-initial.sql to make the default banner colors match
+ the ones in common.php.
+ - Created changelog.php for use by the "changes" link on the About
+ page so kiosk terminal users don't get dead-ended in the CHANGELOG
+ text file with no way to get back to the app.
+ - Extensive code cleanups/updates in all php files to make application
+ compatible with php8 and eliminate php warnings in apache2 error
+ log file.
+ - For Raspberry Pi:
+ - Updated server-setup.sh to attempt to install the php-mysqli package
+ for compatibility with php8.
+ - Chromium browser will use the printer designated as the local
+ default if it is selected as such in the Cups printer
+ configuration.
diff --git a/distfiles/about.php b/distfiles/about.php
index 0686df9..cb683e3 100644
--- a/distfiles/about.php
+++ b/distfiles/about.php
@@ -8,9 +8,14 @@
*/
include("common.php");
+if (array_key_exists('print',$_REQUEST)) {
+ $print=true;
+} else {
+ $print=false;
+}
// redirect to index.php on cancel button press
-if ($_REQUEST['cancel']) {
+if (array_key_exists('cancel',$_REQUEST)) {
header("Cache-Control:no-cache, must-revalidate");
header("Pragma:no-cache");
header("Location:index.php");
@@ -21,7 +26,6 @@ if ($_REQUEST['cancel']) {
if (isset($_SESSION['userid'])) $userid=$_SESSION['userid'];
// import incoming arrays
-$print=$_REQUEST['print'];
if ($print) {
// if printer friendly was clicked, values will be passed in serialized
// form as "all_parameters" so we need to load those into $incoming
@@ -31,7 +35,7 @@ if ($print) {
$incoming=arrayCopy($_REQUEST);
}
-// load variables from incoming array
+// extract incoming array keys into variables
// define local functions
@@ -42,14 +46,12 @@ $appname=APP_NAME;
$drs_version=DRS_VERSION;
if ($print=="Printer Friendly") {
- $sbcolor=P_SIDEBAR_COLOR;
$mbgcolor=P_MENUBG_COLOR;
} else {
- $sbcolor=SIDEBAR_COLOR;
$mbgcolor=MENUBG_COLOR;
}
-$role=dblookup($mts_db,"users","id","role",$userid);
+$role=dblookup($drs_db,"users","id","role",$userid);
framework("begin","$appname","About OpenDRS",$print);
@@ -85,7 +87,7 @@ OpenDRS is a simple online maintenance tracking/discrepancy reporting applicatio
view, and search writeups. The look and feel of the OpenDRS pages are easily changed.
Settings that affect all users can be changed in the Admin Functions menu. User specific settings can be changed in the
My Profile menu. No browser specific HTML is used in OpenDRS, so it should be useable in any browser, and it has been
-tested using Google Chrome, Mozilla Firefox and Microsoft Internet Explorer.
+tested using Google Chrome, Mozilla Firefox, Microsoft Internet Explorer, and Microsoft Edge.
OpenDRS is highly flexible. Instructions are included in the distribution for creating a user terminal with a Raspberry Pi. OpenDRS can be hosted on a @@ -93,7 +95,7 @@ centralized server, accessed by networked PCs and/or Raspberry Pi terminals. It terminal as a non-networked standalone system or in a small network of Raspberry Pi terminals.
-To read about the changes in this latest version of OpenDRS, click on the link or see the CHANGELOG file in the distribution. +To read about the changes in this latest version of OpenDRS, click on the link or see the CHANGELOG file in the distribution.
Several pieces of Open Source software make OpenDRS possible.
diff --git a/distfiles/changelog.php b/distfiles/changelog.php
new file mode 100644
index 0000000..c103fce
--- /dev/null
+++ b/distfiles/changelog.php
@@ -0,0 +1,92 @@
+";
+//var_dump($_REQUEST);
+//echo "
+";
+echo file_get_contents("CHANGELOG");
+echo "
+
+";
+
+echo "|
|