Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- /*
- pan: left, right
- tilt: up, down
- zoom: in, out
- focus: near, far
- iris: open, close
- menu: open, exit
- auto_pan: run, stop
- set_preset: value(0~9999)
- go_preset: value(0~9999)
- go_tour: value(0~9999)
- pattern: value
- */
- function cgi(){
- this.ajax = new AjaxClass();
- //login id
- this.sid;
- //audio id
- this.aoid;
- //archive id
- this.aid;
- //playback id
- this.pbid="";
- //ptz id
- this.ptzId;
- //ptz speed
- this.ptzSpeed;
- //search id
- this.search_id;
- //ptz user level
- this.user_level;
- //
- this.playBackSpeed = new Array(0,1,2,4,8,16,32,64,100,300);
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- this.ptzSpeed=1;
- this.autoFlag = 1;
- this.menuFlag = 1;
- }
- cgi.prototype.login = function(login_id, fn){
- this.ajax.getAsynData("Live.cgi?cmd=register_stream&video_type=1&login_id="+login_id, fn); //Soya 20120529 Add login_id
- }
- cgi.prototype.ao_login = function(fn){
- this.ajax.getAsynData("Live.cgi?cmd=register_stream&video_type=0", fn);
- }
- cgi.prototype.setLiveStream = function(no){
- this.ajax.getData("Live.cgi?cmd=stream_ctrl&stream_id=" + this.sid + "&camera=" + no);
- }
- cgi.prototype.setLiveAudio = function(no){
- this.ajax.getAsynData("Live.cgi?cmd=stream_ctrl&stream_id=" + this.sid + "&audio=" + no, fnAudio);
- }
- function fnAudio()
- {
- }
- cgi.prototype.checkstream = function(){
- return this.ajax.getData("Live.cgi?cmd=stream_check&stream_id=" + this.sid);
- }
- ////==============================================================
- //Login
- /*
- cgi.prototype.getlogin = function(){
- this.ajax.getData("login.cgi");
- }
- */
- //==============================================================
- //PTZ
- cgi.prototype.tiltUp = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&speed=" + this.ptzSpeed + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=tilt&value=up");
- }
- cgi.prototype.tiltDown = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&speed=" + this.ptzSpeed + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=tilt&value=down");
- }
- cgi.prototype.panLeft = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&speed=" + this.ptzSpeed + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=pan&value=left");
- }
- cgi.prototype.panRight = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&speed=" + this.ptzSpeed + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=pan&value=right");
- }
- cgi.prototype.zoomOut = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=zoom&value=out");
- }
- cgi.prototype.zoomIn = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=zoom&value=in");
- }
- cgi.prototype.focusFar = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=focus&value=far");
- }
- cgi.prototype.focusNear = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=focus&value=near");
- }
- cgi.prototype.irisOpen = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=iris&value=open");
- }
- cgi.prototype.irisClose = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=iris&value=close");
- }
- cgi.prototype.ptzstop = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=stop");
- }
- cgi.prototype.ptzEnter = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=enter");
- }
- cgi.prototype.clear = function(no){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=clear&value=" + no);
- }
- cgi.prototype.presetGo = function(no){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=go_preset&value=" + no);
- }
- cgi.prototype.presetSet = function(no){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=set_preset&value=" + no);
- }
- cgi.prototype.auxOn = function(no){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=aux_on&value=" + no);
- }
- cgi.prototype.auxOff = function(no){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=aux_off&value=" + no);
- }
- cgi.prototype.autoPan = function(){
- var tmpStr = "";
- if(this.autoFlag == 0){
- tmpStr = "stop";
- this.autoFlag = 1;
- }else{
- tmpStr = "run";
- this.autoFlag = 0;
- }
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=auto_pan&value=" + tmpStr);
- }
- cgi.prototype.pattern = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=pattern&value=1");
- }
- cgi.prototype.tour = function(){
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=go_tour&value=1");
- }
- cgi.prototype.menu = function(){
- var tmpStr = "";
- if(this.menuFlag == 0){
- tmpStr = "exit";
- this.menuFlag = 1;
- }else{
- tmpStr = "open";
- this.menuFlag = 0;
- }
- this.ajax.getData("Live.cgi?stream_id=" + this.sid + "&camera=" + this.ptzId + "&cmd=ptz_ctrl&level=" + this.user_level + "&action=menu&value=" + tmpStr);
- }
- //==============================================================
- //PTZ TEST
- cgi.prototype.ptzUpTest = function(camera, port, ctrl_id, protocol, baud){
- this.ajax.getData("Ptz.cgi?camera=" + camera + "&port=" + port + "&ctrl_id=" + ctrl_id + "&protocol=" + protocol + "&baud=" + baud + "&value=up");
- }
- cgi.prototype.ptzDownTest = function(camera, port, ctrl_id, protocol, baud){
- this.ajax.getData("Ptz.cgi?camera=" + camera + "&port=" + port + "&ctrl_id=" + ctrl_id + "&protocol=" + protocol + "&baud=" + baud + "&value=down");
- }
- cgi.prototype.ptzLeftTest = function(camera, port, ctrl_id, protocol, baud){
- this.ajax.getData("Ptz.cgi?camera=" + camera + "&port=" + port + "&ctrl_id=" + ctrl_id + "&protocol=" + protocol + "&baud=" + baud + "&value=left");
- }
- cgi.prototype.ptzRightTest = function(camera, port, ctrl_id, protocol, baud){
- this.ajax.getData("Ptz.cgi?camera=" + camera + "&port=" + port + "&ctrl_id=" + ctrl_id + "&protocol=" + protocol + "&baud=" + baud + "&value=right");
- }
- //==============================================================
- //Alarm Outputs
- cgi.prototype.AlarmOutputs = function(no){
- this.ajax.getData("Alarm.cgi?cmd=alarm_outputs&no=" + no); //0~3
- }
- cgi.prototype.Acknowledge = function(sUsername){ // close alarm beebee
- this.ajax.getData("Alarm.cgi?cmd=ack&username="+sUsername);
- }
- //==============================================================
- //playback
- cgi.prototype.PbLogin = function(login_id){
- this.pbid = this.ajax.getData("Playback.cgi?cmd=register_stream&login_id="+login_id); //Soya 20120529 Add login_id
- }
- cgi.prototype.setPbStream = function(no){
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&camera=" + no);
- }
- cgi.prototype.setPbAudio = function(no){
- if(this.pbid=="")
- return;
- this.ajax.getAsynData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&audio=" + no, fnAudio);
- }
- cgi.prototype.PBcancel = function(){
- if(this.pbid=="")
- return;
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=cancel");
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- this.pbid="";
- }
- cgi.prototype.PBpause = function(){
- if(this.pbid=="")
- return;
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=pause");
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- }
- cgi.prototype.PBbackward = function(){
- if(this.pbid=="")
- return;
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=backward");
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- }
- cgi.prototype.PBforward = function(){
- if(this.pbid=="")
- return;
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=forward");
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- }
- cgi.prototype.PBcheckDST = function(sTime){
- return this.ajax.getData("Playback.cgi?cmd=check_dst&time="+sTime);
- }
- cgi.prototype.PBcheckHDD = function(){
- return this.ajax.getData("Playback.cgi?cmd=check_hdd");
- }
- /*cgi.prototype.PBfastBackward = function(){
- //args[0] speed
- var args = arguments;
- if(args[0] != null){
- this.FBSpeedFlag = args[0];
- }else{
- if(this.FBSpeedFlag < 9){
- this.FBSpeedFlag++;
- }
- }
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=fast-backward&speed=" + this.playBackSpeed[this.FBSpeedFlag]);
- this.FFSpeedFlag = 1;
- }
- cgi.prototype.PBfastForward = function(){
- //args[0] speed
- var args = arguments;
- if(args[0] != null){
- this.FFSpeedFlag = args[0];
- }else{
- if(this.FFSpeedFlag < 9){
- this.FFSpeedFlag++;
- }
- }
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=fast-forward&speed=" + this.playBackSpeed[this.FFSpeedFlag]);
- this.FBSpeedFlag = 1;
- }*/
- cgi.prototype.PBSeekTo = function(TimeStamp){
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=webseek&seek_time=" + TimeStamp);
- }
- cgi.prototype.PBfastBackward = function(speed){
- //args[0] speed
- /*var args = arguments;
- if(args[0] != null){
- this.FBSpeedFlag = args[0];
- }else{
- if(this.FBSpeedFlag < 9){
- this.FBSpeedFlag++;
- }
- }*/
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=fast-backward&speed=" + this.playBackSpeed[speed]);
- this.FFSpeedFlag = 1;
- }
- cgi.prototype.PBfastForward = function(speed){
- //args[0] speed
- /*var args = arguments;
- if(args[0] != null){
- this.FFSpeedFlag = args[0];
- }else{
- if(this.FFSpeedFlag < 9){
- this.FFSpeedFlag++;
- }
- }*/
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=fast-forward&speed=" + this.playBackSpeed[speed]);
- this.FBSpeedFlag = 1;
- }
- cgi.prototype.PBstepBackward = function(){
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=step-backward");
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- }
- cgi.prototype.PBstepForward = function(){
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&action=step-forward");
- this.FFSpeedFlag = 1;
- this.FBSpeedFlag = 1;
- }
- cgi.prototype.setPbMask = function(){
- var args=arguments;
- var val;
- var val2;
- var mask=0;
- if(args.length==1)
- mask=args[0];
- else{
- val=args[0];
- val2=args[1];
- var max=val*val;
- for(var i=0;i<val*val;i++){
- mask+= 1<<(val2+i);
- }
- }
- this.ajax.getData("Playback.cgi?cmd=stream_ctrl&stream_id=" + this.pbid + "&change_map_only=" + mask);
- }
- //==============================================================
- //archive
- cgi.prototype.getAid = function(login_id){
- this.aid = this.ajax.getData("Archive.cgi?cmd=register_stream&login_id="+login_id); //Soya 20120529 Add login_id
- }
- //Soya 20100604 Add DST
- cgi.prototype.requestArchive = function(cam, start_time, end_time, dst, level, username){
- return this.ajax.getData("Archive.cgi?cmd=query&camera=" + cam + "&start_time=" + start_time + "&end_time=" + end_time + "&dst="+ dst + "&level=" + level + "&username=" + username);
- }
- cgi.prototype.cancelArchive = function(username){
- return this.ajax.getData("Archive.cgi?cmd=archive_ctrl&action=cancel&stream_id=" + this.aid + "&username=" + username);
- }
- cgi.prototype.ArchivecheckDST = function(sTime,eTime,sCamMap, username){
- return this.ajax.getData("Archive.cgi?cmd=check_dst&start_time="+sTime+"&end_time="+eTime+"&camera="+sCamMap + "&username=" + username);
- }
- //==============================================================
- //disk
- cgi.prototype.diskFormat = function(){
- return this.ajax.getData("Disk.cgi?cmd=format");
- }
- cgi.prototype.diskDelete = function(){
- return this.ajax.getData("Disk.cgi?cmd=delete");
- }
- cgi.prototype.diskUnlock = function(){
- return this.ajax.getData("Disk.cgi?cmd=unlock");
- }
- //==============================================================
- //log
- cgi.prototype.getLogTotal = function(type){
- //Configurations 1
- //Event 2
- //Record 4
- //Operation 8
- //User 16
- return this.ajax.getData("Log.cgi?cmd=count&type=" + type);
- }
- /*cgi.prototype.getLogStatus = function(){
- return this.ajax.getData("Log.cgi?cmd=log_status");
- }*/
- cgi.prototype.getLogItem = function(idx,no,type){
- //Configurations 1
- //Event 2
- //Record 4
- //Operation 8
- //User 16
- return this.ajax.getData("Log.cgi?cmd=log_search&index=" + idx + "&total=" + no + "&type=" + type);
- }
- cgi.prototype.clearLog = function(){
- return this.ajax.getData("Log.cgi?cmd=clear_log");
- }
- cgi.prototype.logDelete = function(cam,st,et,bid){
- return this.ajax.getData("Delete.cgi?camera=" + cam + "&start_time=" + st + "&end_time=" + et + "&block_id=" + bid);
- }
- cgi.prototype.logUnlock = function(cam,st,et,bid){
- return this.ajax.getData("Unlock.cgi?camera=" + cam + "&start_time=" + st + "&end_time=" + et + "&block_id=" + bid);
- }
- cgi.prototype.logLock = function(cam,st,et,bid){
- return this.ajax.getData("Lock.cgi?camera=" + cam + "&start_time=" + st + "&end_time=" + et + "&block_id=" + bid);
- }
- //4Mosa
- //==============================================================
- //Search Log
- cgi.prototype.getLogData = function(type){
- // system: 0x01
- // record: 0x02
- // login: 0x04
- // configure: 0x08
- // operation: 0x10
- // all: 0x1f
- // service: 0x3f
- return this.ajax.getData("Log.cgi?cmd=count&type=" + type);
- }
- cgi.prototype.getLogStatus = function(){
- return this.ajax.getData("Log.cgi?cmd=log_status");
- }
- cgi.prototype.getLogPageData = function(type, page){
- // system: 0x01
- // record: 0x02
- // login: 0x04
- // configure: 0x08
- // operation: 0x10
- // all: 0x1f
- // service: 0x3f
- return this.ajax.getData("Log.cgi?cmd=count&type=" + type + "&page=" + page);
- }
- //==============================================================
- //Export Log
- cgi.prototype.ExportLogStart = function(){ //**No Used
- return this.ajax.getData("Log.cgi?cmd=export_log_start");
- }
- cgi.prototype.ExportLogStatus = function(){ //**No Used
- return this.ajax.getData("Log.cgi?cmd=export_log_status");
- }
- //==============================================================
- //firmware
- cgi.prototype.getFwUploadStatus = function(){
- return this.ajax.getData("FW_Upgrade.cgi?cmd=upload_fw_status");
- }
- cgi.prototype.getFwUpgradeVar = function(){
- return this.ajax.getData("FW_Upgrade.cgi?cmd=fw_upgrade_read_ver");
- }
- cgi.prototype.getFwUpgradeStart = function(){
- return this.ajax.getData("FW_Upgrade.cgi?cmd=fw_upgrade_start");
- }
- cgi.prototype.getFwUpgradeStatus = function(){
- return this.ajax.getData("FW_Upgrade.cgi?cmd=fw_upgrade_status");
- }
- //==============================================================
- //config
- /*cgi.prototype.clearDefaultStatus = function(){
- return this.ajax.getData("Config.cgi?cmd=clear_default_status");
- }*/
- cgi.prototype.loadDefault = function(){
- return this.ajax.getData("Config.cgi?cmd=load_default");
- }
- cgi.prototype.getLoadDefaultStatus = function(){
- return this.ajax.getData("Config.cgi?cmd=load_default_status");
- }
- /*cgi.prototype.loadDefaultFinish = function(){
- return this.ajax.getData("Config.cgi?cmd=load_default_finish");
- }*/
- cgi.prototype.getLoadConfigStatus = function(){
- return this.ajax.getData("Config.cgi?cmd=load_config_status");
- }
- cgi.prototype.setSystemDateTime = function(datetime){
- return this.ajax.getData("Config.cgi?cmd=set_date_time&datetime=" + datetime);
- }
- cgi.prototype.rebootDVR = function(){
- return this.ajax.getData("Config.cgi?cmd=reboot");
- }
- //==============================================================
- //user
- cgi.prototype.getUser = function(){
- return this.ajax.getData("User.cgi?cmd=get_user");
- }
- cgi.prototype.getlogin = function(sUsername,sPassword){
- return this.ajax.getData("User.cgi?cmd=get_login&username="+sUsername+"&password="+sPassword);
- }
- //Soya 20110217 add "cmd=save_user"
- cgi.prototype.setUser = function(name,password,level){
- return this.ajax.getData("User.cgi?cmd=save_user&name="+name+"&password="+password+"&level="+level);
- }
- //Soya 20110217 add Not Used
- /*cgi.prototype.Userlogoff = function(login_id){
- return this.ajax.getData("User.cgi?cmd=user_logout&login_id="+login_id);
- }*/
- cgi.prototype.Userlogoff = function(login_id){
- return this.ajax.getData("quick_logout.cgi?cmd=user_logout&login_id="+login_id);
- }
- //==============================================================
- //search
- //Soya 20100604 Add username
- //Soya 20120529 Add login_id
- cgi.prototype.getSearchId = function(start_time,end_time,cam,conditions,sensitivity,level,username,login_id,grid){
- var tmpUrl = "Search.cgi?cmd=search&start_time=" + start_time + "&end_time=" + end_time + "&camera=" + cam + "&conditions=" + conditions + "&sensitivity=" + sensitivity + "&level=" + level + "&username=" + username + "&login_id=" + login_id;
- if(grid != null){
- tmpUrl += "&grid=" + grid;
- }
- return this.ajax.getData(tmpUrl);
- }
- cgi.prototype.getSearchData = function(){
- return this.ajax.getData("Search.cgi?cmd=search&search_id=" + this.search_id);
- }
- cgi.prototype.cancelSearch = function(){
- return this.ajax.getData("Search.cgi?cmd=search&search_id=" + this.search_id + "&action=cancel");
- }
- //==============================================================
- //Diskmap
- //Soya 20100604 Add username
- cgi.prototype.getDiskmap = function(start_time, type, offset, level, username){
- return this.ajax.getData("Search.cgi?cmd=diskmap&start_time=" + start_time + "&type=" + type + "&offset=" + offset +"&level=" + level + "&username=" + username);
- }
- cgi.prototype.getDiskmapStatus = function(){
- return this.ajax.getData("Search.cgi?cmd=diskmap_status");
- }
- //���o���w��
- cgi.prototype.getSubDiskmapStatus = function(ch1,ch2){
- return this.ajax.getData("Search.cgi?cmd=diskmap_status&start_channel="+ch1+"&end_channel="+ch2);
- }
- //==============================================================
- //For SDK TimeLine
- cgi.prototype.getTimeLine = function(ch, start_time, end_time, Granularity, username, login_id){
- return this.ajax.getData("Search.cgi?cmd=timeline&start_time="+start_time+"&end_time="+end_time+"&sdk_cmd=0&channel="+ch+"&granularity="+Granularity+"&username="+username+"&login_id="+login_id);
- }
- cgi.prototype.getTimeLineStatus = function(ch, login_id){
- return this.ajax.getData("Search.cgi?cmd=timeline_status&sdk_cmd=0&login_id=" + login_id + "&channel="+ch);
- }
- /*cgi.prototype.clearEventSearchStatus = function(){
- return this.ajax.getData("Search.cgi?cmd=clear_event_status");
- }
- cgi.prototype.getEventSearch = function(start_time,end_time,cam_mask,type){
- this.ajax.getData("Search.cgi?event_start_time=" + start_time + "&event_end_time=" + end_time + "&event_camera=" + cam_mask + "&event_type=" + type);
- }
- cgi.prototype.getEventSearchStatus = function(){
- return this.ajax.getData("Search.cgi?cmd=get_event_status");
- }*/
- //Get Datetime //login_id YYYYMMDDhhmmssms
- cgi.prototype.getDateTimeInfo = function(login_id,user_level,login_name,check_datetime){
- //var objfun = function(objxml){alert(objxml)}
- var rt=this.ajax.getAsynData("cal_info.cgi?login_id="+login_id+"&user_level="+user_level+"&login_name="+login_name+"&check_datetime="+check_datetime+"&sdk=0",returnSystemInfo);
- //var objfun = function(objxml){alert(objxml.xml)}
- //get_xml_value(objfun,"GET","",true,"http://192.168.98.234/cal.cgi?login_id="+login_id+"&user_level="+user_level+"&login_name="+login_name+"&check_datetime="+check_datetime);
- }
- //Information
- cgi.prototype.getSystemInfo = function(){
- return this.ajax.getData("Config.cgi?cmd=system_info");
- }
- //Information mass update test
- cgi.prototype.getSystemInfoEx = function(url){
- return this.ajax.getData("http://"+url+"/Config.cgi?cmd=system_info");
- }
- cgi.prototype.getRecordTime = function(){
- return this.ajax.getData("Config.cgi?cmd=record_time");
- }
- //NTP Test
- cgi.prototype.NtpStart = function(timeserver, privateserver){
- return this.ajax.getData("ntp.cgi?cmd=ntp_start&time_server="+timeserver+"&private_server="+privateserver);
- }
- cgi.prototype.NtpStatus = function(){
- return this.ajax.getData("ntp.cgi?cmd=ntp_status");
- }
- //Soya test
- cgi.prototype.Header_Test = function(){
- this.ajax.HeaderTest();
- }
- // factory
- cgi.prototype.FactoryStatus = function(){
- return this.ajax.getData("Special.cgi?");
- }
- // factory
- cgi.prototype.Debug_cmd = function(cmd, value){
- return this.ajax.getData("Debug.cgi?cmd="+cmd+"&value="+value);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement