-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.isymphony.php
More file actions
593 lines (505 loc) · 24.9 KB
/
page.isymphony.php
File metadata and controls
593 lines (505 loc) · 24.9 KB
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
<?php
/*
*Name : page.isymphony.php
*Author : Michael Yara
*Created : July 2, 2008
*Last Updated : October 28, 2013
*History : 1.0
*Purpose : Information page for iSymphony module
*Copyright : 2008 HEHE Enterprises, LLC
*/
//Build include path for page info
$inc_path = __FILE__;
$pos = strrpos($inc_path, "/");
$inc_path = substr($inc_path, 0, $pos) . "/";
//Include page info
require_once($inc_path . "module_page_info_include.php");
//Check to see if the server is running
$serverRunning = false;
$serverRunningDisplay = "";
//Check for a location settings update action
if(isset($_REQUEST["isymphony_update_location_settings"])) {
//Update data base
isymphony_location_update( trim($_REQUEST["isymphony_admin_user_name"]),
trim($_REQUEST["isymphony_admin_password"]),
trim($_REQUEST["isymphony_originate_timeout"]),
isset($_REQUEST["isymphony_auto_reload"]) ? "1" : "0",
isset($_REQUEST["isymphony_page_status_enabled"]) ? "1" : "0",
trim($_REQUEST["isymphony_jabber_host"]),
trim($_REQUEST["isymphony_jabber_domain"]),
trim($_REQUEST["isymphony_jabber_resource"]),
trim($_REQUEST["isymphony_jabber_port"]),
isset($_REQUEST["isymphony_log_jabber_messages"]) ? "1" : "0",
trim($_REQUEST["isymphony_admin_host"]),
trim($_REQUEST["isymphony_admin_location"]),
trim($_REQUEST["isymphony_admin_tenant"]),
trim($_REQUEST["isymphony_client_port"]),
trim($_REQUEST["isymphony_asterisk_host"]));
//Flag FreePBX for reload
needreload();
}
//Connect to server
if(($locationInformation = isymphony_location_get()) !== null) {
$isymphony = new iSymphony($locationInformation["isymphony_host"]);
if(($isymphony->iSymphonyConnect()) !== false) {
$serverRunning = true;
}
}
$serverRunningDisplay = $serverRunning ? "<span style=\"color: #00FF00\">Up</span>" : "<span style=\"color: #FF0000\">Down</span>";
//Check for a reload action
if($serverRunning && isset($_REQUEST["isymphony_reload"])) {
//Reload server and block for 5 secs so server can repopulate
$isymphony->reloadISymphonyServer();
sleep(5);
}
//Grab location information
$locationInformation = isymphony_location_get();
//Check for a license activation action
$licenseActivationError = "";
if($serverRunning && isset($_REQUEST["isymphony_activate_license"]) && isset($_REQUEST["isymphony_license_key"]) && (trim($_REQUEST["isymphony_license_key"]) != "")) {
if($isymphony->activateISymphonyLicense(trim($locationInformation["isymphony_location"]), trim($locationInformation["isymphony_tenant"]), trim($_REQUEST["isymphony_license_key"])) === false) {
$licenseActivationError = iSymphony::$ISERROR;
}
//Block for 5 secs to let location reload
sleep(5);
//Close iSymphony connection
$isymphony->iSymphonyDisconnect();
}
//Debug url additions
$debugUrlAdditions = "";
//Check if a request to show the database was made
$databaseDisplay = "";
if(isset($_REQUEST["showmoduledb"])) {
$debugUrlAdditions .= "&showmoduledb=yes";
//Build location information table
$databaseDisplay .= " <table>
<tr>
<tr><td colspan = \"10\"><h5>Location</h5></td></tr>
</tr>
<tr>
<td>Admin User Name   </td>
<td>Admin Password   </td>
<td>Originate Timeout   </td>
<td>Auto Reload   </td>
<td>Page Status Enabled   </td>
<td>Jabber Host   </td>
<td>Jabber Domain   </td>
<td>Jabber Resource   </td>
<td>Jabber Port   </td>
<td>Log Jabber Messages   </td>
</tr>
<tr>
<td colspan = \"10\"><hr></td>
</tr>
<tr>
<td>{$locationInformation['admin_user_name']}</td>
<td>{$locationInformation['admin_password']}</td>
<td>{$locationInformation['originate_timeout']}</td>
<td>{$locationInformation['auto_reload']}</td>
<td>{$locationInformation['page_status_enabled']}</td>
<td>{$locationInformation['jabber_host']}</td>
<td>{$locationInformation['jabber_domain']}</td>
<td>{$locationInformation['jabber_resource']}</td>
<td>{$locationInformation['jabber_port']}</td>
<td>{$locationInformation['log_jabber_messages']}</td>
</tr>
</table>";
//Build extensions table
$databaseDisplay .= " <table>
<tr>
<tr><td colspan = \"15\"><h5>Extensions</h5></td></tr>
</tr>
<tr>
<td>User ID   </td>
<td>Add Extension   </td>
<td>Add Profile   </td>
<td>Password   </td>
<td>Display Name   </td>
<td>Peer   </td>
<td>Email   </td>
<td>Cell Phone   </td>
<td>Auto Answer   </td>
<td>Jabber Host   </td>
<td>Jabber Domain   </td>
<td>Jabber Resource   </td>
<td>Jabber Port   </td>
<td>Jabber User Name   </td>
<td>Jabber Password   </td>
<tr>
</tr>
<td colspan = \"15\"><hr></td>
</tr>";
foreach(isymphony_user_list() as $user) {
$databaseDisplay .= " <tr>
<td>{$user['user_id']}</td>
<td>{$user['add_extension']}</td>
<td>{$user['add_profile']}</td>
<td>{$user['password']}</td>
<td>{$user['display_name']}</td>
<td>{$user['peer']}</td>
<td>{$user['email']}</td>
<td>{$user['cell_phone']}</td>
<td>{$user['auto_answer']}</td>
<td>{$user['jabber_host']}</td>
<td>{$user['jabber_domain']}</td>
<td>{$user['jabber_resource']}</td>
<td>{$user['jabber_port']}</td>
<td>{$user['jabber_user_name']}</td>
<td>{$user['jabber_password']}</td>
</tr>";
}
$databaseDisplay .= "</table>";
//Build queues table
$databaseDisplay .= " <table>
<tr>
<tr><td colspan = \"3\"><h5>Queues</h5></td></tr>
</tr>
<tr>
<td>Queue ID   </td>
<td>Add Queue   </td>
<td>Display Name   </td>
<tr>
</tr>
<td colspan = \"3\"><hr></td>
</tr>";
foreach(isymphony_queue_list() as $queue) {
$databaseDisplay .= " <tr>
<td>{$queue['queue_id']}</td>
<td>{$queue['add_queue']}</td>
<td>{$queue['display_name']}</td>
</tr>";
}
$databaseDisplay .= "</table>";
//Build conference room table
$databaseDisplay .= " <table>
<tr>
<tr><td colspan = \"3\"><h5>Conference Rooms</h5></td></tr>
</tr>
<tr>
<td>Conference Room ID   </td>
<td>Add Conference Room   </td>
<td>Display Name   </td>
<tr>
</tr>
<td colspan = \"3\"><hr></td>
</tr>";
foreach(isymphony_conference_room_list() as $conferenceRoom) {
$databaseDisplay .= " <tr>
<td>{$conferenceRoom['conference_room_id']}</td>
<td>{$conferenceRoom['add_conference_room']}</td>
<td>{$conferenceRoom['display_name']}</td>
</tr>";
}
$databaseDisplay .= "</table>";
}
//Check if a request to show module debug log was made
$debugLogDisplay = "";
if(isset($_REQUEST["showmoduledebuglog"])) {
$debugUrlAdditions .= "&showmoduledebuglog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Module Debug Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open debug log
if(($debugLogFile = fopen($amp_conf['AMPWEBROOT'] . "/admin/modules/isymphony/debug.txt", 'r')) !== false) {
while (!feof($debugLogFile)) {
$line = fgets($debugLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($debugLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Check if a request to show module error log was made
if(isset($_REQUEST["showmoduleerrorlog"])) {
$debugUrlAdditions .= "&showmoduleerrorlog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Module Error Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open error log
if(($errorLogFile = fopen($amp_conf['AMPWEBROOT'] . "/admin/modules/isymphony/error.txt", 'r')) !== false) {
while (!feof($errorLogFile)) {
$line = fgets($errorLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($errorLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Check if a request to show server error log was made
if(isset($_REQUEST["showservererrorlog"])) {
$debugUrlAdditions .= "&showservererrorlog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Server Error Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open error log
if(($errorLogFile = fopen("/opt/isymphony/server/logs/error.txt", 'r')) !== false) {
while (!feof($errorLogFile)) {
$line = fgets($errorLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($errorLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Check if a request to show server core log was made
if(isset($_REQUEST["showservercorelog"])) {
$debugUrlAdditions .= "&showservercorelog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Server Core Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open error log
if(($errorLogFile = fopen("/opt/isymphony/server/logs/core-events.txt", 'r')) !== false) {
while (!feof($errorLogFile)) {
$line = fgets($errorLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($errorLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Check if a request to show server communication log was made
if(isset($_REQUEST["showservercommunicationlog"])) {
$debugUrlAdditions .= "&showservercommunicationlog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Server Communication Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open error log
if(($errorLogFile = fopen("/opt/isymphony/server/logs/communication.txt", 'r')) !== false) {
while (!feof($errorLogFile)) {
$line = fgets($errorLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($errorLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Check if a request to show server aj external log was made
if(isset($_REQUEST["showserverajexternallog"])) {
$debugUrlAdditions .= "&showserverajexternallog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Server AJ External Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open error log
if(($errorLogFile = fopen("/opt/isymphony/server/logs/asterisk-java-external.txt", 'r')) !== false) {
while (!feof($errorLogFile)) {
$line = fgets($errorLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($errorLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Check if a request to show server aj internal log was made
if(isset($_REQUEST["showserverajinternallog"])) {
$debugUrlAdditions .= "&showserverajinternallog=yes";
$debugLogDisplay .= " <tr><td colspan=\"2\"><h5>Server AJ Internal Log<hr></h5></td></tr>
<tr><td colspan=\"2\"><p>";
//Open error log
if(($errorLogFile = fopen("/opt/isymphony/server/logs/asterisk-java-internal.txt", 'r')) !== false) {
while (!feof($errorLogFile)) {
$line = fgets($errorLogFile, 4096);
$debugLogDisplay .= htmlspecialchars($line) . "<br>";
}
fclose($errorLogFile);
}
$debugLogDisplay .= "</p></td></tr>";
}
//Connect to iSymphony server to query information
if($serverRunning) {
//Get server version
if(($versionDisplay = $isymphony->getiSymphonyServerVersion()) === false) {
$versionDisplay = "";
}
//Get licensed to name
if(($licensedToDisplay = $isymphony->getISymphonyLicenseName($locationInformation["isymphony_location"], $locationInformation["isymphony_tenant"])) === false) {
$licensedToDisplay = "";
}
//Get license days
if(($licenseTrialDaysDisplay = $isymphony->getISymphonyLicenseTrialDays($locationInformation["isymphony_location"], $locationInformation["isymphony_tenant"])) === false) {
$licenseTrialDaysDisplay = "";
}
//Get license clients
if(($licenseClientsDisplay = $isymphony->getISymphonyLicenseClients($locationInformation["isymphony_location"], $locationInformation["isymphony_tenant"])) === false) {
$licenseClientsDisplay = "";
}
//Get license queues
if(($licenseQueuesDisplay = $isymphony->getISymphonyLicenseQueues($locationInformation["isymphony_location"], $locationInformation["isymphony_tenant"])) === false) {
$licenseQueuesDisplay = "";
}
//Build action buttons
$reloadServerButton = " <form name=\"isymphony_reload_form\" action=\"config.php?type=setup&display=isymphony$debugUrlAdditions\" method=\"post\">
<input type=\"Submit\" name=\"isymphony_reload\" value=\"" . _('Reload') . "\">
</form>";
$activateLicenseButton = " <form name=\"isymphony_activate_license_form\" action=\"config.php?type=setup&display=isymphony$debugUrlAdditions\" method=\"post\">
<input type=\"text\" name=\"isymphony_license_key\">
<input type=\"Submit\" name=\"isymphony_activate_license\" value=\"" . _('Activate') . "\">
</form>";
//Close iSymphony connection
$isymphony->iSymphonyDisconnect();
} else {
$versionDisplay = "";
$licensedToDisplay = "";
$licenseTrialDaysDisplay = "";
$licenseClientsDisplay = "";
$licenseQueuesDisplay = "";
$reloadServerButton = "";
$activateLicenseButton = "";
}
//Display license activation error if any
if($licenseActivationError != "") {
$licenseActivationError = " <span style=\"color: #FF0000\">
An error occurred while activating your license:<br>
$licenseActivationError
</span>";
}
$display = "<script language=\"javascript\">
<!--
function checkForm() {
var settingsForm = document.getElementById('isymphony_settings_form');
if(settingsForm.elements['isymphony_admin_user_name'].value.length == 0) {
alert('Admin User Name cannot be blank.');
return false;
}
if(settingsForm.elements['isymphony_admin_password'].value.length == 0) {
alert('Admin Password cannot be blank.');
return false;
}
if(settingsForm.elements['isymphony_originate_timeout'].value.length == 0) {
alert('Originate Timeout cannot be blank.');
return false;
}
if(settingsForm.elements['isymphony_originate_timeout'].value != parseInt(settingsForm.elements['isymphony_originate_timeout'].value)) {
alert('Originate Timeout must be numeric.');
return false;
}
if(settingsForm.elements['isymphony_jabber_port'].value.length == 0) {
alert('Jabber Port cannot be blank.');
return false;
}
if(settingsForm.elements['isymphony_jabber_port'].value != parseInt(settingsForm.elements['isymphony_jabber_port'].value)) {
alert('Jabber Port must be numeric.');
return false;
}
return true;
}
//-->
</script>
<div class=\"content\">
$licenseActivationError
<table>
<tr><td colspan=\"2\"><h2 id=\"title\">" . _('iSymphony') . "</h2></td></tr>
<tr><td colspan=\"2\"><h5>" . _('Server') . "<hr></h5></td></tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Status:') . "<span>" . _('Displays if the iSymphony server is running.') . "</span></a></td>
<td>$serverRunningDisplay</td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Version:') . "<span>" . _('Displays the version of the iSymphony server.') . "</span></a></td>
<td>$versionDisplay</td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Reload Server:') . "<span>" . _('Reloads the iSymphony server.') . "</span></a>  </td>
<td>$reloadServerButton</td>
</tr>
<tr><td colspan=\"2\"><h5>" . _('License') . "<hr></h5></td></tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Licensed To:') . "<span>" . _('Displays the name of the person or company this server is licensed to.') . "</span></a></td>
<td>$licensedToDisplay</td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Trial Days:') . "<span>" . _('Displays the number of remaining license trial days.') . "</span></a></td>
<td>$licenseTrialDaysDisplay</td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Clients:') . "<span>" . _('Displays the number of licensed clients.') . "</span></a></td>
<td>$licenseClientsDisplay</td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Queues:') . "<span>" . _('Displays the number of licensed queues.') . "</span></a></td>
<td>$licenseQueuesDisplay</td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Activate:') . "<span>" . _('Activates a license with a given serial key.') . "</span></a></td>
<td>$activateLicenseButton</td>
</tr>
<form name=\"isymphony_settings_form\" id=\"isymphony_settings_form\" action=\"config.php?type=setup&display=isymphony$debugUrlAdditions\" method=\"post\" onsubmit=\"return checkForm();\">
<tr><td colspan=\"2\"><h5>" . _('Server Settings') . "<hr></h5></td></tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Admin User Name') . "<span>" . _('User name used to login to the administration section in the panel.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_admin_user_name\" value=\"" . htmlspecialchars($locationInformation['admin_user_name']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Admin Password:') . "<span>" . _('Password used to login to the administration section in the panel.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_admin_password\" value=\"" . htmlspecialchars($locationInformation['admin_password']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Originate Timeout:') . "<span>" . _('Number of milliseconds that the originating extension will be rung when placing a call via the panel before timing out.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_originate_timeout\" value=\"" . htmlspecialchars($locationInformation['originate_timeout']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Auto Reload:') . "<span>" . _('Tells the server to automatically reload the location when the dial plan is reloaded.') . "</span></a></td>
<td><input type=\"checkbox\" name=\"isymphony_auto_reload\"" . (($locationInformation['auto_reload'] == "1") ? " checked" : "") . "></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Enable Page Status:') . "<span>" . _('If checked allows you to see paging status on extensions in the panel.') . "</span></a></td>
<td><input type=\"checkbox\" name=\"isymphony_page_status_enabled\"" . (($locationInformation['page_status_enabled'] == "1") ? " checked" : "") . "></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('iSymphony Server Host:') . "<span>" . _('IP Address or FQDN of iSymphony Server') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_admin_host\" value=\"" . htmlspecialchars($locationInformation['isymphony_host']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Location:') . "<span>" . _('iSymphony Server Location:') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_admin_location\" value=\"" . htmlspecialchars($locationInformation['isymphony_location']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Tenant:') . "<span>" . _('iSymphonyServer Tenant:') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_admin_tenant\" value=\"" . htmlspecialchars($locationInformation['isymphony_tenant']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Client Port:') . "<span>" . _('Sets the port on the server that serves the client files.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_client_port\" value=\"" . htmlspecialchars($locationInformation['isymphony_client_port']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Asterisk Server Host:') . "<span>" . _('IP Address or FQDN of your Asterisk Server') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_asterisk_host\" value=\"" . htmlspecialchars($locationInformation['asterisk_host']) . "\"></td>
</tr>
<tr><td colspan=\"2\"><h5>" . _('Global Jabber Settings') . "<hr></h5></td></tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Host:') . "<span>" . _('Jabber host to be used unless otherwise overridden by the extension settings.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_jabber_host\" value=\"" . htmlspecialchars($locationInformation['jabber_host']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Domain:') . "<span>" . _('Jabber domain to be used unless otherwise overridden by the extension settings.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_jabber_domain\" value=\"" . htmlspecialchars($locationInformation['jabber_domain']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Resource:') . "<span>" . _('Jabber resource to be used unless otherwise overridden by the extension settings.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_jabber_resource\" value=\"" . htmlspecialchars($locationInformation['jabber_resource']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Port:') . "<span>" . _('Jabber port to be used unless otherwise overridden by the extension settings.') . "</span></a></td>
<td><input size=\"20\" type=\"text\" name=\"isymphony_jabber_port\" value=\"" . htmlspecialchars($locationInformation['jabber_port']) . "\"></td>
</tr>
<tr>
<td><a href=\"#\" class=\"info\">" . _('Log Messages:') . "<span>" . _('Tells the server to log all chat conversations.') . "</span></a></td>
<td><input type=\"checkbox\" name=\"isymphony_log_jabber_messages\"" . (($locationInformation['log_jabber_messages'] == "1") ? " checked" : "") . "></td>
</tr>
<tr>
<td colspan=\"2\"><input type=\"Submit\" name=\"isymphony_update_location_settings\" value=\"" . _('Submit Changes') . "\"></td>
</tr>
</form>
<tr><td colspan=\"2\"><h5>" . _('Module Debug') . "<hr></h5></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showmoduledebuglog=yes$debugUrlAdditions\">" . _('View Debug Log') . "</a></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showmoduleerrorlog=yes$debugUrlAdditions\">" . _('View Error Log') . "</a></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showmoduledb=yes$debugUrlAdditions\">" . _('View Database') . "</a></td></tr>
<tr><td colspan=\"2\"><h5>" . _('Server Debug') . "<hr></h5></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showservererrorlog=yes$debugUrlAdditions\">" . _('View Error Log') . "</a></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showservercorelog=yes$debugUrlAdditions\">" . _('View Core Log') . "</a></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showservercommunicationlog=yes$debugUrlAdditions\">" . _('View Communication Log') . "</a></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showserverajexternallog=yes$debugUrlAdditions\">" . _('View AMI External Log') . "</a></td></tr>
<tr><td><a href=\"config.php?type=setup&display=isymphony&showserverajinternallog=yes$debugUrlAdditions\">" . _('View AMI Internal Log') . "</a></td></tr>
$debugLogDisplay
</table>
$databaseDisplay
$brandInfo
<br>
<br>
For more information please visit <a href=\"http://www.getisymphony.com\">http://www.getisymphony.com</a>
</div>";
echo $display;
echo "<br>";