<?php
error_reporting(0);
$server = $_REQUEST["server"];
$user = $_REQUEST["user"];
$password = $_REQUEST["password"];
$card = $_REQUEST["card"];
$camera = $_REQUEST["camera"];
$camera = ($card - 1) * 32 + $camera;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd"><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<title>Script</title>
</head>
<BODY onload="" topmargin="0" leftmargin="0" style="overflow:auto;">
<p>
<OBJECT id="RVCtlLarge" codeBase="rvctl.dll" height="100%"
width="100%" classid="CLSID:6781FF2E-7452-11D4-84D4-0040F60CE591" VIEWASTEXT>
<PARAM NAME="Username" VALUE="<?PHP echo $user?>">
<PARAM NAME="EPassword" VALUE="<?PHP echo $password?>">
<PARAM NAME="Server" VALUE="<?PHP echo $server ?>">
<PARAM NAME="Camera" VALUE="<?PHP echo $camera ?>">
<PARAM NAME="ScaleLevel" VALUE="0">
<PARAM NAME="Brightness" VALUE="0">
<PARAM NAME="Contrast" VALUE="32">
<PARAM NAME="AutoRun" VALUE="1">
<PARAM NAME="FrameInfoOnly" VALUE="0">
<PARAM NAME="LiveVideoThrottle" VALUE="0">
<PARAM NAME="ShowVideo" VALUE="1">
<PARAM NAME="Invert" VALUE="0">
<PARAM NAME="GetTimesWithSearch" VALUE="0">
<PARAM NAME="BackColor" VALUE="0">
<PARAM NAME="Zoom" VALUE="100">
<PARAM NAME="Port" VALUE="18772">
<PARAM NAME="MaxPlayDelay" VALUE="0">
<PARAM NAME="PlaybackFrameRate" VALUE="33">
<PARAM NAME="MaxPlaybackFrameRate" VALUE="22">
<PARAM NAME="MinPlaybackFrameRate" VALUE="1000">
</OBJECT>
</p>
</BODY>
</html>