-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
46 lines (43 loc) · 1.24 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
include('./mini.inc.php');
include('App.php');
$app->header("Config");
?>
<!-- ==== DISPLAY ==================== -->
<BR>
<DIV id="OUT" class="DEFSHOW" hidden>
</DIV>
<!-- ==== TEMPLATE =================== -->
<TEMPLATE id='TPL'>
<FIELDSET class="fset ro">
<LEGEND>Adapter information</LEGEND>
<LABEL>Name :</LABEL><INPUT readonly id="name" value="{{name}}"><BR>
<LABEL>Device name :</LABEL><INPUT readonly id="devicename" value="{{devicename}}"><BR>
<LABEL>Model ID :</LABEL><INPUT readonly id="modelid" value="{{modelid}}"><BR>
<LABEL>Local time :</LABEL><INPUT readonly id="localtime" value="{{localtime}}"><BR>
<LABEL>IP :</LABEL><INPUT readonly id="ipaddress" value="{{ipaddress}}"><BR>
<LABEL>API Version :</LABEL><INPUT readonly id="apiversion" value="{{apiversion}}"><BR>
<LABEL>Whitelist :</LABEL><UL>
{{#whitelist}}
<LI>{{name}} ‐ <TT>{{id}}</TT></LI>
{{/whitelist}}
</UL><BR>
</FIELDSET>
</TEMPLATE>
<!-- ==== SCRIPT ==================== -->
<SCRIPT>
var WSPATH='/config';
var WSMETH='GET';
show=function(ret) {
// console.log(ret);
ret.whitelist=ajs.tomustab(ret.whitelist);
ajs.TPLout(ret);
};
$(function() {
// ZIG.setDebug(true);
ZIG.call('GET','/config',show);
});
</SCRIPT>
<?
$app->tailer();
?>