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.
 
 
 
 
 
 

134 lines
5.3 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. {{include file="field_input.tpl" field=$sitename}}
  42. {{include file="field_input.tpl" field=$hostname}}
  43. {{include file="field_input.tpl" field=$sender_email}}
  44. {{include file="field_textarea.tpl" field=$banner}}
  45. {{include file="field_textarea.tpl" field=$info}}
  46. {{include file="field_select.tpl" field=$language}}
  47. {{include file="field_select.tpl" field=$theme}}
  48. {{include file="field_select.tpl" field=$theme_mobile}}
  49. {{include file="field_select.tpl" field=$ssl_policy}}
  50. {{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}}
  51. {{include file="field_checkbox.tpl" field=$old_share}}
  52. {{include file="field_checkbox.tpl" field=$hide_help}}
  53. {{include file="field_select.tpl" field=$singleuser}}
  54. <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
  55. <h3>{{$registration}}</h3>
  56. {{include file="field_input.tpl" field=$register_text}}
  57. {{include file="field_select.tpl" field=$register_policy}}
  58. {{include file="field_input.tpl" field=$daily_registrations}}
  59. {{include file="field_checkbox.tpl" field=$no_multi_reg}}
  60. {{include file="field_checkbox.tpl" field=$no_openid}}
  61. {{include file="field_checkbox.tpl" field=$no_regfullname}}
  62. <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
  63. <h3>{{$upload}}</h3>
  64. {{include file="field_input.tpl" field=$maximagesize}}
  65. {{include file="field_input.tpl" field=$maximagelength}}
  66. {{include file="field_input.tpl" field=$jpegimagequality}}
  67. <h3>{{$corporate}}</h3>
  68. {{include file="field_input.tpl" field=$allowed_sites}}
  69. {{include file="field_input.tpl" field=$allowed_email}}
  70. {{include file="field_checkbox.tpl" field=$block_public}}
  71. {{include file="field_checkbox.tpl" field=$force_publish}}
  72. {{include file="field_checkbox.tpl" field=$no_community_page}}
  73. {{include file="field_checkbox.tpl" field=$ostatus_disabled}}
  74. {{include file="field_select.tpl" field=$ostatus_poll_interval}}
  75. {{include file="field_checkbox.tpl" field=$diaspora_enabled}}
  76. {{include file="field_checkbox.tpl" field=$dfrn_only}}
  77. {{include file="field_input.tpl" field=$global_directory}}
  78. {{include file="field_checkbox.tpl" field=$thread_allow}}
  79. {{include file="field_checkbox.tpl" field=$newuser_private}}
  80. {{include file="field_checkbox.tpl" field=$enotify_no_content}}
  81. {{include file="field_checkbox.tpl" field=$private_addons}}
  82. {{include file="field_checkbox.tpl" field=$disable_embedded}}
  83. {{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
  84. <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
  85. <h3>{{$advanced}}</h3>
  86. {{include file="field_checkbox.tpl" field=$no_utf}}
  87. {{include file="field_checkbox.tpl" field=$verifyssl}}
  88. {{include file="field_input.tpl" field=$proxy}}
  89. {{include file="field_input.tpl" field=$proxyuser}}
  90. {{include file="field_input.tpl" field=$timeout}}
  91. {{include file="field_input.tpl" field=$delivery_interval}}
  92. {{include file="field_input.tpl" field=$poll_interval}}
  93. {{include file="field_input.tpl" field=$maxloadavg}}
  94. {{include file="field_input.tpl" field=$abandon_days}}
  95. {{include file="field_input.tpl" field=$lockpath}}
  96. {{include file="field_input.tpl" field=$temppath}}
  97. {{include file="field_input.tpl" field=$basepath}}
  98. {{include file="field_checkbox.tpl" field=$suppress_language}}
  99. <h3>{{$performance}}</h3>
  100. {{include file="field_checkbox.tpl" field=$disable_noscrape}}
  101. {{include file="field_checkbox.tpl" field=$use_fulltext_engine}}
  102. {{include file="field_input.tpl" field=$itemcache}}
  103. {{include file="field_input.tpl" field=$itemcache_duration}}
  104. {{include file="field_input.tpl" field=$max_comments}}
  105. {{include file="field_checkbox.tpl" field=$proxy_disabled}}
  106. <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
  107. </form>
  108. {{* separate form for relocate... *}}
  109. <form action="{{$baseurl}}/admin/site" method="post">
  110. <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
  111. <h3>{{$relocate}}</h3>
  112. {{include file="field_input.tpl" field=$relocate_url}}
  113. <input type="hidden" name="page_site" value="{{$submit}}">
  114. <div class="submit"><input type="submit" name="relocate" value="{{$submit}}" /></div>
  115. </form>
  116. </div>