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.
 
 
 
 
 
 

91 lines
3.3 KiB

  1. <script>
  2. $(function(){
  3. $("#cnftheme").fancybox({
  4. width: 800,
  5. autoDimensions: false,
  6. onStart: function(){
  7. var theme = $("#id_theme :selected").val();
  8. $("#cnftheme").attr('href',"$baseurl/admin/themes/"+theme);
  9. },
  10. onComplete: function(){
  11. $("div#fancybox-content form").submit(function(e){
  12. var url = $(this).attr('action');
  13. // can't get .serialize() to work...
  14. var data={};
  15. $(this).find("input").each(function(){
  16. data[$(this).attr('name')] = $(this).val();
  17. });
  18. $(this).find("select").each(function(){
  19. data[$(this).attr('name')] = $(this).children(":selected").val();
  20. });
  21. console.log(":)", url, data);
  22. $.post(url, data, function(data) {
  23. if(timer) clearTimeout(timer);
  24. NavUpdate();
  25. $.fancybox.close();
  26. })
  27. return false;
  28. });
  29. }
  30. });
  31. });
  32. </script>
  33. <div id='adminpage'>
  34. <h1>$title - $page</h1>
  35. <form action="$baseurl/admin/site" method="post">
  36. <input type='hidden' name='form_security_token' value='$form_security_token'>
  37. {{ inc field_input.tpl with $field=$sitename }}{{ endinc }}
  38. {{ inc field_textarea.tpl with $field=$banner }}{{ endinc }}
  39. {{ inc field_select.tpl with $field=$language }}{{ endinc }}
  40. {{ inc field_select.tpl with $field=$theme }}{{ endinc }}
  41. {{ inc field_select.tpl with $field=$ssl_policy }}{{ endinc }}
  42. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  43. <h3>$registration</h3>
  44. {{ inc field_input.tpl with $field=$register_text }}{{ endinc }}
  45. {{ inc field_select.tpl with $field=$register_policy }}{{ endinc }}
  46. {{ inc field_checkbox.tpl with $field=$no_multi_reg }}{{ endinc }}
  47. {{ inc field_checkbox.tpl with $field=$no_openid }}{{ endinc }}
  48. {{ inc field_checkbox.tpl with $field=$no_regfullname }}{{ endinc }}
  49. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  50. <h3>$upload</h3>
  51. {{ inc field_input.tpl with $field=$maximagesize }}{{ endinc }}
  52. <h3>$corporate</h3>
  53. {{ inc field_input.tpl with $field=$allowed_sites }}{{ endinc }}
  54. {{ inc field_input.tpl with $field=$allowed_email }}{{ endinc }}
  55. {{ inc field_checkbox.tpl with $field=$block_public }}{{ endinc }}
  56. {{ inc field_checkbox.tpl with $field=$force_publish }}{{ endinc }}
  57. {{ inc field_checkbox.tpl with $field=$no_community_page }}{{ endinc }}
  58. {{ inc field_checkbox.tpl with $field=$ostatus_disabled }}{{ endinc }}
  59. {{ inc field_checkbox.tpl with $field=$diaspora_enabled }}{{ endinc }}
  60. {{ inc field_checkbox.tpl with $field=$dfrn_only }}{{ endinc }}
  61. {{ inc field_input.tpl with $field=$global_directory }}{{ endinc }}
  62. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  63. <h3>$advanced</h3>
  64. {{ inc field_checkbox.tpl with $field=$no_utf }}{{ endinc }}
  65. {{ inc field_checkbox.tpl with $field=$verifyssl }}{{ endinc }}
  66. {{ inc field_input.tpl with $field=$proxy }}{{ endinc }}
  67. {{ inc field_input.tpl with $field=$proxyuser }}{{ endinc }}
  68. {{ inc field_input.tpl with $field=$timeout }}{{ endinc }}
  69. {{ inc field_input.tpl with $field=$delivery_interval }}{{ endinc }}
  70. {{ inc field_input.tpl with $field=$maxloadavg }}{{ endinc }}
  71. {{ inc field_input.tpl with $field=$abandon_days }}{{ endinc }}
  72. <div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
  73. </form>
  74. </div>