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.
 
 
 
 
 
 

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