Welcome to mirror list, hosted at ThFree Co, Russian Federation.

admin.php « settings - github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc50ff29dd8997c271d7b7e58ca46d05649483ce (plain)
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
<?php

OCP\User::checkAdminUser();

OCP\Util::addScript('ojsxc', 'settings/admin');

$config = \OC::$server->getConfig();
$tmpl = new OCP\Template('ojsxc', 'settings/admin');

$serverType = $config->getAppValue('ojsxc', 'serverType');

$tmpl->assign('serverType', (!empty($serverType))? $serverType : 'internal');
$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);

$tmpl->assign('apiSecret', $config->getAppValue('ojsxc', 'apiSecret'));
$tmpl->assign('timeLimitedToken', $config->getAppValue('ojsxc', 'timeLimitedToken'));

return $tmpl->fetchPage();