Incorporated changes for release 1.4.2
This commit is contained in:
@@ -163,3 +163,10 @@ Changelog
|
||||
- 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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user