]> git.mxchange.org Git - friendica-addons.git/blob - jappixmini/jappix/php/form-main.php
GContact moved to src
[friendica-addons.git] / jappixmini / jappix / php / form-main.php
1 <?php
2
3 /*
4
5 Jappix - An open social platform
6 This is the main configuration form (install & manager)
7
8 -------------------------------------------------
9
10 License: AGPL
11 Authors: Vanaryon, LinkMauve
12 Last revision: 26/08/11
13
14 */
15
16 // Someone is trying to hack us?
17 if(!defined('JAPPIX_BASE'))
18         exit;
19
20 // Checks the checkboxes which are set "on"
21 $checked = ' checked=""';
22
23 // Host locking
24 if($lock_host == 'on')
25         $check_lock_host = $checked;
26 else
27         $check_lock_host = '';
28
29 // Anonymous mode
30 if($anonymous_mode == 'on')
31         $check_anonymous_mode = $checked;
32 else
33         $check_anonymous_mode = '';
34
35 // Registration
36 if($registration == 'on')
37         $check_registration = $checked;
38 else
39         $check_registration = '';
40
41 // BOSH proxy
42 if($bosh_proxy == 'on')
43         $check_bosh_proxy = $checked;
44 else
45         $check_bosh_proxy = '';
46
47 // Manager link
48 if($manager_link == 'on')
49         $check_manager_link = $checked;
50 else
51         $check_manager_link = '';
52
53 // Encryption
54 if($encryption == 'on')
55         $check_encryption = $checked;
56 else
57         $check_encryption = '';
58
59 // HTTPS storage
60 if($https_storage == 'on')
61         $check_https_storage = $checked;
62 else
63         $check_https_storage = '';
64
65 // Force HTTPS
66 if($https_force == 'on')
67         $check_https_force = $checked;
68 else
69         $check_https_force = '';
70
71 // Compression
72 if($compression == 'on')
73         $check_compression = $checked;
74 else
75         $check_compression = '';
76
77 ?>
78
79 <a class="info smallspace neutral" href="http://codingteam.net/project/jappix/doc/JappixApp#title-2" target="_blank"><?php _e("Need help? You'd better read our documentation page about how to fill this form!"); ?></a>
80
81 <fieldset>
82         <legend><?php _e("Service"); ?></legend>
83         
84         <label for="service_name"><?php _e("Service name"); ?></label><input id="service_name" type="text" name="service_name" value="<?php echo $service_name; ?>" maxlength="14" />
85         
86         <label for="service_desc"><?php _e("Service description"); ?></label><input id="service_desc" type="text" name="service_desc" value="<?php echo $service_desc; ?>" maxlength="30" />
87 </fieldset>
88
89 <fieldset>
90         <legend><?php _e("Connection"); ?></legend>
91         
92         <label for="jappix_resource"><?php _e("Resource"); ?></label><input id="jappix_resource" type="text" name="jappix_resource" value="<?php echo $jappix_resource; ?>" maxlength="1023" />
93         
94         <label for="lock_host"><?php _e("Lock the host"); ?></label><input id="lock_host" type="checkbox" name="lock_host"<?php echo $check_lock_host; ?> />
95         
96         <label for="anonymous_mode"><?php _e("Anonymous mode"); ?></label><input id="anonymous_mode" type="checkbox" name="anonymous_mode"<?php echo $check_anonymous_mode; ?> />
97         
98         <label for="registration"><?php _e("Registration allowed"); ?></label><input id="registration" type="checkbox" name="registration"<?php echo $check_registration; ?> />
99         
100         <label for="bosh_proxy"><?php _e("Use a proxy"); ?></label><input id="bosh_proxy" type="checkbox" name="bosh_proxy"<?php echo $check_bosh_proxy; ?> />
101 </fieldset>
102
103 <fieldset>
104         <legend><?php _e("Others"); ?></legend>
105         
106         <label for="manager_link"><?php _e("Manager link"); ?></label><input id="manager_link" type="checkbox" name="manager_link"<?php echo $check_manager_link; ?> />
107         
108         <label for="groupchats_join"><?php _e("Groupchats to join"); ?></label><input id="groupchats_join" type="text" name="groupchats_join" value="<?php echo $groupchats_join; ?>" placeholder="postpro@muc.jappix.com, mini@muc.jappix.com" />
109 </fieldset>
110
111 <fieldset>
112         <legend><?php _e("Advanced"); ?></legend>
113         
114         <label for="encryption"><?php _e("Encryption"); ?></label><input id="encryption" type="checkbox" name="encryption"<?php echo $check_encryption; ?> />
115         
116         <label for="https_storage"><?php _e("HTTPS storage"); ?></label><input id="https_storage" type="checkbox" name="https_storage"<?php echo $check_https_storage; ?> />
117         
118         <label for="https_force"><?php _e("Force HTTPS"); ?></label><input id="https_force" type="checkbox" name="https_force"<?php echo $check_https_force; ?> />
119         
120         <label for="compression"><?php _e("Compression"); ?></label><input id="compression" type="checkbox" name="compression"<?php echo $check_compression; ?> />
121         
122         <input type="hidden" name="multi_files" value="<?php echo $multi_files; ?>" />
123         
124         <input type="hidden" name="developer" value="<?php echo $developer; ?>" />
125 </fieldset>