0, 'Name' => $SLANG['New'], 'Function' => "None", '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 ( !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'] ); $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" ); 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']." - ".$monitor['Name'] ); ?>
$SLANG['None'], '0' => $SLANG['Home'], '1' => $SLANG['Preset']." 1", ); ?>
checked="checked"/>
"; ?> checked="checked"/> 
()
()
checked="checked"/>
 
checked="checked"/>
    
    
disabled="disabled"/>