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.
 
 
 
 
 
 

178 lines
7.7 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. {{if $thread_allow.2}}
  78. {{include file="field_checkbox.tpl" field=$ostatus_disabled}}
  79. {{include file="field_select.tpl" field=$ostatus_poll_interval}}
  80. {{include file="field_checkbox.tpl" field=$ostatus_full_threads}}
  81. {{else}}
  82. <div class='field checkbox' id='div_id_{{$ostatus_disabled.0}}'>
  83. <label for='id_{{$ostatus_disabled.0}}'>{{$ostatus_disabled.1}}</label>
  84. <span id='id_{{$ostatus_disabled.0}}'>{{$ostatus_not_able}}</span>
  85. </div>
  86. {{/if}}
  87. {{if $diaspora_able}}
  88. {{include file="field_checkbox.tpl" field=$diaspora_enabled}}
  89. {{else}}
  90. <div class='field checkbox' id='div_id_{{$diaspora_enabled.0}}'>
  91. <label for='id_{{$diaspora_enabled.0}}'>{{$diaspora_enabled.1}}</label>
  92. <span id='id_{{$diaspora_enabled.0}}'>{{$diaspora_not_able}}</span>
  93. </div>
  94. {{/if}}
  95. {{include file="field_checkbox.tpl" field=$dfrn_only}}
  96. {{include file="field_input.tpl" field=$global_directory}}
  97. {{include file="field_checkbox.tpl" field=$thread_allow}}
  98. {{include file="field_checkbox.tpl" field=$newuser_private}}
  99. {{include file="field_checkbox.tpl" field=$enotify_no_content}}
  100. {{include file="field_checkbox.tpl" field=$private_addons}}
  101. {{include file="field_checkbox.tpl" field=$disable_embedded}}
  102. {{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
  103. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  104. <h3>{{$advanced}}</h3>
  105. {{include file="field_select.tpl" field=$rino}}
  106. {{include file="field_checkbox.tpl" field=$no_utf}}
  107. {{include file="field_checkbox.tpl" field=$verifyssl}}
  108. {{include file="field_input.tpl" field=$proxy}}
  109. {{include file="field_input.tpl" field=$proxyuser}}
  110. {{include file="field_input.tpl" field=$timeout}}
  111. {{if NOT $worker.2}}
  112. {{include file="field_input.tpl" field=$delivery_interval}}
  113. {{include file="field_input.tpl" field=$poll_interval}}
  114. {{/if}}
  115. {{include file="field_input.tpl" field=$maxloadavg}}
  116. {{include file="field_input.tpl" field=$maxloadavg_frontend}}
  117. {{include file="field_input.tpl" field=$optimize_max_tablesize}}
  118. {{include file="field_input.tpl" field=$optimize_fragmentation}}
  119. {{include file="field_input.tpl" field=$abandon_days}}
  120. {{include file="field_input.tpl" field=$lockpath}}
  121. {{include file="field_input.tpl" field=$temppath}}
  122. {{include file="field_input.tpl" field=$basepath}}
  123. {{include file="field_checkbox.tpl" field=$suppress_language}}
  124. {{include file="field_checkbox.tpl" field=$suppress_tags}}
  125. {{include file="field_checkbox.tpl" field=$nodeinfo}}
  126. {{include file="field_input.tpl" field=$embedly}}
  127. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  128. <h3>{{$portable_contacts}}</h3>
  129. {{include file="field_checkbox.tpl" field=$poco_completion}}
  130. {{include file="field_input.tpl" field=$poco_requery_days}}
  131. {{include file="field_select.tpl" field=$poco_discovery}}
  132. {{include file="field_select.tpl" field=$poco_discovery_since}}
  133. {{include file="field_checkbox.tpl" field=$poco_local_search}}
  134. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  135. <h3>{{$performance}}</h3>
  136. {{include file="field_checkbox.tpl" field=$use_fulltext_engine}}
  137. {{include file="field_checkbox.tpl" field=$only_tag_search}}
  138. {{include file="field_input.tpl" field=$itemcache}}
  139. {{include file="field_input.tpl" field=$itemcache_duration}}
  140. {{include file="field_input.tpl" field=$max_comments}}
  141. {{include file="field_checkbox.tpl" field=$proxy_disabled}}
  142. {{include file="field_checkbox.tpl" field=$old_pager}}
  143. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  144. <h3>{{$worker_title}}</h3>
  145. {{include file="field_checkbox.tpl" field=$worker}}
  146. {{include file="field_input.tpl" field=$worker_queues}}
  147. {{include file="field_checkbox.tpl" field=$worker_dont_fork}}
  148. {{include file="field_checkbox.tpl" field=$worker_fastlane}}
  149. <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
  150. </form>
  151. {{* separate form for relocate... *}}
  152. <form action="{{$baseurl}}/admin/site" method="post">
  153. <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
  154. <h3>{{$relocate}}</h3>
  155. {{include file="field_input.tpl" field=$relocate_url}}
  156. <input type="hidden" name="page_site" value="{{$submit|escape:'html'}}">
  157. <div class="submit"><input type="submit" name="relocate" value="{{$submit|escape:'html'}}" /></div>
  158. </form>
  159. </div>