2013-04-23 13:47:57 +02:00
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
$("#cnftheme").click(function(){
|
|
|
|
$.colorbox({
|
|
|
|
width: 800,
|
|
|
|
height: '90%',
|
|
|
|
/*onOpen: function(){
|
|
|
|
var theme = $("#id_theme :selected").val();
|
|
|
|
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
|
|
|
},*/
|
|
|
|
href: "{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val(),
|
|
|
|
onComplete: function(){
|
|
|
|
$("div#fancybox-content form").submit(function(e){
|
|
|
|
var url = $(this).attr('action');
|
|
|
|
// can't get .serialize() to work...
|
|
|
|
var data={};
|
|
|
|
$(this).find("input").each(function(){
|
|
|
|
data[$(this).attr('name')] = $(this).val();
|
|
|
|
});
|
|
|
|
$(this).find("select").each(function(){
|
|
|
|
data[$(this).attr('name')] = $(this).children(":selected").val();
|
|
|
|
});
|
|
|
|
console.log(":)", url, data);
|
|
|
|
|
|
|
|
$.post(url, data, function(data) {
|
|
|
|
if(timer) clearTimeout(timer);
|
|
|
|
NavUpdate();
|
|
|
|
$.colorbox.close();
|
|
|
|
})
|
|
|
|
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<div id='adminpage'>
|
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
|
|
|
|
|
|
|
<form action="{{$baseurl}}/admin/site" method="post">
|
|
|
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
|
|
|
|
|
|
|
{{include file="field_input.tpl" field=$sitename}}
|
2014-11-08 00:07:21 +01:00
|
|
|
{{include file="field_input.tpl" field=$hostname}}
|
2015-02-16 09:30:12 +01:00
|
|
|
{{include file="field_input.tpl" field=$sender_email}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_textarea.tpl" field=$banner}}
|
2015-02-16 09:30:12 +01:00
|
|
|
{{include file="field_input.tpl" field=$shortcut_icon}}
|
|
|
|
{{include file="field_input.tpl" field=$touch_icon}}
|
2013-10-20 16:17:39 +02:00
|
|
|
{{include file="field_textarea.tpl" field=$info}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_select.tpl" field=$language}}
|
|
|
|
{{include file="field_select.tpl" field=$theme}}
|
|
|
|
{{include file="field_select.tpl" field=$theme_mobile}}
|
|
|
|
{{include file="field_select.tpl" field=$ssl_policy}}
|
2014-10-26 22:15:12 +01:00
|
|
|
{{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}}
|
2013-10-15 00:49:49 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$old_share}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$hide_help}}
|
|
|
|
{{include file="field_select.tpl" field=$singleuser}}
|
2015-02-16 09:30:12 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
<h3>{{$registration}}</h3>
|
|
|
|
{{include file="field_input.tpl" field=$register_text}}
|
|
|
|
{{include file="field_select.tpl" field=$register_policy}}
|
|
|
|
{{include file="field_input.tpl" field=$daily_registrations}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$no_multi_reg}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$no_openid}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$no_regfullname}}
|
2015-02-16 09:30:12 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
<h3>{{$upload}}</h3>
|
|
|
|
{{include file="field_input.tpl" field=$maximagesize}}
|
|
|
|
{{include file="field_input.tpl" field=$maximagelength}}
|
|
|
|
{{include file="field_input.tpl" field=$jpegimagequality}}
|
2015-07-18 00:48:42 +02:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
<h3>{{$corporate}}</h3>
|
|
|
|
{{include file="field_input.tpl" field=$allowed_sites}}
|
|
|
|
{{include file="field_input.tpl" field=$allowed_email}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$block_public}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$force_publish}}
|
2015-02-16 09:30:12 +01:00
|
|
|
{{include file="field_select.tpl" field=$community_page_style}}
|
|
|
|
{{include file="field_input.tpl" field=$max_author_posts_community_page}}
|
2015-11-01 13:55:49 +01:00
|
|
|
|
|
|
|
{{if $thread_allow.2}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$ostatus_disabled}}
|
|
|
|
{{include file="field_select.tpl" field=$ostatus_poll_interval}}
|
2016-03-06 14:09:04 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$ostatus_full_threads}}
|
2015-11-01 13:55:49 +01:00
|
|
|
{{else}}
|
|
|
|
<div class='field checkbox' id='div_id_{{$ostatus_disabled.0}}'>
|
|
|
|
<label for='id_{{$ostatus_disabled.0}}'>{{$ostatus_disabled.1}}</label>
|
|
|
|
<span id='id_{{$ostatus_disabled.0}}'>{{$ostatus_not_able}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if $diaspora_able}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$diaspora_enabled}}
|
|
|
|
{{else}}
|
|
|
|
<div class='field checkbox' id='div_id_{{$diaspora_enabled.0}}'>
|
|
|
|
<label for='id_{{$diaspora_enabled.0}}'>{{$diaspora_enabled.1}}</label>
|
|
|
|
<span id='id_{{$diaspora_enabled.0}}'>{{$diaspora_not_able}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$dfrn_only}}
|
|
|
|
{{include file="field_input.tpl" field=$global_directory}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$thread_allow}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$newuser_private}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$enotify_no_content}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$private_addons}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$disable_embedded}}
|
2013-12-22 16:14:34 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
|
2015-02-16 09:30:12 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
<h3>{{$advanced}}</h3>
|
2015-07-18 00:48:42 +02:00
|
|
|
{{include file="field_select.tpl" field=$rino}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$no_utf}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$verifyssl}}
|
|
|
|
{{include file="field_input.tpl" field=$proxy}}
|
|
|
|
{{include file="field_input.tpl" field=$proxyuser}}
|
|
|
|
{{include file="field_input.tpl" field=$timeout}}
|
2016-07-02 23:08:33 +02:00
|
|
|
{{if NOT $worker.2}}
|
|
|
|
{{include file="field_input.tpl" field=$delivery_interval}}
|
|
|
|
{{include file="field_input.tpl" field=$poll_interval}}
|
|
|
|
{{/if}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_input.tpl" field=$maxloadavg}}
|
2015-05-02 22:05:04 +02:00
|
|
|
{{include file="field_input.tpl" field=$maxloadavg_frontend}}
|
2015-11-28 16:35:16 +01:00
|
|
|
{{include file="field_input.tpl" field=$optimize_max_tablesize}}
|
2015-12-12 17:46:24 +01:00
|
|
|
{{include file="field_input.tpl" field=$optimize_fragmentation}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_input.tpl" field=$abandon_days}}
|
|
|
|
{{include file="field_input.tpl" field=$lockpath}}
|
|
|
|
{{include file="field_input.tpl" field=$temppath}}
|
|
|
|
{{include file="field_input.tpl" field=$basepath}}
|
2013-10-20 16:17:39 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$suppress_language}}
|
2015-02-16 09:30:12 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$suppress_tags}}
|
2015-08-16 21:45:51 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$nodeinfo}}
|
2015-08-25 19:50:23 +02:00
|
|
|
{{include file="field_input.tpl" field=$embedly}}
|
2015-07-18 00:48:42 +02:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
|
|
|
|
2015-07-18 22:26:06 +02:00
|
|
|
<h3>{{$portable_contacts}}</h3>
|
|
|
|
{{include file="field_checkbox.tpl" field=$poco_completion}}
|
2015-09-05 10:54:39 +02:00
|
|
|
{{include file="field_input.tpl" field=$poco_requery_days}}
|
2015-07-19 09:41:36 +02:00
|
|
|
{{include file="field_select.tpl" field=$poco_discovery}}
|
2015-07-21 00:05:44 +02:00
|
|
|
{{include file="field_select.tpl" field=$poco_discovery_since}}
|
2015-07-19 18:02:24 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$poco_local_search}}
|
2015-07-18 00:48:42 +02:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
|
|
|
<h3>{{$performance}}</h3>
|
2017-02-21 06:23:37 +01:00
|
|
|
<!-- {{include file="field_checkbox.tpl" field=$use_fulltext_engine}} -->
|
2015-02-16 09:30:12 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$only_tag_search}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{include file="field_input.tpl" field=$itemcache}}
|
|
|
|
{{include file="field_input.tpl" field=$itemcache_duration}}
|
2014-05-29 22:26:03 +02:00
|
|
|
{{include file="field_input.tpl" field=$max_comments}}
|
2014-08-13 00:13:13 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$proxy_disabled}}
|
2016-03-11 23:44:46 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2016-03-11 23:28:11 +01:00
|
|
|
|
2016-03-11 23:44:46 +01:00
|
|
|
<h3>{{$worker_title}}</h3>
|
2016-03-11 23:28:11 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$worker}}
|
2016-12-06 21:47:37 +01:00
|
|
|
{{if $worker.2}}
|
|
|
|
{{include file="field_input.tpl" field=$worker_queues}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$worker_dont_fork}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$worker_fastlane}}
|
|
|
|
{{include file="field_checkbox.tpl" field=$worker_frontend}}
|
|
|
|
{{/if}}
|
2015-02-16 09:30:12 +01:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
|
2013-11-13 11:57:11 +01:00
|
|
|
|
|
|
|
</form>
|
2013-04-23 13:47:57 +02:00
|
|
|
|
2013-11-13 11:57:11 +01:00
|
|
|
{{* separate form for relocate... *}}
|
|
|
|
<form action="{{$baseurl}}/admin/site" method="post">
|
|
|
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
|
|
|
<h3>{{$relocate}}</h3>
|
|
|
|
{{include file="field_input.tpl" field=$relocate_url}}
|
2015-02-16 09:30:12 +01:00
|
|
|
<input type="hidden" name="page_site" value="{{$submit|escape:'html'}}">
|
|
|
|
<div class="submit"><input type="submit" name="relocate" value="{{$submit|escape:'html'}}" /></div>
|
2013-04-23 13:47:57 +02:00
|
|
|
</form>
|
2013-11-13 11:57:11 +01:00
|
|
|
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|