Added configuration item for alarm popups.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@45 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2002-09-23 20:20:50 +00:00
parent bffa042481
commit 29d064315d
1 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,7 @@ define( "DB_USER", "zmadmin" ); // Database login
define( "DB_PASS", "zmadminzm" ); // Database password
define( "MAX_EVENTS", 12 );
define( "ALARM_POPUP", 1 );
define( "ZM_PATH", "/usr/local/bin" );
define( "ZMU_PATH", ZM_PATH."/zmu" );
define( "ZMS_PATH", "/cgi-bin/zms" );
@ -589,12 +590,11 @@ elseif ( $view == "status" )
<link rel="stylesheet" href="zmstyles.css" type="text/css">
<script language="JavaScript">
<?php
if ( $status > 0 && $last_status == 0 )
if ( ALARM_POPUP && $status > 0 && $last_status == 0 )
{
?>
top.window.focus();
<?php
//document.write( "\a" );
}
?>
</script>