1
0

page.admin.statsSettings.tmpl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <tmpl_include name="inc.head.tmpl">
  2. <tmpl_include name="inc.titleBar.tmpl">
  3. <script src="js/functions.js" type="text/javascript"></script>
  4. <script src="js/adminSettings.js" type="text/javascript"></script>
  5. <div id="content">
  6. <div id="upload">
  7. <div id="uploadLast"></div>
  8. <div id="uploadFirst">
  9. <span class="upload">
  10. Stats Settings
  11. </span>
  12. </div>
  13. </div>
  14. <div class="uploadClass">
  15. <form name="theForm" action="admin.php?op=updateStatsSettings" method="post" onsubmit="return validateSettings('stats')">
  16. <div align="left">
  17. <strong>Overview:</strong><br/>
  18. This page contains configuration options for the <a href="stats.php?t=all" target="_blank" title="Torrentflux-b4rt stats script">stats.php</a> script. The stats.php script is used to display various statistics for various aspects of torrentflux-b4rt, including:
  19. <ul>
  20. <li><a href="stats.php?t=server" target="_blank" title="Torrentflux-b4rt server stats">Server</a> - up/down bandwidth, net connections, diskspace, etc</li>
  21. <li><a href="stats.php?t=xfer" target="_blank" title="Torrentflux-b4rt xfer stats">Xfer</a> - totals transferred globally and per user per day/week/month</li>
  22. <li><a href="stats.php?t=users" target="_blank" title="Torrentflux-b4rt users stats">Users</a> - current online status of torrentflux-b4rt users</li>
  23. <li><a href="stats.php?t=transfers" target="_blank" title="Torrentflux-b4rt transfers stats">Transfers</a> - current status, up/down bandwidth, estimated time left etc for all transfers in the transfer list</li>
  24. <li><a href="stats.php?usage" target="_blank" title="Torrentflux-b4rt stats usage">Transfer</a> - stats for individual transfers in the transfer list</li>
  25. </ul>
  26. The stats output is available in RSS, plain text or customized XML.<br/><br/>
  27. Click below for more information:<br/>
  28. <a href="stats.php?usage" target="_blank" title="Torrentflux-b4rt stats usage">Stats Script Usage</a><br/>&nbsp;
  29. </div>
  30. <table id="settings">
  31. <tr>
  32. <td class="settingsTitle">
  33. <label for="stats_enable_public">Publicly Visible Stats</label>
  34. </td>
  35. <td class="settingsSetting" rowspan="2">
  36. <select name="stats_enable_public" id="stats_enable_public">
  37. <option value="1">True</option>
  38. <option value="0"
  39. <tmpl_if name="stats_enable_public" value="0">
  40. selected
  41. </tmpl_if>
  42. >False</option>
  43. </select>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="settingsText">
  48. Enable/disable publicly visible statistics - if enabled, superadmin level stats (server load, all transfer details, etc) are visible to the public without needing to authenticate.
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="settingsTitle">
  53. <label for="stats_show_usage">Show Usage When Called Without Arguments</label>
  54. </td>
  55. <td class="settingsSetting" rowspan="2">
  56. <select name="stats_show_usage" id="stats_show_usage">
  57. <option value="1">True</option>
  58. <option value="0"
  59. <tmpl_if name="stats_show_usage" value="0">
  60. selected
  61. </tmpl_if>
  62. >False</option>
  63. </select>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td class="settingsText">
  68. Enable/disable the option to display usage/help when the stats.php script is called without any arguments in the URL.<br />
  69. <a id="closeLink" href="stats.php?usage" target="_blank">Show Usage</a>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="settingsTitle">
  74. <label for="stats_default_compress">Use Compression</label>
  75. </td>
  76. <td class="settingsSetting" rowspan="2">
  77. <select name="stats_default_compress" id="stats_default_compress">
  78. <option value="1">True</option>
  79. <option value="0"
  80. <tmpl_if name="stats_default_compress" value="0">
  81. selected
  82. </tmpl_if>
  83. >False</option>
  84. </select>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td class="settingsText">
  89. Enable/disable the use of compression by default when sending statistics - using compression uses less bandwidth but takes up more CPU time on the server.
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="settingsTitle">
  94. <label for="stats_deflate_level">Compression Level</label>
  95. </td>
  96. <td class="settingsSetting" rowspan="2">
  97. <select name="stats_deflate_level" id="stats_deflate_level">
  98. <tmpl_loop name="deflate_list">
  99. <option value="<tmpl_var name="i">"
  100. <tmpl_if name="is_selected" value="1">
  101. selected
  102. </tmpl_if>
  103. ><tmpl_var name="i"></option>
  104. </tmpl_loop>
  105. </select>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class="settingsText">
  110. Specify the level of compression to use when transferring data - level 0 = no compression (data is sent out 'as is'), level 9 = maximum compression (data is compressed as small as possible before sending but takes up some minor extra CPU time to compress).
  111. </td>
  112. </tr>
  113. <tr>
  114. <td class="settingsTitle">
  115. <label for="stats_txt_delim">Delimiting Character To Use In TXT Mode</label>
  116. </td>
  117. <td class="settingsSetting" rowspan="2">
  118. <input name="stats_txt_delim" id="stats_txt_delim" type="Text" maxlength="1" value="<tmpl_var name="stats_txt_delim">" size="1">
  119. </td>
  120. </tr>
  121. <tr>
  122. <td class="settingsText">
  123. Specify the character to use for delimiting/separating fields when the format type is 'txt' - this character will be used to split one item in the output from the next.
  124. </td>
  125. </tr>
  126. <tr>
  127. <td class="settingsTitle">
  128. <label for="stats_default_header">Send Header Fields In TXT Mode</label>
  129. </td>
  130. <td class="settingsSetting" rowspan="2">
  131. <select name="stats_default_header" id="stats_default_header">
  132. <option value="1">True</option>
  133. <option value="0"
  134. <tmpl_if name="stats_default_header" value="0">
  135. selected
  136. </tmpl_if>
  137. >False</option>
  138. </select>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td class="settingsText">
  143. Enable/disable sending of header fields at the top of text mode output - when enabled, each of the statistics column headers will be sent out at the top of the output.<br/><strong>Note:</strong><br/>Only used in txt mode.
  144. </td>
  145. </tr>
  146. <tr>
  147. <td class="settingsTitle">
  148. <label for="stats_default_type">Default Statistic Type To Send</label>
  149. </td>
  150. <td class="settingsSetting" rowspan="2">
  151. <select name="stats_default_type" id="stats_default_type">
  152. <option value="all"
  153. <tmpl_if name="stats_default_type" value="all">
  154. selected
  155. </tmpl_if>
  156. >all</option>
  157. <option value="server"
  158. <tmpl_if name="stats_default_type" value="server">
  159. selected
  160. </tmpl_if>
  161. >server</option>
  162. <option value="xfer"
  163. <tmpl_if name="stats_default_type" value="xfer">
  164. selected
  165. </tmpl_if>
  166. >xfer</option>
  167. <option value="users"
  168. <tmpl_if name="stats_default_type" value="users">
  169. selected
  170. </tmpl_if>
  171. >users</option>
  172. <option value="transfers"
  173. <tmpl_if name="stats_default_type" value="transfers">
  174. selected
  175. </tmpl_if>
  176. >transfers</option>
  177. </select>
  178. </td>
  179. </tr>
  180. <tr>
  181. <td class="settingsText">
  182. Specify the default type of statistic to send out.
  183. </td>
  184. </tr>
  185. <tr>
  186. <td class="settingsTitle">
  187. <label for="stats_default_format">Default Output Format</label>
  188. </td>
  189. <td class="settingsSetting" rowspan="2">
  190. <select name="stats_default_format" id="stats_default_format">
  191. <option value="xml"
  192. <tmpl_if name="stats_default_format" value="xml">
  193. selected
  194. </tmpl_if>
  195. >xml</option>
  196. <option value="rss"
  197. <tmpl_if name="stats_default_format" value="rss">
  198. selected
  199. </tmpl_if>
  200. >rss</option>
  201. <option value="txt"
  202. <tmpl_if name="stats_default_format" value="txt">
  203. selected
  204. </tmpl_if>
  205. >txt</option>
  206. </select>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td class="settingsText">
  211. Specify the default output format to use when sending statistics - rss/txt/xml.
  212. </td>
  213. </tr>
  214. <tr>
  215. <td class="settingsTitle">
  216. <label for="stats_default_attach">Send As Attachment</label>
  217. </td>
  218. <td class="settingsSetting" rowspan="2">
  219. <select name="stats_default_attach" id="stats_default_attach">
  220. <option value="1">True</option>
  221. <option value="0"
  222. <tmpl_if name="stats_default_attach" value="0">
  223. selected
  224. </tmpl_if>
  225. >False</option>
  226. </select>
  227. </td>
  228. </tr>
  229. <tr>
  230. <td class="settingsText">
  231. Enable/disable sending of statistics as an HTTP attachment - browser client will prompt to save the attachment as a file.
  232. </td>
  233. </tr>
  234. <tr>
  235. <td class="settingsTitle">
  236. </td>
  237. <td class="settingsSetting">
  238. <input type="Submit" value="Update Settings">
  239. </td>
  240. </tr>
  241. </table>
  242. </form>
  243. </div>
  244. <div id="uploadBottom"></div>
  245. <div id="uploadBottomEnd"></div>
  246. <tmpl_include name="inc.subfoot.tmpl">
  247. </div>
  248. </body>
  249. </html>