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

form-hosts.php « server - github.com/jappix/jappix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e688c6960bf5d7a2a8e33767a7669f8ffc89ea71 (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
<?php

/*

Jappix - An open social platform
This is the hosts configuration form (install & manager)

-------------------------------------------------

License: AGPL
Author: Valérian Saliou

*/

// Someone is trying to hack us?
if(!defined('JAPPIX_BASE')) {
    exit;
}

// Checks the checkboxes which are set "on"
$checked = ' checked=""';

// BOSH proxy
if($bosh_proxy == 'on') {
    $check_bosh_proxy = $checked;
} else {
    $check_bosh_proxy = '';
}

?>
<a class="info smallspace neutral" href="https://github.com/jappix/jappix/wiki/JappixApp" target="_blank"><?php _e("Need help? You'd better read our documentation page about how to fill this form!"); ?></a>

<fieldset>
    <legend><?php _e("General"); ?></legend>

    <label for="host_main"><?php _e("Main host"); ?></label><input id="host_main" type="text" name="host_main" value="<?php echo $host_main; ?>" pattern="[^@/]+" />

    <label for="host_muc"><?php _e("Groupchat host"); ?></label><input id="host_muc" type="text" name="host_muc" value="<?php echo $host_muc; ?>" pattern="[^@/]+" />

    <label for="host_pubsub"><?php _e("Pubsub host"); ?></label><input id="host_pubsub" type="text" name="host_pubsub" value="<?php echo $host_pubsub; ?>" pattern="[^@/]+" />
</fieldset>

<fieldset>
    <legend><?php _e("Advanced"); ?></legend>

    <label for="host_anonymous"><?php _e("Anonymous host"); ?></label><input id="host_anonymous" type="text" name="host_anonymous" value="<?php echo $host_anonymous; ?>" pattern="[^@/]+" />

    <label for="host_vjud"><?php _e("Directory host"); ?></label><input id="host_vjud" type="text" name="host_vjud" value="<?php echo $host_vjud; ?>" pattern="[^@/]+" />

    <?php if($host_websocket) { ?>
        <label for="host_websocket"><?php _e("WebSocket host"); ?></label><input id="host_websocket" type="text" name="host_websocket" value="<?php echo $host_websocket; ?>" />
    <?php } else { ?>
        <input type="hidden" name="host_websocket" value="<?php echo $host_websocket; ?>" />
    <?php } ?>

    <label for="host_bosh"><?php _e("BOSH host"); ?></label><input id="host_bosh" type="text" name="host_bosh" value="<?php echo $host_bosh; ?>" />

    <label for="bosh_proxy"><?php _e("Use the built-in BOSH proxy"); ?></label><input id="bosh_proxy" type="checkbox" name="bosh_proxy"<?php echo $check_bosh_proxy; ?> />

    <input type="hidden" name="host_bosh_main" value="<?php echo $host_bosh_main; ?>" />

    <input type="hidden" name="host_bosh_mini" value="<?php echo $host_bosh_mini; ?>" />

    <input type="hidden" name="host_static" value="<?php echo $host_static; ?>" />

    <input type="hidden" name="host_upload" value="<?php echo $host_upload; ?>" />

    <input type="hidden" name="host_stun" value="<?php echo $host_stun; ?>" />

    <input type="hidden" name="host_turn" value="<?php echo $host_turn; ?>" />
    <input type="hidden" name="host_turn_username" value="<?php echo $host_turn_username; ?>" />
    <input type="hidden" name="host_turn_password" value="<?php echo $host_turn_password; ?>" />
</fieldset>