-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsettings.php
29 lines (23 loc) · 1.41 KB
/
settings.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
<?php
OCP\User::checkAdminUser();
OCP\Util::addScript('ojsxc', 'admin');
$config = \OC::$server->getConfig();
$tmpl = new OCP\Template('ojsxc', 'settings');
$tmpl->assign('serverType', $config->getAppValue('ojsxc', 'serverType'));
$tmpl->assign('boshUrl', $config->getAppValue('ojsxc', 'boshUrl'));
$tmpl->assign('xmppDomain', $config->getAppValue('ojsxc', 'xmppDomain'));
$tmpl->assign('xmppPreferMail', $config->getAppValue('ojsxc', 'xmppPreferMail'));
$tmpl->assign('xmppResource', $config->getAppValue('ojsxc', 'xmppResource'));
$tmpl->assign('xmppOverwrite', $config->getAppValue('ojsxc', 'xmppOverwrite'));
$tmpl->assign('xmppStartMinimized', $config->getAppValue('ojsxc', 'xmppStartMinimized'));
$tmpl->assign('iceUrl', $config->getAppValue('ojsxc', 'iceUrl'));
$tmpl->assign('iceUsername', $config->getAppValue('ojsxc', 'iceUsername'));
$tmpl->assign('iceCredential', $config->getAppValue('ojsxc', 'iceCredential'));
$tmpl->assign('iceSecret', $config->getAppValue('ojsxc', 'iceSecret'));
$tmpl->assign('iceTtl', $config->getAppValue('ojsxc', 'iceTtl'));
$tmpl->assign('firefoxExtension', $config->getAppValue('ojsxc', 'firefoxExtension'));
$tmpl->assign('chromeExtension', $config->getAppValue('ojsxc', 'chromeExtension'));
$externalServices = $config->getAppValue('ojsxc', 'externalServices');
$externalServices = explode("|", $externalServices);
$tmpl->assign('externalServices', $externalServices);
return $tmpl->fetchPage();