]> git.mxchange.org Git - friendica.git/blob - view/admin_site.tpl
Merge https://github.com/annando/friendica into annando
[friendica.git] / view / admin_site.tpl
1 <script>
2         $(function(){
3                 
4                 $("#cnftheme").fancybox({
5                         width: 800,
6                         autoDimensions: false,
7                         onStart: function(){
8                                 var theme = $("#id_theme :selected").val();
9                                 var theme_mobile = $("#id_theme_mobile :selected").val();
10                                 $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
11                         }, 
12                         onComplete: function(){
13                                 $("div#fancybox-content form").submit(function(e){
14                                         var url = $(this).attr('action');
15                                         // can't get .serialize() to work...
16                                         var data={};
17                                         $(this).find("input").each(function(){
18                                                 data[$(this).attr('name')] = $(this).val();
19                                         });
20                                         $(this).find("select").each(function(){
21                                                 data[$(this).attr('name')] = $(this).children(":selected").val();
22                                         });
23                                         console.log(":)", url, data);
24                                         
25                                         $.post(url, data, function(data) {
26                                                 if(timer) clearTimeout(timer);
27                                                 NavUpdate();
28                                                 $.fancybox.close();
29                                         })
30                                         
31                                         return false;
32                                 });
33                                 
34                         }
35                 });
36         });
37 </script>
38 <div id='adminpage'>
39         <h1>$title - $page</h1>
40         
41         <form action="$baseurl/admin/site" method="post">
42     <input type='hidden' name='form_security_token' value='$form_security_token'>
43
44         {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
45         {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
46         {{ inc field_select.tpl with $field=$language }}{{ endinc }}
47         {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
48         {{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
49         {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
50         {{ inc field_checkbox.tpl with $field=$new_share }}{{ endinc }}
51
52         
53         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
54         
55         <h3>$registration</h3>
56         {{ inc $field_input with $field=$register_text }}{{ endinc }}
57         {{ inc $field_select with $field=$register_policy }}{{ endinc }}
58         {{ inc $field_input with $field=$daily_registrations }}{{ endinc }}
59         {{ inc $field_checkbox with $field=$no_multi_reg }}{{ endinc }}
60         {{ inc $field_checkbox with $field=$no_openid }}{{ endinc }}
61         {{ inc $field_checkbox with $field=$no_regfullname }}{{ endinc }}
62         
63         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
64
65         <h3>$upload</h3>
66         {{ inc $field_input with $field=$maximagesize }}{{ endinc }}
67         {{ inc $field_input with $field=$maximagelength }}{{ endinc }}
68         {{ inc $field_input with $field=$jpegimagequality }}{{ endinc }}
69         
70         <h3>$corporate</h3>
71         {{ inc $field_input with $field=$allowed_sites }}{{ endinc }}
72         {{ inc $field_input with $field=$allowed_email }}{{ endinc }}
73         {{ inc $field_checkbox with $field=$block_public }}{{ endinc }}
74         {{ inc $field_checkbox with $field=$force_publish }}{{ endinc }}
75         {{ inc $field_checkbox with $field=$no_community_page }}{{ endinc }}
76         {{ inc $field_checkbox with $field=$ostatus_disabled }}{{ endinc }}
77         {{ inc $field_checkbox with $field=$diaspora_enabled }}{{ endinc }}
78         {{ inc $field_checkbox with $field=$dfrn_only }}{{ endinc }}
79         {{ inc $field_input with $field=$global_directory }}{{ endinc }}
80         {{ inc $field_checkbox with $field=$thread_allow }}{{ endinc }}
81         {{ inc $field_checkbox with $field=$newuser_private }}{{ endinc }}
82         
83         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
84         
85         <h3>$advanced</h3>
86         {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
87         {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
88         {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
89         {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
90         {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
91         {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
92         {{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
93         {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
94         {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
95         {{ inc field_input.tpl with $field=$lockpath }}{{ endinc }}
96         {{ inc field_input.tpl with $field=$temppath }}{{ endinc }}
97         {{ inc field_input.tpl with $field=$basepath }}{{ endinc }}
98
99         <h3>$performance</h3>
100         {{ inc field_checkbox.tpl with $field=$use_fulltext_engine }}{{ endinc }}
101         {{ inc field_input.tpl with $field=$itemcache }}{{ endinc }}
102         {{ inc field_input.tpl with $field=$itemcache_duration }}{{ endinc }}
103
104         
105         <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
106         
107         </form>
108 </div>