page.admin.fluazuSettings.tmpl 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <tmpl_include name="inc.head.tmpl">
  2. <tmpl_include name="inc.titleBar.tmpl">
  3. <div id="content">
  4. <tmpl_if name="message">
  5. <tmpl_var name="message">
  6. </tmpl_if>
  7. <script src="js/functions.js" type="text/javascript"></script>
  8. <script src="js/adminSettings.js" type="text/javascript"></script>
  9. <a name="fluazu" id="fluazu"></a>
  10. <div id="upload">
  11. <div id="uploadLast"></div>
  12. <div id="uploadFirst">
  13. <span class="upload">
  14. <span id="fluazuStart">
  15. <tmpl_if name="pythonMissing">
  16. <span id="newUser">Python Missing</span>
  17. <br><br>
  18. Check <a href="admin.php?op=serverSettings">Server-Settings</a> Page.
  19. <tmpl_else>
  20. <tmpl_if name="fluazuRunning">
  21. <input type="Hidden" name="a" value="stop">
  22. <input type="Submit" value="Stop fluAzu">
  23. <tmpl_else>
  24. <input type="Hidden" name="a" value="start">
  25. <input type="Submit" value="Start fluAzu">
  26. </tmpl_if>
  27. </tmpl_if>
  28. </span>
  29. </span>
  30. </div>
  31. </div>
  32. <div class="uploadClass">
  33. <tmpl_if name="fluazuRunning">
  34. <form name="azuForm" action="admin.php?op=updateAzureusSettings" method="post" onsubmit="return validateSettings('azureus')">
  35. <table id="settings">
  36. <tr>
  37. <td class="settingsTitle">
  38. <label for="CORE_PARAM_INT_MAX_ACTIVE">Max Active Torrents:</label>
  39. </td>
  40. <td class="settingsSetting">
  41. <input name="CORE_PARAM_INT_MAX_ACTIVE" id="CORE_PARAM_INT_MAX_ACTIVE" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_ACTIVE">" size="5">
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="settingsTitle">
  46. <label for="CORE_PARAM_INT_MAX_ACTIVE_SEEDING">Max Active Torrents When Only Seeding:</label>
  47. </td>
  48. <td class="settingsSetting">
  49. <input name="CORE_PARAM_INT_MAX_ACTIVE_SEEDING" id="CORE_PARAM_INT_MAX_ACTIVE_SEEDING" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_ACTIVE_SEEDING">" size="5">
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="settingsTitle">
  54. <label for="CORE_PARAM_INT_MAX_CONNECTIONS_GLOBAL">Max Connections Global:</label>
  55. </td>
  56. <td class="settingsSetting">
  57. <input name="CORE_PARAM_INT_MAX_CONNECTIONS_GLOBAL" id="CORE_PARAM_INT_MAX_CONNECTIONS_GLOBAL" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_CONNECTIONS_GLOBAL">" size="5">
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class="settingsTitle">
  62. <label for="CORE_PARAM_INT_MAX_CONNECTIONS_PER_TORRENT">Max Connections Per Torrent:</label>
  63. </td>
  64. <td class="settingsSetting">
  65. <input name="CORE_PARAM_INT_MAX_CONNECTIONS_PER_TORRENT" id="CORE_PARAM_INT_MAX_CONNECTIONS_PER_TORRENT" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_CONNECTIONS_PER_TORRENT">" size="5">
  66. </td>
  67. </tr>
  68. <tr>
  69. <td class="settingsTitle">
  70. <label for="CORE_PARAM_INT_MAX_DOWNLOAD_SPEED_KBYTES_PER_SEC">Max Download Speed KBs:</label>
  71. </td>
  72. <td class="settingsSetting">
  73. <input name="CORE_PARAM_INT_MAX_DOWNLOAD_SPEED_KBYTES_PER_SEC" id="CORE_PARAM_INT_MAX_DOWNLOAD_SPEED_KBYTES_PER_SEC" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_DOWNLOAD_SPEED_KBYTES_PER_SEC">" size="5">
  74. </td>
  75. </tr>
  76. <tr>
  77. <td class="settingsTitle">
  78. <label for="CORE_PARAM_INT_MAX_DOWNLOADS">Max Downloads:</label>
  79. </td>
  80. <td class="settingsSetting">
  81. <input name="CORE_PARAM_INT_MAX_DOWNLOADS" id="CORE_PARAM_INT_MAX_DOWNLOADS" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_DOWNLOADS">" size="5">
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class="settingsTitle">
  86. <label for="CORE_PARAM_INT_MAX_UPLOAD_SPEED_KBYTES_PER_SEC">Max Upload Speed KBs:</label>
  87. </td>
  88. <td class="settingsSetting">
  89. <input name="CORE_PARAM_INT_MAX_UPLOAD_SPEED_KBYTES_PER_SEC" id="CORE_PARAM_INT_MAX_UPLOAD_SPEED_KBYTES_PER_SEC" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_UPLOAD_SPEED_KBYTES_PER_SEC">" size="5">
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="settingsTitle">
  94. <label for="CORE_PARAM_INT_MAX_UPLOAD_SPEED_SEEDING_KBYTES_PER_SEC">Max Upload Speed When Only Seeding KBs:</label>
  95. </td>
  96. <td class="settingsSetting">
  97. <input name="CORE_PARAM_INT_MAX_UPLOAD_SPEED_SEEDING_KBYTES_PER_SEC" id="CORE_PARAM_INT_MAX_UPLOAD_SPEED_SEEDING_KBYTES_PER_SEC" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_UPLOAD_SPEED_SEEDING_KBYTES_PER_SEC">" size="5">
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="settingsTitle">
  102. <label for="CORE_PARAM_INT_MAX_UPLOADS">Max Uploads:</label>
  103. </td>
  104. <td class="settingsSetting">
  105. <input name="CORE_PARAM_INT_MAX_UPLOADS" id="CORE_PARAM_INT_MAX_UPLOADS" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_UPLOADS">" size="5">
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class="settingsTitle">
  110. <label for="CORE_PARAM_INT_MAX_UPLOADS_SEEDING">Max Uploads Seeding:</label>
  111. </td>
  112. <td class="settingsSetting">
  113. <input name="CORE_PARAM_INT_MAX_UPLOADS_SEEDING" id="CORE_PARAM_INT_MAX_UPLOADS_SEEDING" type="Text" maxlength="10" value="<tmpl_var name="CORE_PARAM_INT_MAX_UPLOADS_SEEDING">" size="5">
  114. </td>
  115. </tr>
  116. <tr>
  117. <td class="settingsTitle">
  118. </td>
  119. <td class="settingsSetting">
  120. <input type="Submit" value="Update Settings">
  121. </td>
  122. </tr>
  123. </table>
  124. </form>
  125. </tmpl_if>
  126. </div>
  127. <div id="uploadBottom"></div>
  128. <div id="uploadBottomEnd"></div>
  129. <div id="upload">
  130. <div id="uploadLast"></div>
  131. <div id="uploadFirst">
  132. <span class="upload">
  133. Settings
  134. </span>
  135. </div>
  136. </div>
  137. <div class="uploadClass">
  138. <form name="theForm" action="admin.php?op=updateFluAzuSettings" method="post" onsubmit="return validateSettings('fluazu')">
  139. <table id="settings">
  140. <tr>
  141. <td class="settingsTitle">
  142. <label for="fluazu_host">Host</label>
  143. </td>
  144. <td class="settingsSetting" rowspan="2">
  145. <input name="fluazu_host" id="fluazu_host" type="Text" maxlength="254" value="<tmpl_var name="fluazu_host">" size="20">
  146. </td>
  147. </tr>
  148. <tr>
  149. <td class="settingsText">
  150. Host of Azureus-server (currently only localhost is supported).
  151. </td>
  152. </tr>
  153. <tr>
  154. <td class="settingsTitle">
  155. <label for="fluazu_port">Port</label>
  156. </td>
  157. <td class="settingsSetting" rowspan="2">
  158. <input name="fluazu_port" id="fluazu_port" type="Text" maxlength="5" value="<tmpl_var name="fluazu_port">" size="5">
  159. </td>
  160. </tr>
  161. <tr>
  162. <td class="settingsText">
  163. Port of Azureus-server (XML/HTTP, default: 6884).
  164. </td>
  165. </tr>
  166. <tr>
  167. <td class="settingsTitle">
  168. <label for="fluazu_secure">Secure</label>
  169. </td>
  170. <td class="settingsSetting" rowspan="2">
  171. <select name="fluazu_secure" id="fluazu_secure">
  172. <option value="1">true</option>
  173. <option value="0"
  174. <tmpl_if name="fluazu_secure" value="0">
  175. selected
  176. </tmpl_if>
  177. >false</option>
  178. </select>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td class="settingsText">
  183. Use secure connection to azureus.
  184. </td>
  185. </tr>
  186. <tr>
  187. <td class="settingsTitle">
  188. <label for="fluazu_user">Username</label>
  189. </td>
  190. <td class="settingsSetting" rowspan="2">
  191. <input name="fluazu_user" id="fluazu_user" type="Text" maxlength="254" value="<tmpl_var name="fluazu_user">" size="20">
  192. </td>
  193. </tr>
  194. <tr>
  195. <td class="settingsText">
  196. Username to use when connecting to Azureus-server.
  197. </td>
  198. </tr>
  199. <tr>
  200. <td class="settingsTitle">
  201. <label for="fluazu_pw">Password</label>
  202. </td>
  203. <td class="settingsSetting" rowspan="2">
  204. <input name="fluazu_pw" id="fluazu_pw" type="password" maxlength="254" value="<tmpl_var name="fluazu_pw">" size="20">
  205. </td>
  206. </tr>
  207. <tr>
  208. <td class="settingsText">
  209. Password to use when connecting to Azureus-server.
  210. </td>
  211. </tr>
  212. <tr>
  213. <td class="settingsTitle">
  214. </td>
  215. <td class="settingsSetting">
  216. <input type="Submit" value="Update Settings">
  217. </td>
  218. </tr>
  219. </table>
  220. </form>
  221. </div>
  222. <div id="uploadBottom"></div>
  223. <div id="uploadBottomEnd"></div>
  224. </div>
  225. <div id="stats">
  226. <script language="JavaScript">
  227. function SuperAdmin(name_file) {
  228. window.open (name_file,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600")
  229. }
  230. </script>
  231. <div id="bandwidthTitle">
  232. <a class="mainMenu" href="javascript:SuperAdmin('superadmin.php?a=1')">Log</a>
  233. </div>
  234. <div id="drivespaceTitle">
  235. <a class="mainMenu" href="javascript:SuperAdmin('superadmin.php?a=3')">ps</a>
  236. </div>
  237. <div id="drivespaceTitle">
  238. <a class="mainMenu" href="javascript:SuperAdmin('superadmin.php?a=9')">Version</a>
  239. </div>
  240. <div id="drivespaceTitle">
  241. <a class="mainMenu" href="">
  242. <tmpl_if name="fluazuRunning">
  243. Fluazu Running
  244. <tmpl_else>
  245. fluAzu Off
  246. </tmpl_if>
  247. </a>
  248. </div>
  249. <tmpl_if name="fluazuRunning">
  250. <div id="statsDrivespace">
  251. <span class="serverStats"><tmpl_var name="azu_host">:<tmpl_var name="azu_port"></span>
  252. <br />
  253. <span class="serverStats">(Azureus <tmpl_var name="azu_version">)</span>
  254. <div class="serverStatsBottom">
  255. <span class="serverStats">(pid: <tmpl_var name="fluazuPid">)</span>
  256. </div>
  257. </div>
  258. </tmpl_if>
  259. </div>
  260. </body>
  261. </html>