2002-10-11 17:45:06 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
//
|
2002-12-10 21:23:22 +08:00
|
|
|
// ZoneMinder web configuration file, $Date$, $Revision$
|
2002-10-11 17:45:06 +08:00
|
|
|
// Copyright (C) 2002 Philip Coombes
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 2
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
//
|
|
|
|
|
|
|
|
define( "DB_SERVER", "localhost" ); // Database Server machine
|
|
|
|
define( "DB_NAME", "zm" ); // Database containing the tables
|
|
|
|
define( "DB_USER", "zmadmin" ); // Database login
|
|
|
|
define( "DB_PASS", "zmadminzm" ); // Database password
|
|
|
|
|
2002-12-10 18:54:06 +08:00
|
|
|
define( "ZM_PATH", "@prefix@/bin" ); // Path to the general ZoneMonitor executables
|
2002-12-10 21:23:22 +08:00
|
|
|
define( "ZMU_PATH", ZM_PATH."/zmu" ); // Path to the ZoneMinder Utility
|
|
|
|
define( "ZMS_PATH", "/cgi-bin/zms" ); // Path to the ZoneMinder Stream server
|
2002-10-11 17:45:06 +08:00
|
|
|
define( "EVENT_PATH", "events" ); // Local path to where events directory lives
|
2003-01-04 08:04:42 +08:00
|
|
|
define( "ZMS_EVENT_PATH", "@WEB_PREFIX@" ); // Full path (not web) to where events directory lives
|
2002-10-11 17:45:06 +08:00
|
|
|
define( "CAMBOZOLA_PATH", "cambozola.jar" ); // Path to (optional) cambozola java streaming client (recommended)
|
|
|
|
define( "MPEG_ENCODE_PATH", "./mpeg_encode" ); // Path to (optional) mpeg video encoder
|
|
|
|
define( "NETPBM_DIR", "/usr/bin" ); // Path to (optional) Netpbm utilities
|
|
|
|
|
2002-12-10 18:54:06 +08:00
|
|
|
define( "MAX_EVENTS", 12 ); // The maximum number of events to show in the monitor event listing
|
2002-12-14 07:28:53 +08:00
|
|
|
define( "ALARM_POPUP", true ); // Whether the watch window jumps to front if an alarm occurs
|
2003-01-04 00:37:17 +08:00
|
|
|
define( "ALARM_SOUND", "Yeow.wav" ); // A sound to play on alarm, put this in the sounds directory
|
2002-12-14 07:28:53 +08:00
|
|
|
define( "FAST_DELETE", true ); // Whether we only delete event DB records and leave zmaudit to do the rest
|
|
|
|
define( "HAS_X10", true ); // Whether we want to interface with X10 devices
|
2002-12-10 18:54:06 +08:00
|
|
|
|
2003-01-04 20:38:26 +08:00
|
|
|
define( "LEARN_MODE", false ); // Currently unimplemented, do not change
|
|
|
|
|
2002-10-28 02:20:01 +08:00
|
|
|
switch ( $bandwidth )
|
2002-10-11 17:45:06 +08:00
|
|
|
{
|
2002-10-28 02:20:01 +08:00
|
|
|
case "high" :
|
|
|
|
{
|
|
|
|
define( "REFRESH_MAIN", 300 ); // How often (in seconds) the main console window refreshes
|
|
|
|
define( "REFRESH_CYCLE", 5 ); // How often the cycle watch windows swaps to the next monitor
|
|
|
|
define( "REFRESH_IMAGE", 5 ); // How often the watched image is refreshed (if not streaming)
|
|
|
|
define( "REFRESH_STATUS", 3 ); // How often the little status frame refreshes itself in the watch window
|
|
|
|
define( "REFRESH_EVENTS", 30 ); // How often the event listing is refreshed in the watch window, only for recent events
|
|
|
|
define( "REFRESH_EVENTS_ALL", 120 ); // How often the event listing is refreshed when looking at longer listings
|
|
|
|
define( "STREAM_IDLE_DELAY", 1000 ); // How long (in milliseconds) between streamed frames in the watch window
|
|
|
|
define( "STREAM_FRAME_DELAY", 50 ); // How long (in milliseconds) to wait before looking for the next streamed frame
|
|
|
|
define( "STREAM_EVENT_DELAY", 200 ); // How long (in milliseconds) to wait between each frame when streaming events
|
|
|
|
define( "IMAGE_SCALING", 1 ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "medium" :
|
|
|
|
{
|
|
|
|
define( "REFRESH_MAIN", 300 ); // How often (in seconds) the main console window refreshes
|
|
|
|
define( "REFRESH_CYCLE", 10 ); // How often the cycle watch windows swaps to the next monitor
|
|
|
|
define( "REFRESH_IMAGE", 15 ); // How often the watched image is refreshed (if not streaming)
|
|
|
|
define( "REFRESH_STATUS", 5 ); // How often the little status frame refreshes itself in the watch window
|
|
|
|
define( "REFRESH_EVENTS", 60 ); // How often the event listing is refreshed in the watch window, only for recent events
|
|
|
|
define( "REFRESH_EVENTS_ALL", 300 ); // How often the event listing is refreshed when looking at longer listings
|
|
|
|
define( "STREAM_IDLE_DELAY", 5000 ); // How long (in milliseconds) between streamed frames in the watch window
|
|
|
|
define( "STREAM_FRAME_DELAY", 100 ); // How long (in milliseconds) to wait before looking for the next streamed frame
|
|
|
|
define( "STREAM_EVENT_DELAY", 50 ); // How long (in milliseconds) to wait between each frame when streaming events
|
|
|
|
define( "IMAGE_SCALING", 4 ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "low" :
|
|
|
|
{
|
|
|
|
define( "REFRESH_MAIN", 300 ); // How often (in seconds) the main console window refreshes
|
|
|
|
define( "REFRESH_CYCLE", 30 ); // How often the cycle watch windows swaps to the next monitor
|
|
|
|
define( "REFRESH_IMAGE", 30 ); // How often the watched image is refreshed (if not streaming)
|
|
|
|
define( "REFRESH_STATUS", 10 ); // How often the little status frame refreshes itself in the watch window
|
|
|
|
define( "REFRESH_EVENTS", 180 ); // How often the event listing is refreshed in the watch window, only for recent events
|
|
|
|
define( "REFRESH_EVENTS_ALL", 600 ); // How often the event listing is refreshed when looking at longer listings
|
|
|
|
define( "STREAM_IDLE_DELAY", 10000 ); // How long (in milliseconds) between streamed frames in the watch window
|
|
|
|
define( "STREAM_FRAME_DELAY", 250 ); // How long (in milliseconds) to wait before looking for the next streamed frame
|
|
|
|
define( "STREAM_EVENT_DELAY", 10 ); // How long (in milliseconds) to wait between each frame when streaming events
|
|
|
|
define( "IMAGE_SCALING", 4 ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling
|
|
|
|
break;
|
|
|
|
}
|
2002-12-10 18:54:06 +08:00
|
|
|
case "mobile" : // Very incomplete, most of these options don't do anything
|
2002-10-28 02:20:01 +08:00
|
|
|
{
|
|
|
|
define( "REFRESH_MAIN", 300 ); // How often (in seconds) the main console window refreshes
|
|
|
|
define( "REFRESH_CYCLE", 30 ); // How often the cycle watch windows swaps to the next monitor
|
|
|
|
define( "REFRESH_IMAGE", 30 ); // How often the watched image is refreshed (if not streaming)
|
|
|
|
define( "REFRESH_STATUS", 10 ); // How often the little status frame refreshes itself in the watch window
|
|
|
|
define( "REFRESH_EVENTS", 180 ); // How often the event listing is refreshed in the watch window, only for recent events
|
|
|
|
define( "REFRESH_EVENTS_ALL", 600 ); // How often the event listing is refreshed when looking at longer listings
|
|
|
|
define( "STREAM_IDLE_DELAY", 10000 ); // How long (in milliseconds) between streamed frames in the watch window
|
|
|
|
define( "STREAM_FRAME_DELAY", 250 ); // How long (in milliseconds) to wait before looking for the next streamed frame
|
|
|
|
define( "STREAM_EVENT_DELAY", 10 ); // How long (in milliseconds) to wait between each frame when streaming events
|
|
|
|
define( "IMAGE_SCALING", 4 ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling
|
|
|
|
break;
|
|
|
|
}
|
2002-10-11 17:45:06 +08:00
|
|
|
}
|
2002-10-17 06:11:35 +08:00
|
|
|
|
|
|
|
// Javascript window sizes
|
|
|
|
$jws = array(
|
|
|
|
'console' => array( 'w'=>720, 'h'=>400 ),
|
|
|
|
'cycle' => array( 'w'=>36, 'h'=>72 ),
|
2002-12-24 19:54:41 +08:00
|
|
|
'monitor' => array( 'w'=>360, 'h'=>450 ),
|
2002-10-17 06:11:35 +08:00
|
|
|
'watch' => array( 'w'=>72, 'h'=>360 ),
|
|
|
|
'device' => array( 'w'=>196, 'h'=>164 ),
|
|
|
|
'function' => array( 'w'=>248, 'h'=>72 ),
|
|
|
|
'events' => array( 'w'=>720, 'h'=>480 ),
|
|
|
|
'event' => array( 'w'=>420, 'h'=>500 ),
|
2002-11-29 19:20:58 +08:00
|
|
|
'filter' => array( 'w'=>560, 'h'=>250 ),
|
2002-11-28 00:21:49 +08:00
|
|
|
'filtersave' => array( 'w'=>520, 'h'=>180 ),
|
2002-10-17 06:11:35 +08:00
|
|
|
'zones' => array( 'w'=>72, 'h'=>232 ),
|
|
|
|
'zone' => array( 'w'=>360, 'h'=>480 ),
|
|
|
|
'video' => array( 'w'=>100, 'h'=>80 ),
|
|
|
|
'image' => array( 'w'=>48, 'h'=>72 ),
|
|
|
|
);
|
2002-10-11 17:45:06 +08:00
|
|
|
?>
|