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.
 
 
 
 
 
 

114 lines
4.5 KiB

  1. <script>
  2. $(function(){
  3. $("#cnftheme").click(function(){
  4. $.colorbox({
  5. width: 800,
  6. height: '90%',
  7. /*onOpen: function(){
  8. var theme = $("#id_theme :selected").val();
  9. $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
  10. },*/
  11. href: "$baseurl/admin/themes/" + $("#id_theme :selected").val(),
  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. $.post(url, data, function(data) {
  25. if(timer) clearTimeout(timer);
  26. NavUpdate();
  27. $.colorbox.close();
  28. })
  29. return false;
  30. });
  31. }
  32. });
  33. return false;
  34. });
  35. });
  36. </script>
  37. <div id='adminpage'>
  38. <h1>$title - $page</h1>
  39. <form action="$baseurl/admin/site" method="post">
  40. <input type='hidden' name='form_security_token' value='$form_security_token'>
  41. {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
  42. {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
  43. {{ inc field_select.tpl with $field=$language }}{{ endinc }}
  44. {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
  45. {{ inc field_select.tpl with $field=$theme_mobile }}{{ endinc }}
  46. {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
  47. {{ inc field_checkbox.tpl with $field=$new_share }}{{ endinc }}
  48. {{ inc field_checkbox.tpl with $field=$hide_help }}{{ endinc }}
  49. {{ inc field_select.tpl with $field=$singleuser }}{{ endinc }}
  50. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  51. <h3>$registration</h3>
  52. {{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
  53. {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
  54. {{ inc field_input.tpl with $field=$daily_registrations }}{{ endinc }}
  55. {{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
  56. {{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
  57. {{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
  58. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  59. <h3>$upload</h3>
  60. {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
  61. {{ inc field_input.tpl with $field=$maximagelength }}{{ endinc }}
  62. {{ inc field_input.tpl with $field=$jpegimagequality }}{{ endinc }}
  63. <h3>$corporate</h3>
  64. {{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
  65. {{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
  66. {{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
  67. {{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
  68. {{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
  69. {{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
  70. {{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
  71. {{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
  72. {{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
  73. {{ inc field_checkbox.tpl with $field=$thread_allow }}{{ endinc }}
  74. {{ inc field_checkbox.tpl with $field=$newuser_private }}{{ endinc }}
  75. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  76. <h3>$advanced</h3>
  77. {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
  78. {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
  79. {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
  80. {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
  81. {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
  82. {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
  83. {{ inc field_input.tpl with $field=$poll_interval }}{{ endinc }}
  84. {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
  85. {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
  86. {{ inc field_input.tpl with $field=$lockpath }}{{ endinc }}
  87. {{ inc field_input.tpl with $field=$temppath }}{{ endinc }}
  88. {{ inc field_input.tpl with $field=$basepath }}{{ endinc }}
  89. <h3>$performance</h3>
  90. {{ inc field_checkbox.tpl with $field=$use_fulltext_engine }}{{ endinc }}
  91. {{ inc field_input.tpl with $field=$itemcache }}{{ endinc }}
  92. {{ inc field_input.tpl with $field=$itemcache_duration }}{{ endinc }}
  93. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  94. </form>
  95. </div>