10 changed files with 186 additions and 140 deletions
-
1.gitignore
-
2lib/1.json
-
42lib/controller/addPhoneBookRecord.php
-
42lib/controller/delPhoneBookRecord.php
-
8lib/controller/doModuleOperation.php
-
50lib/controller/doPhonebookOperation.php
-
14lib/controller/getModuleSettings.php
-
82lib/controller/report/node_12.js
-
83lib/javascript/jsapi_dynamic/mojo_settings.js
-
2lib/php/auth/web.php
@ -1,3 +1,4 @@ |
|||
error.log |
|||
lib/controller/data/* |
|||
lib/tmp/* |
|||
|
|||
2
lib/1.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,42 +0,0 @@ |
|||
<?php |
|||
require_once('../ajax_asm.php'); |
|||
|
|||
if( $CUser->Data['id'] > 1 ){ |
|||
$Data['success'] = false; |
|||
if( $CUser->Data['access'] > 5 ){ |
|||
$NL = trim( $_POST['PNAM'] ); |
|||
$NN = str_ireplace('+','', |
|||
str_ireplace('-','', |
|||
str_ireplace( ' ', '', $_POST['PNUM'] |
|||
) |
|||
) |
|||
); |
|||
$CO = intval( $_POST['PCAL'] ); |
|||
if( $CO == 0 ){ |
|||
$CMS = $DATABASE->escape( $_POST['PMSG'] ); |
|||
}; |
|||
if( strlen( $NN ) > 7 ) { |
|||
if( substr( $NN, 1 ) == '0' ){ |
|||
} else { |
|||
}; |
|||
if( strlen( $NL ) == 0 ){ |
|||
$NL = 'New Number'; |
|||
}; |
|||
if( $CO ){ |
|||
$QS = "INSERT INTO `module_modem_phonebook`(`number`,`mode`,`label`) VALUES('{$NN}',1,'{$NL}')"; |
|||
} else { |
|||
$QS = "INSERT INTO `module_modem_phonebook`(`number`,`mode`,`label`,`custom_msg`) VALUES('{$NN}', 0,'{$NL}','{$CMS}')"; |
|||
}; |
|||
$DATABASE->Query( $QS ); |
|||
$Data['success'] = true; |
|||
} else { |
|||
$Data['msg'] = 'Number is Invalid!'; |
|||
}; |
|||
} else { |
|||
$Data['msg'] = 'Access Denied!'; |
|||
}; |
|||
echo json_encode( $Data ); |
|||
exit(); |
|||
}; |
|||
header( 'location: /'); |
|||
?>
|
|||
@ -1,42 +0,0 @@ |
|||
<?php |
|||
require_once('../ajax_asm.php'); |
|||
|
|||
if( $CUser->Data['id'] > 1 ){ |
|||
$Data['success'] = false; |
|||
if( $CUser->Data['access'] > 5 ){ |
|||
$NL = trim( $_POST['PNAM'] ); |
|||
$NN = str_ireplace('+','', |
|||
str_ireplace('-','', |
|||
str_ireplace( ' ', '', $_POST['PNUM'] |
|||
) |
|||
) |
|||
); |
|||
$CO = intval( $_POST['PCAL'] ); |
|||
if( $CO == 0 ){ |
|||
$CMS = $DATABASE->escape( $_POST['PMSG'] ); |
|||
}; |
|||
if( strlen( $NN ) > 7 ) { |
|||
if( substr( $NN, 1 ) == '0' ){ |
|||
} else { |
|||
}; |
|||
if( strlen( $NL ) == 0 ){ |
|||
$NL = 'New Number'; |
|||
}; |
|||
if( $CO ){ |
|||
$QS = "INSERT INTO `module_modem_phonebook`(`number`,`mode`,`label`) VALUES('{$NN}',1,'{$NL}')"; |
|||
} else { |
|||
$QS = "INSERT INTO `module_modem_phonebook`(`number`,`mode`,`label`,`custom_msg`) VALUES('{$NN}', 0,'{$NL}','{$CMS}')"; |
|||
}; |
|||
$DATABASE->Query( $QS ); |
|||
$Data['success'] = true; |
|||
} else { |
|||
$Data['msg'] = 'Number is Invalid!'; |
|||
}; |
|||
} else { |
|||
$Data['msg'] = 'Access Denied!'; |
|||
}; |
|||
echo json_encode( $Data ); |
|||
exit(); |
|||
}; |
|||
header( 'location: /'); |
|||
?>
|
|||
@ -0,0 +1,50 @@ |
|||
<?php |
|||
require_once('../ajax_asm.php'); |
|||
|
|||
if( $CUser->Data['id'] > 1 ){ |
|||
$Data['success'] = false; |
|||
if( $CUser->Data['access'] > 5 ){ |
|||
$OPID = intval( $_POST['OPID'] ); |
|||
switch( $OPID ){ |
|||
case 1:{ |
|||
$NL = trim( $_POST['PNAM'] ); |
|||
$NN = str_ireplace('+','', |
|||
str_ireplace('-','', |
|||
str_ireplace( ' ', '', $_POST['PNUM'] |
|||
) |
|||
) |
|||
); |
|||
$CO = intval( $_POST['PCAL'] ); |
|||
$CMS = $DATABASE->escape( $_POST['PMSG'] ); |
|||
if( strlen( $NN ) > 7 ) { |
|||
if( substr( $NN, 1 ) == '0' ){ |
|||
} else { |
|||
}; |
|||
if( strlen( $NL ) == 0 ){ |
|||
$NL = 'New Number'; |
|||
}; |
|||
$QS = "INSERT INTO `module_modem_phonebook`(`number`,`mode`,`label`) VALUES('{$NN}',{$CO},'{$NL}')"; |
|||
$DATABASE->Query( $QS ); |
|||
$Data['success'] = true; |
|||
} else { |
|||
$Data['msg'] = 'Number is Invalid!'; |
|||
}; |
|||
break; |
|||
}; |
|||
case 2:{ |
|||
$PBID = intval( $_POST['PBID'] ); |
|||
if( $PBID ){ |
|||
$QS = "DELETE FROM`module_modem_phonebook` WHERE `id`={$PBID}"; |
|||
$DATABASE->Query( $QS ); |
|||
$Data['success'] = true; |
|||
} else $Data['msg'] = 'Access Denied!'; |
|||
}; |
|||
} |
|||
} else { |
|||
$Data['msg'] = 'Access Denied!'; |
|||
}; |
|||
echo json_encode( $Data ); |
|||
exit(); |
|||
}; |
|||
header( 'location: /'); |
|||
?>
|
|||
@ -1,18 +1,80 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
xtype: 'portlet', |
|||
width: 258, |
|||
height: %%%HEIGHT%%%+40, |
|||
layout:'vbox', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
editAnalogStream( %%%STREAMID%%%, 1 ); |
|||
} |
|||
}], |
|||
id:'gear', |
|||
handler: function(){ |
|||
} |
|||
}], |
|||
frame: true, |
|||
draggable: false, |
|||
collapsible: false, |
|||
bodyStyle: 'padding: 0px;', |
|||
title: '%%%NODENAME%%%', |
|||
sukaMineWidth: -1, |
|||
items:[{ |
|||
html: '<img data-enlargeable000 ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" id="img-%%%NODEID%%%" src="%%%SELURL%%%" width="%%%WIDTH%%%" height="%%%HEIGHT%%%"/>', |
|||
}] |
|||
id: 'db_node_%%%NODEID%%%_pic', |
|||
border: true, |
|||
width: '100%', |
|||
html: '<div id="video-%%%STREAMID%%%" style="display: flex;align-items: center;" ><img id="video-img-%%%STREAMID%%%" ondblclick="fullScreen(\'video-%%%STREAMID%%%\');" style="cursor: zoom-in" src="/style/assets/no-signal.png" width="100%" /><div id="video-ctl-%%%STREAMID%%%" style="float: left; position: absolute; left: 30px; bottom: 30px; z-index: 1000;"></div></div>' |
|||
}], |
|||
listeners:{ |
|||
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ |
|||
if( rawWidth!= undefined ){ |
|||
if( p.sukaMineWidth != adjWidth ){ |
|||
p.sukaMineWidth = adjWidth; |
|||
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX + 32 ); |
|||
var z = document.getElementById( 'video-%%%STREAMID%%%' ); |
|||
z.height = XX; |
|||
}; |
|||
}; |
|||
}, |
|||
afterrender: function( p ){ |
|||
var xx = p.getWidth() * ( %%%HEIGHT%%% / %%%WIDTH%%% ); |
|||
p.setHeight( xx + 32 ); |
|||
videoElements[videoElements.length] = %%%STREAMID%%%; |
|||
var xx = new Ext.Panel({ |
|||
id: 'video-ctl-panel-%%%STREAMID%%%', |
|||
renderTo: 'video-ctl-%%%STREAMID%%%', |
|||
border: false, |
|||
hidden: true, |
|||
frame: false, |
|||
width: 400, |
|||
height: 42, |
|||
layout: 'hbox', |
|||
items:[{ |
|||
xtype: 'button', |
|||
width: 32, |
|||
iconCls: 'download', |
|||
scale: 'medium', |
|||
id: 'video-btn-download-%%%STREAMID%%%', |
|||
handler: function(){ |
|||
downloadCurrentVideo( %%%STREAMID%%% ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
width: 20 |
|||
},{ |
|||
xtype: 'slider', |
|||
width: 250, |
|||
id: 'video-slider-%%%STREAMID%%%', |
|||
value: 0, |
|||
minValue: 0, |
|||
maxValue: 100, |
|||
listeners:{ |
|||
change: function( t, b, o ){ |
|||
setVideoSource( %%%STREAMID%%%, b ); |
|||
} |
|||
} |
|||
}] |
|||
}); |
|||
}, |
|||
beforedestroy: function(){ |
|||
var oldPlayer = document.getElementById( 'video-%%%STREAMID%%%' ); |
|||
/* |
|||
videojs( oldPlayer ).dispose(); |
|||
*/ |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue