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

settings.php « templates « build - github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e40e3aaf1cf617ef6ab18faa6e46236fb50fc0c (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
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
<div class="section">
	<h2>JavaScript Xmpp Client</h2>
	<form id="ojsxc">
		<div class="form-group">
			<input type="radio" name="serverType" id="serverTypeInternal" required="required" value="internal" <?php if($_['serverType'] === 'internal')echo 'checked'; ?> />
			<label for="serverTypeInternal">Internal (Experimental)</label>
			<em>Internal server is not ready for production and contains not all features of an external server. To be precise only one-to-one messages are possible.</em>
		</div>
		<div class="form-group">
			<input type="radio" name="serverType" id="serverTypeExternal" class="required" required="required" value="external" <?php if($_['serverType'] === 'external')echo 'checked'; ?> />
			<label for="serverTypeExternal">External</label>
			<em>Choose this option to use your own XMPP server.</em>
		</div>
		
		<div class="ojsxc-internal hidden">

		</div>
		
		<div class="ojsxc-external hidden">
			<div class="form-group">
				<label for="xmppDomain">* XMPP domain</label>
				<input type="text" name="xmppDomain" id="xmppDomain" class="required" required="required" value="<?php p($_['xmppDomain']); ?>" />
			</div>
			<div class="form-group">
				<label for="boshUrl">* BOSH url</label>
				<input type="text" name="boshUrl" id="boshUrl" class="required" required="required" value="<?php p($_['boshUrl']); ?>" />
				<div class="boshUrl-msg"></div>
			</div>
			<div class="form-group">
				<label for="xmppResource">XMPP resource</label>
				<input type="text" name="xmppResource" id="xmppResource" value="<?php p($_['xmppResource']); ?>" />
			</div>
			<div class="form-group">
				<label for="xmppOverwrite">Allow user to overwrite XMPP settings</label>
				<input type="checkbox" name="xmppOverwrite" id="xmppOverwrite" value="true" <?php if($_['xmppOverwrite'] === 'true' || $_['xmppOverwrite'] === true) echo "checked"; ?> />
			</div>
		</div>
		
		<div class="form-group">
			<label for="xmppStartMinimized">Hide roster after first login</label>
			<input type="checkbox" name="xmppStartMinimized" id="xmppStartMinimized" value="true" <?php if($_['xmppStartMinimized'] === 'true' || $_['xmppStartMinimized'] === true) echo "checked"; ?> />
		</div>
		<div class="form-group">
			<label for="iceUrl">TURN Url</label>
			<input type="text" name="iceUrl" id="iceUrl" value="<?php p($_['iceUrl']); ?>" />
		</div>
		<div class="form-group">
			<label for="iceUsername">TURN Username</label>
			<input type="text" name="iceUsername" id="iceUrl" value="<?php p($_['iceUsername']); ?>" />
			<em>If no username is set, TURN-REST-API credentials are used.</em>
		</div>
		<div class="form-group">
			<label for="iceCredential">TURN Credential</label>
			<input type="text" name="iceCredential" id="iceCredential" value="<?php p($_['iceCredential']); ?>" />
			<em>If no password is set, TURN-REST-API credentials are used.</em>
		</div>
		<div class="form-group">
			<label for="iceSecret">TURN Secret</label>
			<input type="text" name="iceSecret" id="iceSecret" value="<?php p($_['iceSecret']); ?>" />
			<em>Secret for TURN-REST-API credentials as described <a href="http://tools.ietf.org/html/draft-uberti-behave-turn-rest-00" target="_blank">here</a>.</em>
		</div>
		<div class="form-group">
			<label for="iceTtl">TURN TTL</label>
			<input type="text" name="iceTtl" id="iceTtl" value="<?php p($_['iceTtl']); ?>" />
			<em>Lifetime for TURN-REST-API credentials in seconds.</em>
		</div>
		
		<div class="form-offset-label">
			<div class="msg"></div>
			
			<input type="submit" value="Save settings" />
		</div>
	</form>
</div>