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.
 
 
 
 
 
 

146 lines
6.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_input.tpl" field=$shortcut_icon}}
  46. {{include file="field_input.tpl" field=$touch_icon}}
  47. {{include file="field_textarea.tpl" field=$info}}
  48. {{include file="field_select.tpl" field=$language}}
  49. {{include file="field_select.tpl" field=$theme}}
  50. {{include file="field_select.tpl" field=$theme_mobile}}
  51. {{include file="field_select.tpl" field=$ssl_policy}}
  52. {{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}}
  53. {{include file="field_checkbox.tpl" field=$old_share}}
  54. {{include file="field_checkbox.tpl" field=$hide_help}}
  55. {{include file="field_select.tpl" field=$singleuser}}
  56. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  57. <h3>{{$registration}}</h3>
  58. {{include file="field_input.tpl" field=$register_text}}
  59. {{include file="field_select.tpl" field=$register_policy}}
  60. {{include file="field_input.tpl" field=$daily_registrations}}
  61. {{include file="field_checkbox.tpl" field=$no_multi_reg}}
  62. {{include file="field_checkbox.tpl" field=$no_openid}}
  63. {{include file="field_checkbox.tpl" field=$no_regfullname}}
  64. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  65. <h3>{{$upload}}</h3>
  66. {{include file="field_input.tpl" field=$maximagesize}}
  67. {{include file="field_input.tpl" field=$maximagelength}}
  68. {{include file="field_input.tpl" field=$jpegimagequality}}
  69. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  70. <h3>{{$corporate}}</h3>
  71. {{include file="field_input.tpl" field=$allowed_sites}}
  72. {{include file="field_input.tpl" field=$allowed_email}}
  73. {{include file="field_checkbox.tpl" field=$block_public}}
  74. {{include file="field_checkbox.tpl" field=$force_publish}}
  75. {{include file="field_select.tpl" field=$community_page_style}}
  76. {{include file="field_input.tpl" field=$max_author_posts_community_page}}
  77. {{include file="field_checkbox.tpl" field=$ostatus_disabled}}
  78. {{include file="field_select.tpl" field=$ostatus_poll_interval}}
  79. {{include file="field_checkbox.tpl" field=$diaspora_enabled}}
  80. {{include file="field_checkbox.tpl" field=$dfrn_only}}
  81. {{include file="field_input.tpl" field=$global_directory}}
  82. {{include file="field_checkbox.tpl" field=$thread_allow}}
  83. {{include file="field_checkbox.tpl" field=$newuser_private}}
  84. {{include file="field_checkbox.tpl" field=$enotify_no_content}}
  85. {{include file="field_checkbox.tpl" field=$private_addons}}
  86. {{include file="field_checkbox.tpl" field=$disable_embedded}}
  87. {{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
  88. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  89. <h3>{{$advanced}}</h3>
  90. {{include file="field_select.tpl" field=$rino}}
  91. {{include file="field_checkbox.tpl" field=$no_utf}}
  92. {{include file="field_checkbox.tpl" field=$verifyssl}}
  93. {{include file="field_input.tpl" field=$proxy}}
  94. {{include file="field_input.tpl" field=$proxyuser}}
  95. {{include file="field_input.tpl" field=$timeout}}
  96. {{include file="field_input.tpl" field=$delivery_interval}}
  97. {{include file="field_input.tpl" field=$poll_interval}}
  98. {{include file="field_input.tpl" field=$maxloadavg}}
  99. {{include file="field_input.tpl" field=$maxloadavg_frontend}}
  100. {{include file="field_input.tpl" field=$abandon_days}}
  101. {{include file="field_input.tpl" field=$lockpath}}
  102. {{include file="field_input.tpl" field=$temppath}}
  103. {{include file="field_input.tpl" field=$basepath}}
  104. {{include file="field_checkbox.tpl" field=$suppress_language}}
  105. {{include file="field_checkbox.tpl" field=$suppress_tags}}
  106. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  107. <h3>{{$portable_contacts}}</h3>
  108. {{include file="field_checkbox.tpl" field=$poco_completion}}
  109. {{include file="field_select.tpl" field=$poco_discovery}}
  110. {{include file="field_checkbox.tpl" field=$poco_local_search}}
  111. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  112. <h3>{{$performance}}</h3>
  113. {{include file="field_checkbox.tpl" field=$use_fulltext_engine}}
  114. {{include file="field_checkbox.tpl" field=$only_tag_search}}
  115. {{include file="field_input.tpl" field=$itemcache}}
  116. {{include file="field_input.tpl" field=$itemcache_duration}}
  117. {{include file="field_input.tpl" field=$max_comments}}
  118. {{include file="field_checkbox.tpl" field=$proxy_disabled}}
  119. {{include file="field_checkbox.tpl" field=$old_pager}}
  120. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  121. </form>
  122. {{* separate form for relocate... *}}
  123. <form action="{{$baseurl}}/admin/site" method="post">
  124. <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
  125. <h3>{{$relocate}}</h3>
  126. {{include file="field_input.tpl" field=$relocate_url}}
  127. <input type="hidden" name="page_site" value="{{$submit|escape:'html'}}">
  128. <div class="submit"><input type="submit" name="relocate" value="{{$submit|escape:'html'}}" /></div>
  129. </form>
  130. </div>