diff --git a/web/zm.php b/web/zm.php index e19fa1593..7a5555391 100644 --- a/web/zm.php +++ b/web/zm.php @@ -44,6 +44,7 @@ define( "DB_PASS", "zmadminzm" ); // Database password define( "MAX_EVENTS", 12 ); // The maximum number of events to show in the default event listing define( "ALARM_POPUP", 1 ); // Whether the watch window jumps to front if an alarm occurs +define( "ALARM_SOUND", "Yeow.wav" ); // A sound to play on alarm define( "ZM_PATH", "/usr/local/bin" ); // Path to the general ZoneMonitor executables define( "ZMU_PATH", ZM_PATH."/zmu" ); // Path to the Zone Monitor Utility define( "ZMS_PATH", "/cgi-bin/zms" ); // Path to the Zone Monitor Stream server @@ -666,6 +667,8 @@ elseif ( $view == "status" ) $status_string = "Alert"; $class = "oratext"; } + $new_alarm = ( $status > 0 && $last_status == 0 ); + header("Refresh: ".REFRESH_STATUS."; URL='$PHP_SELF?view=status&mid=$mid&last_status=$status'" ); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified @@ -678,7 +681,7 @@ elseif ( $view == "status" )