zoneminder/web/zmconfig.php.z

118 lines
7.2 KiB
Plaintext

<?php
//
// ZoneMinder web configuration file, $Date$, $Revision$
// 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
define( "ZM_PATH", "@prefix@/bin" ); // Path to the general ZoneMonitor executables
define( "ZMU_PATH", ZM_PATH."/zmu" ); // Path to the ZoneMinder Utility
define( "ZMS_PATH", "/cgi-bin/zms" ); // Path to the ZoneMinder Stream server
define( "EVENT_PATH", "events" ); // Local path to where events directory lives
define( "ZMS_EVENT_PATH", "/data/zm" ); // Full path (not web) to where events directory lives
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
define( "MAX_EVENTS", 12 ); // The maximum number of events to show in the monitor 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
switch ( $bandwidth )
{
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;
}
case "mobile" : // Very incomplete, most of these options don't do anything
{
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;
}
}
// Javascript window sizes
$jws = array(
'console' => array( 'w'=>720, 'h'=>400 ),
'cycle' => array( 'w'=>36, 'h'=>72 ),
'monitor' => array( 'w'=>360, 'h'=>400 ),
'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 ),
'filter' => array( 'w'=>560, 'h'=>250 ),
'filtersave' => array( 'w'=>520, 'h'=>180 ),
'zones' => array( 'w'=>72, 'h'=>232 ),
'zone' => array( 'w'=>360, 'h'=>480 ),
'video' => array( 'w'=>100, 'h'=>80 ),
'image' => array( 'w'=>48, 'h'=>72 ),
);
?>