2 Commits
1.4.0 ... 1.4.2

Author SHA1 Message Date
97249aa600 Incorporated changes for release 1.4.2 2026-02-24 20:55:46 -05:00
89f7506fa7 Incorporated changes for release 1.4.1 2026-02-24 20:50:13 -05:00
6 changed files with 83 additions and 7 deletions

View File

@@ -156,3 +156,15 @@ Changelog
- Removed the Raspberry Pi server setup from OpenDRS. Setting up
a Raspberry Pi as an OpenDRS server is easily accomplished by
the OpenDRS installer.
1.4.1 - 2024-06-18
- Updated the installer script (install.sh) to check for and install the
package supplying uuidgen. If uuidgen is not present, the mysql
user would be created with a blank password.
1.4.2 - 2024-06-27
- Fixed bug introduced in version 1.4.1 in writeups.php where open
writeups prior to the current day weren't displayed on the
"View Open Writeups" page.
- Removed open, closed, and deferred constant definitions from common.php
since only one was ever used, and that in only one place.

View File

@@ -158,3 +158,15 @@ Changelog
- Removed the Raspberry Pi server setup from OpenDRS. Setting up
a Raspberry Pi as an OpenDRS server is easily accomplished by
the OpenDRS installer.
1.4.1 - 2024-06-18
- Updated the installer script (install.sh) to check for and install the
package supplying uuidgen. If uuidgen is not present, the mysql
user would be created with a blank password.
1.4.2 - 2024-06-27
- Fixed bug introduced in version 1.4.1 in writeups.php where open
writeups prior to the current day weren't displayed on the
"View Open Writeups" page.
- Removed open, closed, and deferred constant definitions from common.php
since only one was ever used, and that in only one place.

View File

@@ -40,9 +40,6 @@ $functional_no_short=FUNCTIONAL_NO_SHORT;
$access_mode=ACCESS_MODE;
// define some other constants
define("STAT_OPEN",1);
define("STAT_CLOSED",2);
define("STAT_DEFERRED",3);
define("ADMIN",2);
define("USER",1);

View File

@@ -100,7 +100,7 @@ function opentable($incoming,$start_date,$end_date,$print,$drs_db,$viewtype="sum
echo "
</form>
";
$writeup=mysqli_query($drs_db,"select * from writeups where status=".STAT_OPEN." and report_date between \"$start_date\" and \"$end_date\" order by report_date desc,report_time desc");
$writeup=mysqli_query($drs_db,"select * from writeups where status=1 and report_date between \"$start_date\" and \"$end_date\" order by report_date desc,report_time desc");
if (mysqli_num_rows($writeup)) {
$now=date("H:i l");
echo "
@@ -407,6 +407,14 @@ if (isset($showyesterday)) {
$start_date=mysqli_fetch_row(mysqli_query($drs_db,"select date_sub(curdate(),interval 1 day)"))[0];
$end_date=$start_date;
}
if (isset($show7day)) {
$start_date=mysqli_fetch_row(mysqli_query($drs_db,"select date_sub(curdate(),interval 7 day)"))[0];
$end_date=$today;
}
if (isset($show30day)) {
$start_date=mysqli_fetch_row(mysqli_query($drs_db,"select date_sub(curdate(),interval 30 day)"))[0];
$end_date=$today;
}
if (isset($showdays) && $showdays != "") {
$minmaxqry=mysqli_query($drs_db,"select min(report_date),max(report_date) from writeups");

View File

@@ -7,7 +7,7 @@
# SPDX-License-Identifier: GPL-2.0
DRS_VERSION="1.4.0"
DRS_VERSION="1.4.2"
DOC_ROOT="/var/www"
INSTALL_LOC="opendrs"
APACHE_USER="www-data"
@@ -330,6 +330,43 @@ else
fi
fi
echo ""
echo " Checking for uuidgen installation..."
echo ""
if uuidgen 2>&1
then
echo ""
echo "uuidgen is installed. Continuing."
echo ""
else
echo ""
echo ""
echo "OpenDRS requires uuidgen, but it doesn't seem to be installed."
echo -n "Install it now? [Y/n]: "
read reqinstall
if [ "$reqinstall" = "N" -o "$reqinstall" = "n" ]
then
echo "OpenDRS requires uuidgen, but you have elected not to install it."
echo "Installation cannot continue."
exit 1
else
echo ""
echo "###################################################################"
echo ""
echo "Proceeding with uuidgen installation"
echo ""
echo "###################################################################"
sleep 3
apt-get install -y uuid-runtime
echo ""
echo "###################################################################"
echo ""
echo "Finished with uuidgen installation"
echo ""
echo "###################################################################"
sleep 3
fi
fi
echo ""
echo ""
echo "Finished checking for and installing prerequisites..."
echo ""
@@ -389,7 +426,7 @@ then
# apply database updates
mysql -u"$curr_username" -f -D $curr_dbname < opendrs-update.sql >/dev/null 2>&1
# apply updates to existing db.php
./opendrs-update.sh $install_path
bash ./opendrs-update.sh $install_path
# copy distribution to install location
echo "Installing distribution . . ."
cp -R distfiles/* $install_path

View File

@@ -249,5 +249,15 @@ WHERE NOT EXISTS
SELECT `name` FROM `config` WHERE `name` = "access_mode"
) LIMIT 1
;
-- --------------------------------------
-- ---------- version 1.4.1 -------------
-- Update version number
UPDATE config SET value="1.4.1",defaultvalue="1.4.1" WHERE name="drs_version";
-- --------------------------------------
-- ---------- version 1.4.2 -------------
-- Update version number
UPDATE config SET value="1.4.2",defaultvalue="1.4.2" WHERE name="drs_version";
-- --------------------------------------