This repository has been archived by the owner on Dec 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathindex.php
219 lines (173 loc) · 6.45 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?php
session_start();
// Enable on Deploy to fix installation errors://
ini_set('display_errors', 'Off');
error_reporting(0);
//
if ( !isset($_SESSION['UID']) ) {
header("Location: entrance.php");
}
include_once('include/config.php');
/*
// session
$res = mysql_query("SELECT * FROM etor_users WHERE id = {$_SESSION['UID']} AND
HOUR(TIMEDIFF(now(), ifnull(last_access,now())) < 1" );
$u = mysql_fetch_assoc($res);
if ( !$u['id'] ){
session_destroy();
unset($_SESSION['UID']);
header("Location:entrance.php");
}
*/
?><html>
<HEAD>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<SCRIPT>var isomorphicDir="sc/";</SCRIPT>
<SCRIPT SRC='sc/system/modules/ISC_Core.js'></SCRIPT>
<SCRIPT SRC='sc/system/modules/ISC_Foundation.js'></SCRIPT>
<SCRIPT SRC='sc/system/modules/ISC_Containers.js'></SCRIPT>
<SCRIPT SRC='sc/system/modules/ISC_Grids.js'></SCRIPT>
<SCRIPT SRC='sc/system/modules/ISC_Forms.js'></SCRIPT>
<SCRIPT SRC='sc/system/modules/ISC_DataBinding.js'></SCRIPT>
<SCRIPT SRC='sc/skins/<?php echo $config->getSkin(); ?>/load_skin.js'></SCRIPT>
<link type="text/css" rel="stylesheet" href="include/styles.css">
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<SCRIPT SRC='sc/system/modules/ISC_Forms.js'></SCRIPT>
</HEAD>
<BODY>
<iframe name="pbxUploadCallBackFrame" id="pbxUploadCallBackFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
<script type='text/javascript'>
// Just a test...
function MyEvent(options) {
var self = this;
self.options = options || {};
self.state = 'INIT';
console.log('INIT');
self.openit();
};
MyEvent.prototype.openit = function() {
var self = this;
console.log('Opening...');
alert('Gap!');
};
function CallMyEvent(){
var eventCaller = new MyEvent();
eventCaller.openit();
};
</script>
<!-- <span onclick="CallMyEvent();">startUp</span> -->
<script src="datasources.js"></script>
<script src="edit_forms.js?<?php echo date("U"); ?>"></script>
<script src="sections.js"></script>
<script type="text/javascript" >
isc.HTMLFlow.create({
ID: "LogoIMG",
autoDraw:false,
align:"center",
contents: "<img style='padding:10px;opacity:0.6' src='images/get-logo.php' > "
});
// isc.HTMLFlow.create({
// ID:"aMenu",
// autoDraw:false,
// defaultLayoutAlign: "center",
// height:30,
// width: "80%",
// align:"left",
// contents: ""
// });
isc.AdaptiveMenu.create({
ID: "aMenu",
autoDraw:false,
defaultLayoutAlign: "center",
height:30,
items: [
<?php if ( $config->isAdmin() ){ ?> { title: "Create new PBX", click: " edit_object('Tenants'); frmTenants.clear();wndTenants.show();" },<?php } ?>
{ id:'reloadBTN', title: "Reload PBX", click: "run('reload_asterisk');" }
]
});
function colorIt(){
isc.say('color');
reloadBTN.title = 'New';
}
isc.ToolStrip.create({
ID: "MyToolStrip",
width:"100%",
autoDraw:false,
height:70,
members: [
LogoIMG,
"separator",
aMenu,
<?php if ( $config->auto_reload != 1 ){ ?>
isc.Button.create({ID:'reloadConf', width:200,click:"run('reload_conf');reloadConf.animateHide('fade');" , title:'<span class=blink >Commit </span>', width:150, height:20, icon:"[SKIN]actions/refresh.png", visibility:"hidden" }),
<?php } ?>
<?php
if ( $config->isAdmin() )
echo 'frmSwitchTenant,' ;
else
echo "isc.Label.create({ padding:'17px 0',height:'100%', contents:'<h2>{$_SESSION['tenantname']} </h2>' }), ";
?>
"separator",
isc.VLayout.create({ align: "center", members: [
isc.Button.create({ title:'<?php session_start(); echo $_SESSION["USERNAME"]; ?> ', width:100, icon:"logout.png",
click: function () { $.post('jaxer.php',{ 'logout':1 },
function (data) { window.location = "/";},
'json');
}
}),
<?php if ( $config->isTenantUser() ){ ?> isc.Label.create({ align:'center',height:20, width:200,contents:'<span style="color:blue;cursor:pointer">Change Password</span>',click: "ShowChangeUserPassWnd(111);" } ) <?php } ?>
]
})
]
});
isc.TreeGrid.create({
ID: "mTree",
dataSource: "mTreeDS",
autoDraw: false,
autoFetchData: true,
showHeader:false,
loadDataOnDemand: false,
width: 205,
height: "100%",
styleName:'myTreeBorder',
iconSize: 16,
nodeIcon: "[SKIN]/icons/node.gif",
// folderIcon: "[SKIN]/folder.png",
customIconProperty: 'nodeIcon',
animateFolders:true,
nodeClick: "if ( node.action != '' ){ TriggerEvent('show_'+node.action); Sections.expandSection('section_' + node.action) };"
});
// The Main Container constructor //
isc.VLayout.create({
width: "99%",
height: "99%",
border: 0,
overFlow: 'HIDDEN',
members: [
MyToolStrip,
isc.HLayout.create({
ID: "WorkGround",
width: "100%",
backgroundColor:'white',
members: [
mTree,
Sections
]
})
]
});
<?php
if ( $_SESSION['default_section'] ){
echo " TriggerEvent('show_{$_SESSION['default_section']}');\n";
echo " Sections.expandSection('section_{$_SESSION['default_section']}');\n";
}
?>
</script>
<style type='text/css'>
.cell, .cellSelected, .treeCell, .cellOver, .cellSelectedOver, .treeCellOver,
.treeCellSelected{
overflow:visible !important;
}
</sctyle>
</BODY>
</html>