BioTorrents.de’s version of Gazelle
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.

config.twig 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <div class="thin">
  2. <div class="header">
  3. <h2>{{ user_id|user_url }} &rsaquo; Seedboxes &rsaquo; Configure</h2>
  4. <div class="linkbox">
  5. <a href="user.php?action=seedbox&amp;userid={{ user_id }}" class="brackets">Configure</a>
  6. <a href="user.php?action=seedbox-view&amp;userid={{ user_id }}" class="brackets">View</a>
  7. </div>
  8. </div>
  9. <div class="box pad">
  10. <p>On this page you can create familiar names for the IP addresses of the
  11. places you seed from (which is not necessarily a seedbox). E.g. "home",
  12. "feral", "seedhost.eu", "basement-pc", "mercury". Using names can help when
  13. seeding from several locations, because who remembers IP addresses?</p>
  14. <p>Use the View page to see if seeds are active in two locations.
  15. This helps in migrating from one location to another, and identifying where
  16. seeds can be removed to free up space. Another use is migrating from one
  17. computer to another, or even a different BitTorrent client on the same
  18. computer. Compare to make sure you have moved everything over.</p>
  19. <p>Note that the BitTorrent protocol is under-specified, and there is
  20. no guaranteed way to distinguish two instances of the same client version
  21. running behind a VPN or NAT. If you have, for instance, two Deluge clients
  22. on two machines in your basement, they will be reported as one.</p>
  23. </div>
  24. <div class="box pad">
  25. {% if host is empty %}
  26. No seed locations are reporting. Are your clients seeding and connected?
  27. {% else %}
  28. <h3>Seeding locations</h3>
  29. {% for h in host %}
  30. {% if loop.first %}
  31. <form class="manage_form" name="seedbox" action="user.php?action=seedbox&amp;userid={{ user_id }}" method="post">
  32. <input type="hidden" name="action" value="seedbox" />
  33. <input type="hidden" name="mode" value="update" />
  34. <input type="hidden" name="auth" value="{{ auth }}" />
  35. <input type="hidden" name="userid" value="{{ user_id }}" />
  36. <table>
  37. <tr>
  38. <th>Name</th>
  39. <th>IP address</th>
  40. <th>Useragent</th>
  41. <th>Total seeding</th>
  42. </tr>
  43. {% endif %}
  44. <tr>
  45. <td>
  46. <input type="text" name="name-{{ loop.index }}" size="40" maxlen="40" value="{{ h.name }}" />
  47. <input type="hidden" name="id-{{ loop.index }}" value="{{ h.id }}" />
  48. <input type="hidden" name="ip-{{ loop.index }}" value="{{ h.ipv4addr }}" />
  49. <input type="hidden" name="ua-{{ loop.index }}" value="{{ h.useragent }}" />
  50. <input type="hidden" name="sig-{{ loop.index }}" value="{{ h.sig }}" />
  51. </td>
  52. <td>
  53. {{ h.ipv4addr }}
  54. </td>
  55. <td>
  56. {{ h.useragent }}
  57. </td>
  58. <td>{{ h.total|number_format }}</td>
  59. </tr>
  60. {% if loop.last %}
  61. </table>
  62. <input type="submit" value="Update names" />
  63. </form>
  64. {% endif %}
  65. {% endfor %}
  66. {% endif %}
  67. </div>
  68. {% if free %}
  69. <div class="box pad">
  70. <h3>Unused names</h3>
  71. <p>You have defined these names but have not associated them with a seed location.
  72. If you no longer require a name, click the checkbox and remove it. If you did not
  73. expect to see a name here because it is in uese, check your client to make sure
  74. it is not frozen or has crashed.</p>
  75. {% for f in free %}
  76. {% if loop.first %}
  77. <form class="manage_form" name="seedbox" action="user.php?action=seedbox&amp;userid={{ user_id }}" method="post">
  78. <input type="hidden" name="action" value="seedbox" />
  79. <input type="hidden" name="mode" value="remove" />
  80. <input type="hidden" name="auth" value="{{ auth }}" />
  81. <input type="hidden" name="userid" value="{{ user_id }}" />
  82. <ul class="stats nobullet">
  83. {% endif %}
  84. <li>
  85. <input type="checkbox" id="seedbox-rm-{{ loop.index }}" name="rm-{{ loop.index }}" />
  86. <input type="hidden" id="rmid-{{ loop.index }}" name="rmid-{{ loop.index }}" value="{{ f.id }}" />
  87. <label for="seedbox-rm-{{ loop.index }}">{{ f.name }}</label>
  88. </li>
  89. {% if loop.last %}
  90. </ul>
  91. <input type="submit" value="Remove unused names" />
  92. </form>
  93. {% endif %}
  94. {% endfor %}
  95. </div>
  96. {% endif %}
  97. </div>