0, 'Name' => $SLANG['New'], 'Function' => "Monitor", 'Enabled' => true, 'LinkedMonitors' => "", 'Type' => "Local", 'Device' => "/dev/video", 'Channel' => "0", 'Format' => "0", 'Protocol' => "", 'Method' => "", 'Host' => "", 'Path' => "", 'SubPath' => "", 'Port' => "80", 'Palette' => "", 'Width' => "", 'Height' => "", 'Orientation' => "0", 'LabelFormat' => '%N - %y/%m/%d %H:%M:%S', 'LabelX' => 0, 'LabelY' => 0, 'ImageBufferCount' => 40, 'WarmupCount' => 25, 'PreEventCount' => 10, 'PostEventCount' => 10, 'StreamReplayBuffer' => 1000, 'AlarmFrameCount' => 1, 'Controllable' => 0, 'ControlId' => "", 'ControlType' => 0, 'ControlDevice' => "", 'ControlAddress' => "", 'AutoStopTimeout' => "", 'TrackMotion' => 0, 'TrackDelay' => "", 'ReturnLocation' => -1, 'ReturnDelay' => "", 'SectionLength' => 600, 'FrameSkip' => 0, 'EventPrefix' => 'Event-', 'MaxFPS' => "", 'AlarmMaxFPS' => "", 'FPSReportInterval' => 1000, 'RefBlendPerc' => 7, 'DefaultView' => 'Events', 'DefaultRate' => '100', 'DefaultScale' => '100', 'SignalCheckColour' => '#0100BE', 'WebColour' => 'red', 'Triggers' => "", ); } if ( ZM_OPT_X10 && empty($x10Monitor) ) { $x10Monitor = array( 'Activation' => '', 'AlarmInput' => '', 'AlarmOutput' => '', ); } if ( isset( $_REQUEST['newMonitor'] ) ) { $newMonitor = $_REQUEST['newMonitor']; if ( ZM_OPT_X10 ) $newX10Monitor = $_REQUEST['newX10Monitor']; } else { $newMonitor = $monitor; $newMonitor['Triggers'] = split( ',', isset($monitor['Triggers'])?$monitor['Triggers']:"" ); if ( ZM_OPT_X10 ) $newX10Monitor = $x10Monitor; } if ( $newMonitor['MaxFPS'] == '0.00' ) $newMonitor['MaxFPS'] = ''; if ( $newMonitor['AlarmMaxFPS'] == '0.00' ) $newMonitor['AlarmMaxFPS'] = ''; if ( !empty($_REQUEST['preset']) ) { $preset = dbFetchOne( "select Type, Device, Channel, Format, Protocol, Method, Host, Port, Path, SubPath, Width, Height, Palette, MaxFPS, Controllable, ControlId, ControlDevice, ControlAddress, DefaultRate, DefaultScale from MonitorPresets where Id = '".dbEscape($_REQUEST['preset'])."'" ); foreach ( $preset as $name=>$value ) { if ( isset($value) ) { $newMonitor[$name] = $value; } } } $sourceTypes = array( 'Local' => $SLANG['Local'], 'Remote' => $SLANG['Remote'], 'File' => $SLANG['File'] ); $localMethods = array( 'v4l2' => "Video For Linux version 2", 'v4l1' => "Video For Linux version 1", ); if ( !ZM_V4L2 ) unset($localMethods['v4l2']); $remoteProtocols = array( "http" => "HTTP", "rtsp" => "RTSP" ); $rtspMethods = array( "rtpUni" => "RTP/Unicast", "rtpMulti" => "RTP/Multicast", "rtpRtsp" => "RTP/RTSP", "rtpRtspHttp" => "RTP/RTSP/HTTP" ); $httpMethods = array( "simple" => "Simple", "regexp" => "Regexp", "jpegTags" => "JPEG Tags" ); if ( !ZM_PCRE ) unset($httpMethods['regexp']); // Currently unsupported unset($httpMethods['jpegTags']); $deviceFormats = array( "PAL" => 0, "NTSC" => 1, "SECAM" => 2, "AUTO" => 3, "FMT4" => 4, "FMT5" => 5, "FMT6" => 6, "FMT7" => 7 ); $deviceChannels = array(); for ( $i = 0; $i <= 15; $i++ ) $deviceChannels["$i"] = $i; $localPalettes = array( $SLANG['Grey'] => 1, "RGB24" => 4, "RGB565" => 3, "RGB555" => 6, "YUV422" => 7, "YUYV" => 8, "YUV422P" => 13, "YUV420P" => 15 ); $remoteColours = $fileColours = array( $SLANG['8BitGrey'] => 1, $SLANG['24BitColour'] => 3 ); $orientations = array( $SLANG['Normal'] => '0', $SLANG['RotateRight'] => '90', $SLANG['Inverted'] => '180', $SLANG['RotateLeft'] => '270', $SLANG['FlippedHori'] => 'hori', $SLANG['FlippedVert'] => 'vert' ); xhtmlHeaders(__FILE__, $SLANG['Monitor']." - ".validHtmlStr($monitor['Name']) ); ?>
$SLANG['None'], '0' => $SLANG['Home'], '1' => $SLANG['Preset']." 1", ); ?>
checked="checked"/>
"; ?> checked="checked"/> 
()
()
checked="checked"/>
 
checked="checked"/>
    
    
disabled="disabled"/>