Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

106 lines
4.2 KiB

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