mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-31 20:23:20 -04:00
uncomment out the mintime and maxtime validations. They were commented out for some quick testing.
This commit is contained in:
@@ -26,19 +26,19 @@ ob_end_clean();
|
||||
|
||||
if ( isset($_REQUEST['minTime']) ) {
|
||||
$minTime = validHtmlStr($_REQUEST['minTime']);
|
||||
#if (!check_datetime($minTime)) {
|
||||
#ZM\Error('Invalid date given for minTime.');
|
||||
#unset($minTime);
|
||||
#}
|
||||
if (!check_datetime($minTime)) {
|
||||
ZM\Error('Invalid date given for minTime.');
|
||||
unset($minTime);
|
||||
}
|
||||
} else {
|
||||
$minTime = date('Y-m-d H:i:s', time() - (2*3600));
|
||||
}
|
||||
if ( isset($_REQUEST['maxTime']) ) {
|
||||
$maxTime = validHtmlStr($_REQUEST['maxTime']);
|
||||
#if (!check_datetime($maxTime)) {
|
||||
#ZM\Error('Invalid date given for maxTime.');
|
||||
#unset($maxTime);
|
||||
#}
|
||||
if (!check_datetime($maxTime)) {
|
||||
ZM\Error('Invalid date given for maxTime.');
|
||||
unset($maxTime);
|
||||
}
|
||||
} else {
|
||||
$maxTime = date('Y-m-d H:i:s', time() - 3600);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user