HTTP/1.1 200 OK
Date: Thu, 07 Nov 2024 05:37:42 GMT
Server: Boa/0.94.14rc21
Accept-Ranges: bytes
Connection: close
Content-Length: 47593
Last-Modified: Thu, 07 Nov 2024 05:37:42 GMT
Content-Type: text/html
<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Cache-Control" content="no-cache" /><meta http-equiv="Expires" content="0" /><head><title>DVR Viewer</title><script type="text/javascript" src="js\jquery-1.4.2-yu.js"></script><script type="text/javascript" src="js\ui.core.js"></script><script type="text/javascript" src="js\ui.slider.js"></script><script type="text/javascript" src="js\jquery.timers.js"></script><script type="text/javascript" src="js\jquery.cookie.js"></script><script type="text/javascript" src="js\jquery.base64.js"></script><script type="text/javascript" src="js\jquery.localisation.104-br.js"></script><script type="text/javascript" src="style-003.js"></script><script type="text/javascript" src="BackupLive.js"></script><link type="text/css" href="js\jquery-ui-1.7.2.custom.css" rel="stylesheet" /><link type="text/css" href="js-Event\jquery.ui.all.css" rel="stylesheet" /><link type="text/css" href="js-Event\jquery.ui.slider.css" rel="stylesheet" /><link type="text/css" href="js-Event\demos.css" rel="stylesheet" /><link type="text/css" href="DVRStyle.css" rel="stylesheet" /><script type="text/javascript">
var OcxVer;
var x ;
var winobj = null;
var winloginobj;
var strip;
var strport;
var active = 0; //0:viewer 1:player
var activeForward = 0;
var activeBack = 0;
var activeFForward = 0;
var activeFBack = 0;
var DVRPort2;
var DVRuser;
var DVRpass;
var connectcount = 2 ;
var ptz = 1;
var pb = 1 ;
var pauseview = 0;
var canEventSearch= 0;
var canWebConf = 0;
var canWebView = 1;
var checkAccount = 1;
var checkConnect = 0 ; //1:connect ; 0:disconnect
// PTZ Status & Info
var Channel = 0;
var Preset = 1;
var ArrowStop = 0;
var chmask;
var iautoreconnect = 0;
var firsttime = 0;
var isMute = 0; //1 = set mute
var c = 0;
var timezone = 0;
var soundpause = 0;
var vol = 0;
var firstplay = 1 ;
var fullscreen = 0 ; //1 = full
var cw;
var ch;
var pausepb = 0 ; //1 = pause
function DelayedResize() {
try {
var w = document.body.offsetWidth;
var h = document.body.offsetHeight;
window.resizeBy(cw - w, ch - h );
//alert(ch-h );
} catch(err) {
window.setTimeout(DelayedResize, 500);
}
}
function UpdateControlSize()
{
//alert("click 1") ;
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
//document.hictrlweb.ClearScreen();
//alert("test");
var pic = document.getElementById("hictrlweb");
var t0 = document.getElementById("table0");
if (fullscreen == 0)
{
//alert("full") ;
fullscreen = 1 ;
pic.width=document.body.clientWidth * 0.64;
pic.height=document.body.clientHeight * 0.77;
t0.width=document.body.clientWidth ;
t0.height=document.body.clientHeight ;
//alert(pic.width +" ," + pic.height + ";"+ t0.width +"," +t0.height)
$("#resize").css("background","url(Images/text_braille.png)");
$("#resize").attr({title:dstr_DefaultSize});
}
else
{
fullscreen = 0 ;
pic.width=493;
pic.height=348;
t0.width=640 ;
t0.height=480 ;
$("#resize").css("background","url(Images/fit_to_size.png)");
$("#resize").attr({title:dstr_FullSize});
}
}
function InitDOM ()
{
if (!DvrPTZ||DvrPTZ==0)
$('#PTZ').remove();
if (!DvrAudio||DvrAudio==0)
{
$('#Mute').remove();
$('#Vol').remove();
$('#volslider').remove();
}
var tmp = $('#hictrlweb').attr('codebase');
var i = tmp.indexOf('=');
OcxVer = tmp.substring(i + 1);
$("#OcxVer").html('- ' + OcxVer);
}
function Init()
{
$("#ConnectStatus").html("");
$('#checkbox').click(function() {
if ($(this).attr('checked') == true)
{
SetCookie();
}
else
{
$.cookie('user', ''); // delete cookie
$.cookie('pass', ''); // delete cookie
}
});
if($.cookie('autorecon') == 1)
{
//alert($.cookie('autorecon')) ;
//要䀤¸㽿¥cookie??ode
$('#checkbox2').attr('checked', '1');
iautoreconnect = 1 ;
}
$("#connect").attr({title:dstrDVR_Connect});
//alert("colin1");
}
function InitLang()
{
$("#username").html(dStrDVR_User);
$("#password").html(dStrDVR_Pass);
$("#SaveUP").html(dstrDVR_SaveCookie);
$("#ReConnect").html(dstrDVR_AutoRecon);
$("#FirmVerInfo").html(dStrFirmUpdate_CurrentRevision);
$("#PB").attr({title:dstrDVR_PB});
$("#PTZ").attr({title:dstrDVR_PTZ});
$("#Set").attr({title:dstrDVR_Config});
$("#pauseview").attr({title:dstrDVR_Pause});
$("#capture").attr({title:dstrDVR_Capture});
$("#record").attr({title:dstrDVR_Record});
$("#FastBack").attr({title:"x2"});
$("#Back").attr({title:"x1"});
$("#Forward").attr({title:"x1"});
$("#FastForward").attr({title:"x2"});
$("#OnlineUser").attr({title:dStrNetworkInfo_LoginCount});
$("#resize").attr({title:dstr_FullSize});
$("#LoadActiveX").attr({title:dsrt_ManualInstall});
if (DvrPTZ)
{
// PTZ Menu
$("#FocusAuto").attr({title:dStrPTZMenu_FocusAuto});
$("#FocusNear").attr({title:dStrPTZMenu_FocusNear});
$("#FocusFar").attr({title:dStrPTZMenu_FocusFar});
$("#IrisAuto").attr({title:dStrPTZMenu_IrisAuto});
$("#IrisOpen").attr({title:dStrPTZMenu_IrisOpen});
$("#IrisClose").attr({title:dStrPTZMenu_IrisClose});
$("#ZoomIn").attr({title:dStrPTZMenu_ZoomIn});
$("#ZoomOut").attr({title:dStrPTZMenu_ZoomOut});
$("#SetLeft").attr({title:dStrPTZMenu_AutoPanSetLeft});
$("#SetRight").attr({title:dStrPTZMenu_AutoPanSetRight});
$("#Patrol").attr({title:dStrPTZMenu_AutoPanStart});
$("#Cruise").attr({title:dStrPTZMenu_CruiseStart});
}
}
function Disconnect()
{
$("#LoadActiveX").show();
if (winloginobj != null)
{
winloginobj.close();
}
if (winobj != null)
{
winobj.close();
}
firstplay = 1 ;
checkAccount = 0;
checkConnect = 0; //disconnect
$("#DvrStatTimer").stopTime("DvrStat");
var t3 = document.hictrlweb.GetDvrConnStatus();
$.cookie('account', ""); // Delete cookie
if (t3 != false )
{
document.hictrlweb.Disconnect();
}
//$("#DvrStatTimer").stopTime("DvrStat");
$(".btnb2").hide();
$(".Spiltbtn").hide();
$(".PauseViewbtn").hide();
//$(".stylelogin").show('fast');
$(".stylelogin").attr("disabled", false);
$(".style7").attr("disabled", false);
$("#PTZ").hide();
InitButton();
active = 0 ;
activeForward =0;
activeBack =0;
activeFForward=0;
activeFBack=0;
pauseview == 0
$("#PTZtable").hide(function() {
ptz = 1;
});
$(".style4").hide()
pb = 1;
$(".stylerec").hide();
$(".stylerecAudio").hide();
SwitchView();
StopAllRec();
}
//yu++20100810 search by time
function GetRecordByTime(keych,keyt)
{
document.hictrlweb.ClearScreen();
if(active == 0)
{
SK(6);
}
//alert(keyt);
document.hictrlweb.GetPlayRecbyTime(0xFF,keyt);
$("#pauseview").hide();
$("#PTZ").hide();
StopAllRec();
HideControl();
//$("#PBtable").show();
$(".style4").show();
$("#slider").slider( "option", "value", 0);
$("#Play").css("background","url(Images/Play.png)");
active = 1 ;
SK2(1, 0xFF, 0);
PlayAction();
}
function GetTimeOffset()
{
timezone = document.hictrlweb.GetTimeOffSet();
}
function SK(keyVal)
{
document.hictrlweb.SendKeyCommand(keyVal);
}
// PTZ function
function SKX(ch, ptzcode)
{
document.hictrlweb.SendKeyXCommand(ch, ptzcode);
}
function ArrowStop_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x00000BBF);
}
function ArrowUp_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000009BF);
}
function ArrowLeft_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000007BF);
}
function ArrowRight_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000003BF);
}
function ArrowRight225_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000004BF);
}
function ArrowRight45_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x00000ABF);
}
function ArrowLeft315_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000006BF);
}
function ArrowLeft135_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000008BF);
}
function ArrowDown_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000005BF);
}
function FocusAuto_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000012BF);
}
function FocusNear_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000013BF);
}
function FocusFar_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000014BF);
}
function IrisAuto_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000017BF);
}
function IrisOpen_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000018BF);
}
function IrisClose_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000019BF);
}
function Patrol_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x00001EBF);
}
function SetLeft_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000020BF);
}
function SetRight_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x000021BF);
}
function ZoomIn_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x00000EBF);
}
function ZoomOut_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x00000FBF);
}
function Cruise_()
{
document.hictrlweb.SendKeyXCommand(Channel, 0x00001BBF);
}
function PresetCall_()
{
document.hictrlweb.SendKeyXCommand(Channel, 65536*Preset + 8895);
}
function PresetSetup_()
{
document.hictrlweb.SendKeyXCommand(Channel, 65536*Preset + 9151);
}
function PresetClear_()
{
document.hictrlweb.SendKeyXCommand(Channel, 65536*Preset + 9407);
}
function SK2(keyVal1,keyVal2,keyVal3) //設㽿放?狨Play,pause....)
{
document.hictrlweb.SendPBFCommand(keyVal1,keyVal2,keyVal3);
}
function SetRectTimePosition(keyVal1,keyVal2) //設㽿影?放位置
{
document.hictrlweb.SendPlayRecTCommand(keyVal1,keyVal2);
}
function SetSoundPause()
{
document.hictrlweb.SetSoundPause();
alert("pause");
}
//?¤斷權罨event search,web config ,live view)
function CheckAccount(user,pass)
{
//alert(user","pass);
$.cookie('account', $.base64Encode(user+":"+pass)); // set cookie
//http://192.168.11.195/gw/perm.xml?p=7
GetXml(DVRHost + "/gw/perm.xml", {p:7}, function(xml) {
if ($("p", xml).text()!= "" ) {
canWebConf = $("p", xml).text();
if(canWebConf =="1") {$("#Set").show();}
//alert("canWebConf="+canWebConf)
}
});
}
function CheckPTZAccount (user,pass)
{
$.cookie('account', $.base64Encode(user+":"+pass)); // set cookie
GetXml (DVRHost + "/gw/perm.xml", {p:9}, function(xml) {
if ($('p', xml).text() != '')
{
canEventSearch = $('p', xml).text();
if (canEventSearch == '1')
{
GetXml(DVRHost + "/gw/PTZI.xml", {}, function(xml) {
chmask = $("chmask", xml).text();
//alert(chmask) ;
if (chmask != 0)$("#PTZ").show();
});
}
//alert ("canEventSearch="+canEventSearch)
}
});
}
function CheckEvntAccount(user,pass)
{
//事件?䀦¬罍
//alert(user","pass);
//http://192.168.11.195/gw/perm.xml?p=7
$.cookie('account', $.base64Encode(user+":"+pass)); // set cookie
GetXml(DVRHost + "/gw/perm.xml", {p:5}, function(xml) {
if ($("p", xml).text()!= "" ) {
canEventSearch = $("p", xml).text();
if (canEventSearch =="1")
{
$("#PB").show();
}
//alert("canWebConf="+canWebConf);
}
});
}
function ConnectDVR (user, pass)
{
var Auth = null; // Net Monitoring
var Full = null; // ?»入人數已滿
GET_HOSTNAME_PORT();
connectcount = 0;
DVRuser = user;
DVRpass = pass;
$.cookie('account', $.base64Encode(DVRuser+":"+DVRpass)); // set cookie
$(".style8").attr("disabled", false);
$("#DvrStatTimer").stopTime("DvrStat"); // stop Timer
$("#LoadActiveX").hide();
// Ask Permission
GetXml(DVRHost + "/gw/perm.xml", {p:8}, function(xml) {
Auth = $("p", xml).text();
Full = $("f", xml).text();
if (Auth == null)
{
alert('Response from DVR error !!');
}
else
{
if (Auth == '0') // Net Monitoring
{
alert(dstrDVR_NetAuth);
}
else if (Full == '1') // ?»入人數已滿
{
alert('Login Count Full');
}
}
});
if (Auth == '0' || Full == '1') return;
//alert("DvrType = " + DvrType);
if(DvrType == "804" || DvrType == "808" || DvrType == "816")document.hictrlweb.SetDVRMode(1);
else document.hictrlweb.SetDVRMode(0);
// Ask Monitor Port
GetXml(DVRHost + "/gw/Port.xml", {}, function(xml) {
DVRPort2 = $("p2", xml).text(); //alert(DVRPort2);
if (DVRPort2 != '-1' && DVRPort2 != '' )
{
x = document.hictrlweb.ConnectDVR (DVRHostName, DVRPort2, user, pass);
}
else if (DVRPort2 == '')
{
x = document.hictrlweb.ConnectDVR (DVRHostName, DVRPort, user, pass); //使用80 or location.port
}
else if (DVRPort2 == '-1')
{
alert(dsrtErr_NOService);
$("#DvrStatTimer").stopTime("DvrStat"); // stop Timer
return;
}
});
if (DVRPort2 == '-1') return;
if (firsttime == 0)
{
$("#DvrStatTimer").everyTime(2000, "DvrStat", function() {
GetDVRStatus();
}, 0, true);
//alert('firsttime == 0');
}
else
{
$("#DvrStatTimer").everyTime(8000, "DvrStat", function() {
GetDVRAfterConnect();
}, 0, true);
}
}
function GetStillCapture()
{
var v = document.hictrlweb.StillCapture("");
if(v == 0)alert("Capture Fail ");
else if( v == 1)alert( document.hictrlweb.ShowCaptureFileName());
}
function PauseView(keyVal1,keyVal2)
{
//UpdateControlSize() ;
document.hictrlweb.OnPauseView(keyVal1,keyVal2);
}
function AutoReconnect()
{
//alert("DvrType = " + DvrType);
if(DvrType == "804" || DvrType == "808" || DvrType == "816")document.hictrlweb.SetDVRMode(1);
else document.hictrlweb.SetDVRMode(0);
x = document.hictrlweb.ConnectDVR (DVRHostName, DVRPort, DVRuser, DVRpass);
//alert (c);
c = c + 1;
}
function GetDVRStatus()
{
var t = document.hictrlweb.GetDvrConnStatus();
if (t == false)
{
if ( c> 5)
{
$("#ConnectStatus").html(dstrDVR_ConnectFail);
//alert (dstrDVR_ConnectFail);
Disconnect();
}
else
{
AutoReconnect();
$("#ConnectStatus").html(dstrDVR_ReConnect);
return;
}
connectcount = connectcount +1;
checkConnect = 0; //
$(".stylelogin").attr("disabled", false);
$(".style7").attr("disabled", false);
$("#connect").css("background","url(Images/Connect.png)");
$("#connect").attr({title:dstrDVR_Connect});
}
else
{
$("#DvrStatTimer").stopTime("DvrStat");
firsttime = 1;
$("#ConnectStatus").html("");
connectcount = 0 ;
checkConnect = 1; //???
$(".style8").attr("disabled", true);
$(".Spiltbtn").show();
DvrChnNum = document.hictrlweb.GetChannelNumber();
if (DvrChnNum == 9) DvrChnNum --;
if (DvrChnNum == 4 )
{
$("#split9").hide();
$("#split16").hide();
}
else if (DvrChnNum == 8)
{
$("#split16").hide();
}
else if (DvrChnNum == 0)
{
$("#split9").hide();
$("#split16").hide();
}
$(".PauseViewbtn").show();
$(".stylelogin").attr("disabled", true);
$(".style7").attr("disabled", true);
$("#connect").attr({title:dstrDVR_DisConnect});
$("#connect").css("background","url(Images/Disconnect.png)");
$.cookie('port',DVRPort); // set cookie
CheckAccount (DVRuser,DVRpass); // 確潿¯否?網路設定使?
CheckEvntAccount(DVRuser,DVRpass); // 確潿¯否?〤»¶倥°使?
CheckPTZAccount (DVRuser,DVRpass); // 確潿¯否?PTZ權罍
$("#DvrStatTimer").everyTime(8000, "DvrStat", function() {
GetDVRAfterConnect();
}, 0, true);
//alert('583');
document.hictrlweb.SetVolume(65535/10*1);
}
}
function GetDVRAfterConnect()
{
var t2 = document.hictrlweb.GetDvrConnStatus();
if (t2 == false)
{
if (iautoreconnect == 1)
{
// $(".style8").attr("disabled", false);
$("#ConnectStatus").html(dstrDVR_ReConnect);
//DVR ?¢怤º?
//checkConnect = 0; //?·彍
$("#DvrStatTimer").stopTime("DvrStat");
StopPlay2();
//ConnectDVR(DVRuser,DVRpass);
}
}
else
{
checkConnect = 1 ;
$("#ConnectStatus").html("");
$("#connect").attr({title:dstrDVR_DisConnect});
Update_Online();
}
}
function OpenWindow(u)
{
//alert(winobj);
if (winobj != null)
{
winobj.focus();
}
else
{
winobj = window.open(u,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=590,height=400");
}
}
function OpenSetWindow(u)
{
if (canWebConf == "1")
{
$.cookie('account', $.base64Encode(DVRuser+":"+DVRpass)); // set cookie
if (winloginobj != null)
{
//alert( "winloginobj != null" );
winloginobj.focus()
}
else
{
//alert( "winloginobj open" );
winloginobj=window.open(u,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=800,height=600");
//window.location.href = "index_web.html"
}
}
else if (canWebConf=="2")
{
alert(dstrDVR_NetService);
}
else
{
alert(dstrDVR_NetAuth);
}
}
function SendRecordID(keyVal1)
{
document.hictrlweb.ClearScreen();
//?㾰layback button
$("#pauseview").hide();
$("#PTZ").hide();
StopAllRec();
HideControl();
//$("#PBtable").show();
$(".style4").show();
$("#slider").slider( "option", "value", 0);
$("#Play").css("background","url(Images/Play.png)");
SetRectTimePosition(0xFF,0);
$(".SilderBar").hide();
document.hictrlweb.GetEventRecordCommand(keyVal1);
//IsPlayBack = 1;
active = 1 ;
SK2(1, 0xFF, 0);
PlayAction();
}
function ShowAlert()
{
alert(dstrDVR_SelRec);
}
f
{
"@category" : "datascan",
"@timestamp" : "2024-11-07T05:37:42.000Z",
"app" : {
"extract" : {
"file" : [
"port.xml",
"ptzi.xml",
"perm.xml"
],
"ip" : [
"192.168.11.195"
],
"url" : [
"http://192.168.11.195/gw/perm.xml?p=7"
]
},
"http" : {
"bodymd5" : "c6df3cbfda3739a638aa082e44091923",
"bodymmh3" : -1744934828,
"header" : [
{
"value" : "Thu, 07 Nov 2024 05:37:42 GMT",
"name" : "Last-Modified"
}
],
"headermd5" : "4a29bb07a7fa869a73830842e04c9a43",
"headermmh3" : 1182750651,
"title" : "DVR Viewer"
},
"length" : 16384
},
"asn" : "AS3462",
"city" : "Guishan",
"country" : "TW",
"cpe" : "<enterprise field>: cpe",
"cpecount" : "<enterprise field>: cpecount",
"data" : "HTTP/1.1 200 OK\r\nDate: Thu, 07 Nov 2024 05:37:42 GMT\r\nServer: Boa/0.94.14rc21\r\nAccept-Ranges: bytes\r\nConnection: close\r\nContent-Length: 47593\r\nLast-Modified: Thu, 07 Nov 2024 05:37:42 GMT\r\nContent-Type: text/html\r\n\r\n<html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><meta http-equiv=\"Pragma\" content=\"no-cache\" /><meta http-equiv=\"Cache-Control\" content=\"no-cache\" /><meta http-equiv=\"Expires\" content=\"0\" /><head><title>DVR Viewer</title><script type=\"text/javascript\" src=\"js\\jquery-1.4.2-yu.js\"></script><script type=\"text/javascript\" src=\"js\\ui.core.js\"></script><script type=\"text/javascript\" src=\"js\\ui.slider.js\"></script><script type=\"text/javascript\" src=\"js\\jquery.timers.js\"></script><script type=\"text/javascript\" src=\"js\\jquery.cookie.js\"></script><script type=\"text/javascript\" src=\"js\\jquery.base64.js\"></script><script type=\"text/javascript\" src=\"js\\jquery.localisation.104-br.js\"></script><script type=\"text/javascript\" src=\"style-003.js\"></script><script type=\"text/javascript\" src=\"BackupLive.js\"></script><link type=\"text/css\" href=\"js\\jquery-ui-1.7.2.custom.css\" rel=\"stylesheet\" /><link type=\"text/css\" href=\"js-Event\\jquery.ui.all.css\" rel=\"stylesheet\" /><link type=\"text/css\" href=\"js-Event\\jquery.ui.slider.css\" rel=\"stylesheet\" /><link type=\"text/css\" href=\"js-Event\\demos.css\" rel=\"stylesheet\" /><link type=\"text/css\" href=\"DVRStyle.css\" rel=\"stylesheet\" /><script type=\"text/javascript\">\nvar OcxVer;\nvar x ;\nvar winobj = null;\nvar winloginobj;\nvar strip;\nvar strport;\nvar active = 0; //0:viewer 1:player\nvar activeForward = 0;\nvar activeBack = 0;\nvar activeFForward = 0;\nvar activeFBack = 0;\nvar DVRPort2;\nvar DVRuser;\nvar DVRpass;\nvar connectcount = 2 ;\nvar ptz = 1;\nvar pb = 1 ;\nvar pauseview = 0;\nvar canEventSearch= 0;\nvar canWebConf = 0;\nvar canWebView = 1;\nvar checkAccount = 1;\nvar checkConnect = 0 ; //1:connect ; 0:disconnect\n// PTZ Status & Info\nvar Channel = 0;\nvar Preset = 1;\nvar ArrowStop = 0;\nvar chmask;\nvar iautoreconnect = 0;\nvar firsttime = 0;\nvar isMute = 0; //1 = set mute\nvar c = 0;\nvar timezone = 0;\nvar soundpause = 0;\nvar vol = 0;\nvar firstplay = 1 ;\nvar fullscreen = 0 ; //1 = full\nvar cw;\nvar ch;\nvar pausepb = 0 ; //1 = pause\nfunction DelayedResize() {\ntry {\nvar w = document.body.offsetWidth;\nvar h = document.body.offsetHeight;\nwindow.resizeBy(cw - w, ch - h );\n//alert(ch-h );\n} catch(err) {\nwindow.setTimeout(DelayedResize, 500);\n}\n}\nfunction UpdateControlSize()\n{\n//alert(\"click 1\") ;\nself.moveTo(0,0);\nself.resizeTo(screen.availWidth,screen.availHeight);\n//document.hictrlweb.ClearScreen();\n//alert(\"test\");\nvar pic = document.getElementById(\"hictrlweb\");\nvar t0 = document.getElementById(\"table0\");\nif (fullscreen == 0)\n{\n//alert(\"full\") ;\nfullscreen = 1 ;\npic.width=document.body.clientWidth * 0.64;\npic.height=document.body.clientHeight * 0.77;\nt0.width=document.body.clientWidth ;\nt0.height=document.body.clientHeight ;\n//alert(pic.width +\" ,\" + pic.height + \";\"+ t0.width +\",\" +t0.height)\n$(\"#resize\").css(\"background\",\"url(Images/text_braille.png)\");\n$(\"#resize\").attr({title:dstr_DefaultSize});\n}\nelse\n{\nfullscreen = 0 ;\npic.width=493;\npic.height=348;\nt0.width=640 ;\nt0.height=480 ;\n$(\"#resize\").css(\"background\",\"url(Images/fit_to_size.png)\");\n$(\"#resize\").attr({title:dstr_FullSize});\n}\n}\nfunction InitDOM ()\n{\nif (!DvrPTZ||DvrPTZ==0)\n$('#PTZ').remove();\nif (!DvrAudio||DvrAudio==0)\n{\n$('#Mute').remove();\n$('#Vol').remove();\n$('#volslider').remove();\n}\nvar tmp = $('#hictrlweb').attr('codebase');\nvar i = tmp.indexOf('=');\nOcxVer = tmp.substring(i + 1);\n$(\"#OcxVer\").html('- ' + OcxVer);\n}\nfunction Init()\n{\n$(\"#ConnectStatus\").html(\"\");\n$('#checkbox').click(function() {\nif ($(this).attr('checked') == true)\n{\nSetCookie();\n}\nelse\n{\n$.cookie('user', ''); // delete cookie\n$.cookie('pass', ''); // delete cookie\n}\n});\nif($.cookie('autorecon') == 1)\n{\n//alert($.cookie('autorecon')) ;\n//\u8981\u4024\u00b8\u008a\u3f7f\u00a5cookie??ode\n$('#checkbox2').attr('checked', '1');\niautoreconnect = 1 ;\n}\n$(\"#connect\").attr({title:dstrDVR_Connect});\n//alert(\"colin1\");\n}\nfunction InitLang()\n{\n$(\"#username\").html(dStrDVR_User);\n$(\"#password\").html(dStrDVR_Pass);\n$(\"#SaveUP\").html(dstrDVR_SaveCookie);\n$(\"#ReConnect\").html(dstrDVR_AutoRecon);\n$(\"#FirmVerInfo\").html(dStrFirmUpdate_CurrentRevision);\n$(\"#PB\").attr({title:dstrDVR_PB});\n$(\"#PTZ\").attr({title:dstrDVR_PTZ});\n$(\"#Set\").attr({title:dstrDVR_Config});\n$(\"#pauseview\").attr({title:dstrDVR_Pause});\n$(\"#capture\").attr({title:dstrDVR_Capture});\n$(\"#record\").attr({title:dstrDVR_Record});\n$(\"#FastBack\").attr({title:\"x2\"});\n$(\"#Back\").attr({title:\"x1\"});\n$(\"#Forward\").attr({title:\"x1\"});\n$(\"#FastForward\").attr({title:\"x2\"});\n$(\"#OnlineUser\").attr({title:dStrNetworkInfo_LoginCount});\n$(\"#resize\").attr({title:dstr_FullSize});\n$(\"#LoadActiveX\").attr({title:dsrt_ManualInstall});\nif (DvrPTZ)\n{\n// PTZ Menu\n$(\"#FocusAuto\").attr({title:dStrPTZMenu_FocusAuto});\n$(\"#FocusNear\").attr({title:dStrPTZMenu_FocusNear});\n$(\"#FocusFar\").attr({title:dStrPTZMenu_FocusFar});\n$(\"#IrisAuto\").attr({title:dStrPTZMenu_IrisAuto});\n$(\"#IrisOpen\").attr({title:dStrPTZMenu_IrisOpen});\n$(\"#IrisClose\").attr({title:dStrPTZMenu_IrisClose});\n$(\"#ZoomIn\").attr({title:dStrPTZMenu_ZoomIn});\n$(\"#ZoomOut\").attr({title:dStrPTZMenu_ZoomOut});\n$(\"#SetLeft\").attr({title:dStrPTZMenu_AutoPanSetLeft});\n$(\"#SetRight\").attr({title:dStrPTZMenu_AutoPanSetRight});\n$(\"#Patrol\").attr({title:dStrPTZMenu_AutoPanStart});\n$(\"#Cruise\").attr({title:dStrPTZMenu_CruiseStart});\n}\n}\nfunction Disconnect()\n{\n$(\"#LoadActiveX\").show();\nif (winloginobj != null)\n{\nwinloginobj.close();\n}\nif (winobj != null)\n{\nwinobj.close();\n}\nfirstplay = 1 ;\ncheckAccount = 0;\ncheckConnect = 0; //disconnect\n$(\"#DvrStatTimer\").stopTime(\"DvrStat\");\nvar t3 = document.hictrlweb.GetDvrConnStatus();\n$.cookie('account', \"\"); // Delete cookie\nif (t3 != false )\n{\ndocument.hictrlweb.Disconnect();\n}\n//$(\"#DvrStatTimer\").stopTime(\"DvrStat\");\n$(\".btnb2\").hide();\n$(\".Spiltbtn\").hide();\n$(\".PauseViewbtn\").hide();\n//$(\".stylelogin\").show('fast');\n$(\".stylelogin\").attr(\"disabled\", false);\n$(\".style7\").attr(\"disabled\", false);\n$(\"#PTZ\").hide();\nInitButton();\nactive = 0 ;\nactiveForward =0;\nactiveBack =0;\nactiveFForward=0;\nactiveFBack=0;\npauseview == 0\n$(\"#PTZtable\").hide(function() {\nptz = 1;\n});\n$(\".style4\").hide()\npb = 1;\n$(\".stylerec\").hide();\n$(\".stylerecAudio\").hide();\nSwitchView();\nStopAllRec();\n}\n//yu++20100810 search by time\nfunction GetRecordByTime(keych,keyt)\n{\ndocument.hictrlweb.ClearScreen();\nif(active == 0)\n{\nSK(6);\n}\n//alert(keyt);\ndocument.hictrlweb.GetPlayRecbyTime(0xFF,keyt);\n$(\"#pauseview\").hide();\n$(\"#PTZ\").hide();\nStopAllRec();\nHideControl();\n//$(\"#PBtable\").show();\n$(\".style4\").show();\n$(\"#slider\").slider( \"option\", \"value\", 0);\n$(\"#Play\").css(\"background\",\"url(Images/Play.png)\");\nactive = 1 ;\nSK2(1, 0xFF, 0);\nPlayAction();\n}\nfunction GetTimeOffset()\n{\ntimezone = document.hictrlweb.GetTimeOffSet();\n}\nfunction SK(keyVal)\n{\ndocument.hictrlweb.SendKeyCommand(keyVal);\n}\n// PTZ function\nfunction SKX(ch, ptzcode)\n{\ndocument.hictrlweb.SendKeyXCommand(ch, ptzcode);\n}\nfunction ArrowStop_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x00000BBF);\n}\nfunction ArrowUp_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000009BF);\n}\nfunction ArrowLeft_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000007BF);\n}\nfunction ArrowRight_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000003BF);\n}\nfunction ArrowRight225_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000004BF);\n}\nfunction ArrowRight45_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x00000ABF);\n}\nfunction ArrowLeft315_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000006BF);\n}\nfunction ArrowLeft135_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000008BF);\n}\nfunction ArrowDown_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000005BF);\n}\nfunction FocusAuto_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000012BF);\n}\nfunction FocusNear_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000013BF);\n}\nfunction FocusFar_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000014BF);\n}\nfunction IrisAuto_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000017BF);\n}\nfunction IrisOpen_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000018BF);\n}\nfunction IrisClose_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000019BF);\n}\nfunction Patrol_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x00001EBF);\n}\nfunction SetLeft_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000020BF);\n}\nfunction SetRight_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x000021BF);\n}\nfunction ZoomIn_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x00000EBF);\n}\nfunction ZoomOut_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x00000FBF);\n}\nfunction Cruise_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 0x00001BBF);\n}\nfunction PresetCall_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 65536*Preset + 8895);\n}\nfunction PresetSetup_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 65536*Preset + 9151);\n}\nfunction PresetClear_()\n{\ndocument.hictrlweb.SendKeyXCommand(Channel, 65536*Preset + 9407);\n}\nfunction SK2(keyVal1,keyVal2,keyVal3) //\u8a2d\u3f7f\u00ad\u653e?\u009f\u72e8Play,pause....)\n{\ndocument.hictrlweb.SendPBFCommand(keyVal1,keyVal2,keyVal3);\n}\nfunction SetRectTimePosition(keyVal1,keyVal2) //\u8a2d\u3f7f\u0084\u5f71?\u00ad\u653e\u4f4d\u7f6e\n{\ndocument.hictrlweb.SendPlayRecTCommand(keyVal1,keyVal2);\n}\nfunction SetSoundPause()\n{\ndocument.hictrlweb.SetSoundPause();\nalert(\"pause\");\n}\n//?\u00a4\u65b7\u6b0a\u7f68event search,web config ,live view)\nfunction CheckAccount(user,pass)\n{\n//alert(user\",\"pass);\n$.cookie('account', $.base64Encode(user+\":\"+pass)); // set cookie\n//http://192.168.11.195/gw/perm.xml?p=7\nGetXml(DVRHost + \"/gw/perm.xml\", {p:7}, function(xml) {\nif ($(\"p\", xml).text()!= \"\" ) {\ncanWebConf = $(\"p\", xml).text();\nif(canWebConf ==\"1\") {$(\"#Set\").show();}\n//alert(\"canWebConf=\"+canWebConf)\n}\n});\n}\nfunction CheckPTZAccount (user,pass)\n{\n$.cookie('account', $.base64Encode(user+\":\"+pass)); // set cookie\nGetXml (DVRHost + \"/gw/perm.xml\", {p:9}, function(xml) {\nif ($('p', xml).text() != '')\n{\ncanEventSearch = $('p', xml).text();\nif (canEventSearch == '1')\n{\nGetXml(DVRHost + \"/gw/PTZI.xml\", {}, function(xml) {\nchmask = $(\"chmask\", xml).text();\n//alert(chmask) ;\nif (chmask != 0)$(\"#PTZ\").show();\n});\n}\n//alert (\"canEventSearch=\"+canEventSearch)\n}\n});\n}\nfunction CheckEvntAccount(user,pass)\n{\n//\u4e8b\u4ef6?\u009c\u4026\u00ac\u008a\u7f4d\n//alert(user\",\"pass);\n//http://192.168.11.195/gw/perm.xml?p=7\n$.cookie('account', $.base64Encode(user+\":\"+pass)); // set cookie\nGetXml(DVRHost + \"/gw/perm.xml\", {p:5}, function(xml) {\nif ($(\"p\", xml).text()!= \"\" ) {\ncanEventSearch = $(\"p\", xml).text();\nif (canEventSearch ==\"1\")\n{\n$(\"#PB\").show();\n}\n//alert(\"canWebConf=\"+canWebConf);\n}\n});\n}\nfunction ConnectDVR (user, pass)\n{\nvar Auth = null; // Net Monitoring\nvar Full = null; // ?\u00bb\u5165\u4eba\u6578\u5df2\u6eff\nGET_HOSTNAME_PORT();\nconnectcount = 0;\nDVRuser = user;\nDVRpass = pass;\n$.cookie('account', $.base64Encode(DVRuser+\":\"+DVRpass)); // set cookie\n$(\".style8\").attr(\"disabled\", false);\n$(\"#DvrStatTimer\").stopTime(\"DvrStat\"); // stop Timer\n$(\"#LoadActiveX\").hide();\n// Ask Permission\nGetXml(DVRHost + \"/gw/perm.xml\", {p:8}, function(xml) {\nAuth = $(\"p\", xml).text();\nFull = $(\"f\", xml).text();\nif (Auth == null)\n{\nalert('Response from DVR error !!');\n}\nelse\n{\nif (Auth == '0') // Net Monitoring\n{\nalert(dstrDVR_NetAuth);\n}\nelse if (Full == '1') // ?\u00bb\u5165\u4eba\u6578\u5df2\u6eff\n{\nalert('Login Count Full');\n}\n}\n});\nif (Auth == '0' || Full == '1') return;\n//alert(\"DvrType = \" + DvrType);\nif(DvrType == \"804\" || DvrType == \"808\" || DvrType == \"816\")document.hictrlweb.SetDVRMode(1);\nelse document.hictrlweb.SetDVRMode(0);\n// Ask Monitor Port\nGetXml(DVRHost + \"/gw/Port.xml\", {}, function(xml) {\nDVRPort2 = $(\"p2\", xml).text(); //alert(DVRPort2);\nif (DVRPort2 != '-1' && DVRPort2 != '' )\n{\nx = document.hictrlweb.ConnectDVR (DVRHostName, DVRPort2, user, pass);\n}\nelse if (DVRPort2 == '')\n{\nx = document.hictrlweb.ConnectDVR (DVRHostName, DVRPort, user, pass); //\u4f7f\u752880 or location.port\n}\nelse if (DVRPort2 == '-1')\n{\nalert(dsrtErr_NOService);\n$(\"#DvrStatTimer\").stopTime(\"DvrStat\"); // stop Timer\nreturn;\n}\n});\nif (DVRPort2 == '-1') return;\nif (firsttime == 0)\n{\n$(\"#DvrStatTimer\").everyTime(2000, \"DvrStat\", function() {\nGetDVRStatus();\n}, 0, true);\n//alert('firsttime == 0');\n}\nelse\n{\n$(\"#DvrStatTimer\").everyTime(8000, \"DvrStat\", function() {\nGetDVRAfterConnect();\n}, 0, true);\n}\n}\nfunction GetStillCapture()\n{\nvar v = document.hictrlweb.StillCapture(\"\");\nif(v == 0)alert(\"Capture Fail \");\nelse if( v == 1)alert( document.hictrlweb.ShowCaptureFileName());\n}\nfunction PauseView(keyVal1,keyVal2)\n{\n//UpdateControlSize() ;\ndocument.hictrlweb.OnPauseView(keyVal1,keyVal2);\n}\nfunction AutoReconnect()\n{\n//alert(\"DvrType = \" + DvrType);\nif(DvrType == \"804\" || DvrType == \"808\" || DvrType == \"816\")document.hictrlweb.SetDVRMode(1);\nelse document.hictrlweb.SetDVRMode(0);\nx = document.hictrlweb.ConnectDVR (DVRHostName, DVRPort, DVRuser, DVRpass);\n//alert (c);\nc = c + 1;\n}\nfunction GetDVRStatus()\n{\nvar t = document.hictrlweb.GetDvrConnStatus();\nif (t == false)\n{\nif ( c> 5)\n{\n$(\"#ConnectStatus\").html(dstrDVR_ConnectFail);\n//alert (dstrDVR_ConnectFail);\nDisconnect();\n}\nelse\n{\nAutoReconnect();\n$(\"#ConnectStatus\").html(dstrDVR_ReConnect);\nreturn;\n}\nconnectcount = connectcount +1;\ncheckConnect = 0; //\n$(\".stylelogin\").attr(\"disabled\", false);\n$(\".style7\").attr(\"disabled\", false);\n$(\"#connect\").css(\"background\",\"url(Images/Connect.png)\");\n$(\"#connect\").attr({title:dstrDVR_Connect});\n}\nelse\n{\n$(\"#DvrStatTimer\").stopTime(\"DvrStat\");\nfirsttime = 1;\n$(\"#ConnectStatus\").html(\"\");\nconnectcount = 0 ;\ncheckConnect = 1; //???\n$(\".style8\").attr(\"disabled\", true);\n$(\".Spiltbtn\").show();\nDvrChnNum = document.hictrlweb.GetChannelNumber();\nif (DvrChnNum == 9) DvrChnNum --;\nif (DvrChnNum == 4 )\n{\n$(\"#split9\").hide();\n$(\"#split16\").hide();\n}\nelse if (DvrChnNum == 8)\n{\n$(\"#split16\").hide();\n}\nelse if (DvrChnNum == 0)\n{\n$(\"#split9\").hide();\n$(\"#split16\").hide();\n}\n$(\".PauseViewbtn\").show();\n$(\".stylelogin\").attr(\"disabled\", true);\n$(\".style7\").attr(\"disabled\", true);\n$(\"#connect\").attr({title:dstrDVR_DisConnect});\n$(\"#connect\").css(\"background\",\"url(Images/Disconnect.png)\");\n$.cookie('port',DVRPort); // set cookie\nCheckAccount (DVRuser,DVRpass); // \u78ba\u6f7f\u00af\u5426?\u0089\u7db2\u8def\u8a2d\u5b9a\u4f7f?\nCheckEvntAccount(DVRuser,DVRpass); // \u78ba\u6f7f\u00af\u5426?\u0089\u3024\u00bb\u00b6\u5025\u00b0\u008b\u4f7f?\nCheckPTZAccount (DVRuser,DVRpass); // \u78ba\u6f7f\u00af\u5426?\u0089PTZ\u6b0a\u7f4d\n$(\"#DvrStatTimer\").everyTime(8000, \"DvrStat\", function() {\nGetDVRAfterConnect();\n}, 0, true);\n//alert('583');\ndocument.hictrlweb.SetVolume(65535/10*1);\n}\n}\nfunction GetDVRAfterConnect()\n{\nvar t2 = document.hictrlweb.GetDvrConnStatus();\nif (t2 == false)\n{\nif (iautoreconnect == 1)\n{\n//\t$(\".style8\").attr(\"disabled\", false);\n$(\"#ConnectStatus\").html(dstrDVR_ReConnect);\n//DVR ?\u00a2\u6024\u00ba?\n//checkConnect = 0; //?\u00b7\u5f4d\n$(\"#DvrStatTimer\").stopTime(\"DvrStat\");\nStopPlay2();\n//ConnectDVR(DVRuser,DVRpass);\n}\n}\nelse\n{\ncheckConnect = 1 ;\n$(\"#ConnectStatus\").html(\"\");\n$(\"#connect\").attr({title:dstrDVR_DisConnect});\nUpdate_Online();\n}\n}\nfunction OpenWindow(u)\n{\n//alert(winobj);\nif (winobj != null)\n{\nwinobj.focus();\n}\nelse\n{\nwinobj = window.open(u,\"\",\"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=590,height=400\");\n}\n}\nfunction OpenSetWindow(u)\n{\nif (canWebConf == \"1\")\n{\n$.cookie('account', $.base64Encode(DVRuser+\":\"+DVRpass)); // set cookie\nif (winloginobj != null)\n{\n//alert( \"winloginobj != null\" );\nwinloginobj.focus()\n}\nelse\n{\n//alert( \"winloginobj open\" );\nwinloginobj=window.open(u,\"\",\"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=800,height=600\");\n//window.location.href = \"index_web.html\"\n}\n}\nelse if (canWebConf==\"2\")\n{\nalert(dstrDVR_NetService);\n}\nelse\n{\nalert(dstrDVR_NetAuth);\n}\n}\nfunction SendRecordID(keyVal1)\n{\ndocument.hictrlweb.ClearScreen();\n//?\u008b\u3fb0layback button\n$(\"#pauseview\").hide();\n$(\"#PTZ\").hide();\nStopAllRec();\nHideControl();\n//$(\"#PBtable\").show();\n$(\".style4\").show();\n$(\"#slider\").slider( \"option\", \"value\", 0);\n$(\"#Play\").css(\"background\",\"url(Images/Play.png)\");\nSetRectTimePosition(0xFF,0);\n$(\".SilderBar\").hide();\ndocument.hictrlweb.GetEventRecordCommand(keyVal1);\n//IsPlayBack = 1;\nactive = 1 ;\nSK2(1, 0xFF, 0);\nPlayAction();\n}\nfunction ShowAlert()\n{\nalert(dstrDVR_SelRec);\n}\nf",
"datamd5" : "f24e0895b3de2f7a690b341b887f6a83",
"datammh3" : 591740657,
"device" : {
"class" : "<enterprise field>: device.class"
},
"domain" : [
"hinet.net"
],
"geolocus" : {
"asn" : "AS3462",
"continent" : "AS",
"continentname" : "Asia",
"country" : "TW",
"countryname" : "Taiwan",
"domain" : [
"hinet.net",
"twnic.net",
"twnic.net.tw"
],
"isineu" : "false",
"latitude" : "23.69781",
"location" : "23.69781,120.960515",
"longitude" : "120.960515",
"netname" : "HINET-NET",
"organization" : "CHTD, Chunghwa Telecom Co.,Ltd.",
"subnet" : "220.134.0.0/15"
},
"host" : [
"220-135-231-174"
],
"hostname" : [
"220-135-231-174.hinet-ip.hinet.net"
],
"ip" : "220.135.231.174",
"ipv6" : "false",
"latitude" : "25.0273",
"location" : "25.0273,121.3590",
"longitude" : "121.3590",
"node" : {
"country" : "<enterprise field>: node.country",
"groupid" : "<enterprise field>: node.groupid",
"id" : "<enterprise field>: node.id",
"physicalcountry" : "<enterprise field>: node.physicalcountry"
},
"organization" : "Data Communication Business Group",
"os" : "Linux Kernel",
"osvendor" : "Linux",
"port" : 8000,
"product" : "Boa",
"productvendor" : "Boa",
"productversion" : "0.94.14rc21",
"protocol" : "http",
"protocolversion" : "1.1",
"reason" : "OK",
"reverse" : [
"220-135-231-174.hinet-ip.hinet.net"
],
"seen_date" : "2024-11-07",
"source" : "datascan",
"status" : 200,
"subdomains" : [
"hinet-ip.hinet.net"
],
"subnet" : "220.132.0.0/14",
"tag" : "<enterprise field>: tag",
"tld" : [
"net"
],
"tls" : "false",
"transport" : "tcp",
"url" : "/"
}