59 lines
1.8 KiB
PHP
59 lines
1.8 KiB
PHP
|
<?php
|
||
|
//
|
||
|
// ZoneMinder xHTML configuration file, $Date$, $Revision$
|
||
|
// Copyright (C) 2003, 2004, 2005, 2006 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.
|
||
|
//
|
||
|
|
||
|
require_once( 'zm_config.php' );
|
||
|
|
||
|
define( 'DEVICE_WIDTH', 150 ); // Default device width for phones and handhelds
|
||
|
define( 'DEVICE_HEIGHT', 150 ); // Default device height for phones and handhelds
|
||
|
define( 'DEVICE_LINES', 10 ); // Default device lines for phones and handhelds
|
||
|
|
||
|
$rates = array(
|
||
|
"5000" => "50x",
|
||
|
"2000" => "20x",
|
||
|
"500" => "5x",
|
||
|
"200" => "2x",
|
||
|
"100" => $zmSlangReal,
|
||
|
"50" => "1/2x",
|
||
|
);
|
||
|
|
||
|
$scales = array(
|
||
|
"400" => "4x",
|
||
|
"300" => "3x",
|
||
|
"200" => "2x",
|
||
|
"150" => "1.5x",
|
||
|
"100" => $zmSlangActual,
|
||
|
"75" => "3/4x",
|
||
|
"50" => "1/2x",
|
||
|
"33" => "1/3x",
|
||
|
"25" => "1/4x",
|
||
|
);
|
||
|
|
||
|
switch ( $bandwidth )
|
||
|
{
|
||
|
case "phone" : // Very incomplete at present
|
||
|
{
|
||
|
define( "ZM_WEB_DEFAULT_RATE", ZM_WEB_P_DEFAULT_RATE ); // What the default replay rate factor applied to 'event' views is (%)
|
||
|
define( "ZM_WEB_SCALE_THUMBS", ZM_WEB_P_SCALE_THUMBS ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|