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.
 
 
 
 
 
 

118 lines
4.2 KiB

  1. {{*
  2. * AUTOMATICALLY GENERATED TEMPLATE
  3. * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
  4. *
  5. *}}
  6. <script>
  7. $(function(){
  8. $("#cnftheme").click(function(){
  9. $.colorbox({
  10. width: 800,
  11. height: '90%',
  12. /*onOpen: function(){
  13. var theme = $("#id_theme :selected").val();
  14. $("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
  15. },*/
  16. href: "{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val(),
  17. onComplete: function(){
  18. $("div#fancybox-content form").submit(function(e){
  19. var url = $(this).attr('action');
  20. // can't get .serialize() to work...
  21. var data={};
  22. $(this).find("input").each(function(){
  23. data[$(this).attr('name')] = $(this).val();
  24. });
  25. $(this).find("select").each(function(){
  26. data[$(this).attr('name')] = $(this).children(":selected").val();
  27. });
  28. console.log(":)", url, data);
  29. $.post(url, data, function(data) {
  30. if(timer) clearTimeout(timer);
  31. NavUpdate();
  32. $.colorbox.close();
  33. })
  34. return false;
  35. });
  36. }
  37. });
  38. return false;
  39. });
  40. });
  41. </script>
  42. <div id='adminpage'>
  43. <h1>{{$title}} - {{$page}}</h1>
  44. <form action="{{$baseurl}}/admin/site" method="post">
  45. <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
  46. {{include file="field_input.tpl" field=$sitename}}
  47. {{include file="field_textarea.tpl" field=$banner}}
  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. {{include file="field_checkbox.tpl" field=$new_share}}
  53. {{include file="field_checkbox.tpl" field=$hide_help}}
  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_checkbox.tpl" field=$diaspora_enabled}}
  75. {{include file="field_checkbox.tpl" field=$dfrn_only}}
  76. {{include file="field_input.tpl" field=$global_directory}}
  77. {{include file="field_checkbox.tpl" field=$thread_allow}}
  78. {{include file="field_checkbox.tpl" field=$newuser_private}}
  79. <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
  80. <h3>{{$advanced}}</h3>
  81. {{include file="field_checkbox.tpl" field=$no_utf}}
  82. {{include file="field_checkbox.tpl" field=$verifyssl}}
  83. {{include file="field_input.tpl" field=$proxy}}
  84. {{include file="field_input.tpl" field=$proxyuser}}
  85. {{include file="field_input.tpl" field=$timeout}}
  86. {{include file="field_input.tpl" field=$delivery_interval}}
  87. {{include file="field_input.tpl" field=$poll_interval}}
  88. {{include file="field_input.tpl" field=$maxloadavg}}
  89. {{include file="field_input.tpl" field=$abandon_days}}
  90. {{include file="field_input.tpl" field=$lockpath}}
  91. {{include file="field_input.tpl" field=$temppath}}
  92. {{include file="field_input.tpl" field=$basepath}}
  93. <h3>{{$performance}}</h3>
  94. {{include file="field_checkbox.tpl" field=$use_fulltext_engine}}
  95. {{include file="field_input.tpl" field=$itemcache}}
  96. {{include file="field_input.tpl" field=$itemcache_duration}}
  97. <div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
  98. </form>
  99. </div>