2012-04-13 05:20:05 -04:00
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
|
2013-01-31 10:40:03 -05:00
|
|
|
$("#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);
|
2012-04-13 05:20:05 -04:00
|
|
|
|
2013-01-31 10:40:03 -05:00
|
|
|
$.post(url, data, function(data) {
|
|
|
|
if(timer) clearTimeout(timer);
|
|
|
|
NavUpdate();
|
|
|
|
$.colorbox.close();
|
|
|
|
})
|
2012-04-13 05:20:05 -04:00
|
|
|
|
2013-01-31 10:40:03 -05:00
|
|
|
return false;
|
|
|
|
});
|
2012-04-13 05:20:05 -04:00
|
|
|
|
2013-01-31 10:40:03 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
return false;
|
2012-04-13 05:20:05 -04:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2011-06-13 12:03:06 -04:00
|
|
|
<div id='adminpage'>
|
|
|
|
<h1>$title - $page</h1>
|
|
|
|
|
|
|
|
<form action="$baseurl/admin/site" method="post">
|
2012-04-18 03:24:47 -04:00
|
|
|
<input type='hidden' name='form_security_token' value='$form_security_token'>
|
|
|
|
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
|
|
|
|
{{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$language }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$theme }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$new_share }}{{ endinc }}
|
2013-02-17 06:37:45 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$hide_help }}{{ endinc }}
|
2013-02-17 11:42:32 -05:00
|
|
|
{{ inc field_select.tpl with $field=$singleuser }}{{ endinc }}
|
2012-12-23 02:02:21 -05:00
|
|
|
|
2011-06-13 12:03:06 -04:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 02:29:59 -04:00
|
|
|
<h3>$registration</h3>
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
|
|
|
|
{{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$daily_registrations }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
|
2011-06-16 06:05:35 -04:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 02:29:59 -04:00
|
|
|
<h3>$upload</h3>
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$maximagelength }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$jpegimagequality }}{{ endinc }}
|
2011-06-13 12:03:06 -04:00
|
|
|
|
2011-06-18 02:29:59 -04:00
|
|
|
<h3>$corporate</h3>
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
|
2013-03-25 06:01:54 -04:00
|
|
|
{{ inc field_select.tpl with $field=$ostatus_poll_interval }}{{ endinc }}
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$newuser_private }}{{ endinc }}
|
2013-02-23 11:31:34 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$enotify_no_content }}{{ endinc }}
|
2013-03-02 18:46:54 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$private_addons }}{{ endinc }}
|
2013-03-03 11:44:41 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$disable_embedded }}{{ endinc }}
|
2011-06-13 12:03:06 -04:00
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
2011-06-18 02:29:59 -04:00
|
|
|
<h3>$advanced</h3>
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
|
|
|
|
{{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$lockpath }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$temppath }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$basepath }}{{ endinc }}
|
2012-12-21 12:23:55 -05:00
|
|
|
|
|
|
|
<h3>$performance</h3>
|
2012-12-25 13:48:02 -05:00
|
|
|
{{ inc field_checkbox.tpl with $field=$use_fulltext_engine }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$itemcache }}{{ endinc }}
|
|
|
|
{{ inc field_input.tpl with $field=$itemcache_duration }}{{ endinc }}
|
2012-12-23 02:02:21 -05:00
|
|
|
|
2011-06-13 12:03:06 -04:00
|
|
|
|
|
|
|
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|