page.admin.serverSettings.tmpl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. <form name="theForm" action="admin.php?op=updateServerSettings" method="post" onsubmit="return validateSettings('server')">
  7. <div id="upload">
  8. <div id="uploadLast"></div>
  9. <div id="uploadFirst">
  10. <span class="upload">
  11. Torrentflux-b4rt Paths
  12. </span>
  13. </div>
  14. </div>
  15. <div class="uploadClass">
  16. <table id="settings">
  17. <tr>
  18. <td class="settingsTitle">
  19. <label for="path">
  20. <tmpl_if name="is_path" value="1">
  21. <tmpl_if name="is_writable" value="1">
  22. Transfer Parent Path
  23. <tmpl_else>
  24. Transfer Parent Path is not writable
  25. </tmpl_if>
  26. <tmpl_else>
  27. Transfer Parent Path is not valid
  28. </tmpl_if>
  29. </label>
  30. </td>
  31. <td class="settingsSetting" rowspan="2">
  32. <input name="path" id="path" type="Text" maxlength="254" value="<tmpl_var name="path">" size="30">
  33. </td>
  34. </tr>
  35. <tr>
  36. <td class="settingsText">
  37. Define the main torrentflux-b4rt parent path.<br/>
  38. Directory must be writable by the webserver user.
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="settingsTitle">
  43. <label for="docroot">
  44. <tmpl_if name="is_docroot" value="1">
  45. Document Root Path
  46. <tmpl_else>
  47. Document Root Path is not valid
  48. </tmpl_if>
  49. </label>
  50. </td>
  51. <td class="settingsSetting" rowspan="2">
  52. <input name="docroot" id="docroot" type="Text" maxlength="254" value="<tmpl_var name="docroot">" size="30">
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="settingsText">
  57. Define the Document Root path of the installation.<br/>
  58. Directory must be readable by the webserver user.
  59. </td>
  60. </tr>
  61. </table>
  62. </div>
  63. <div id="uploadBottom"></div>
  64. <div id="uploadBottomEnd"></div>
  65. <div id="upload">
  66. <div id="uploadLast"></div>
  67. <div id="uploadFirst">
  68. <span class="upload">
  69. Home Directories
  70. </span>
  71. </div>
  72. </div>
  73. <div class="uploadClass">
  74. <table>
  75. <tr>
  76. <td class="settingsTitle">
  77. <label for="enable_home_dirs">Enable Home Directories</label>
  78. </td>
  79. <td class="settingsSetting" rowspan="2">
  80. <select name="enable_home_dirs" id="enable_home_dirs">
  81. <option value="1">True</option>
  82. <option value="0"
  83. <tmpl_if name="enable_home_dirs" value="0">
  84. selected
  85. </tmpl_if>
  86. >False</option>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="settingsText">
  92. Enable/disable home directories.<br/>
  93. If disabled all downloads are saved to the 'incoming' directory specified below.
  94. </td>
  95. </tr>
  96. <tr>
  97. <td class="settingsTitle">
  98. <label for="path_incoming">
  99. <tmpl_if name="path_incoming_ok" value="1">
  100. Incoming
  101. <tmpl_else>
  102. Incoming is not valid
  103. </tmpl_if>
  104. </label>
  105. </td>
  106. <td class="settingsSetting" rowspan="2">
  107. <input name="path_incoming" id="path_incoming" type="Text" maxlength="254" value="<tmpl_var name="path_incoming">" size="30">
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="settingsText">
  112. Define the incoming path where downloads are saved when per user home directories are disabled.
  113. </td>
  114. </tr>
  115. </table>
  116. </div>
  117. <div id="uploadBottom"></div>
  118. <div id="uploadBottomEnd"></div>
  119. <div id="upload">
  120. <div id="uploadLast"></div>
  121. <div id="uploadFirst">
  122. <span class="upload">
  123. Binary Paths
  124. </span>
  125. </div>
  126. </div>
  127. <div class="uploadClass">
  128. <table id="settings">
  129. <tr>
  130. <td class="settingsTitle">
  131. <label for="btclient_transmission_bin">transmissioncli</label>
  132. </td>
  133. <td class="settingsSetting" rowspan="2">
  134. <input name="btclient_transmission_bin" id="btclient_transmission_bin" type="Text" maxlength="254" value="<tmpl_var name="btclient_transmission_bin">" size="30">
  135. </td>
  136. </tr>
  137. <tr>
  138. <td class="settingsText">
  139. Specify the path to the Transmission binary (/usr/local/bin/transmissioncli).
  140. </td>
  141. </tr>
  142. <tr>
  143. <td class="settingsTitle">
  144. <label for="bin_wget">wget</label>
  145. </td>
  146. <td class="settingsSetting" rowspan="2">
  147. <input name="bin_wget" id="bin_wget" type="Text" maxlength="254" value="<tmpl_var name="bin_wget">" size="30">
  148. </td>
  149. </tr>
  150. <tr>
  151. <td class="settingsText">
  152. Specify the path to the wget binary (/usr/bin/wget).
  153. </td>
  154. </tr>
  155. <tr>
  156. <td class="settingsTitle">
  157. <label for="bin_uudeview">uudeview</label>
  158. </td>
  159. <td class="settingsSetting" rowspan="2">
  160. <input name="bin_uudeview" id="bin_uudeview" type="Text" maxlength="254" value="<tmpl_var name="bin_uudeview">" size="30">
  161. </td>
  162. </tr>
  163. <tr>
  164. <td class="settingsText">
  165. Specify the path to the uudeview binary (needed for nzbperl) (/usr/local/bin/uudeview).
  166. </td>
  167. </tr>
  168. <tr>
  169. <td class="settingsTitle">
  170. <label for="bin_php">php</label>
  171. </td>
  172. <td class="settingsSetting" rowspan="2">
  173. <input name="bin_php" id="bin_php" type="Text" maxlength="254" value="<tmpl_var name="bin_php">" size="30">
  174. </td>
  175. </tr>
  176. <tr>
  177. <td class="settingsText">
  178. Specify the path to the commandline (cli) php binary (/usr/bin/php).<br/>
  179. <strong>Note: </strong>This must be the cli version of the PHP binary, NOT cgi or otherwise.
  180. </td>
  181. </tr>
  182. <tr>
  183. <td class="settingsTitle">
  184. <label for="pythonCmd">python</label>
  185. </td>
  186. <td class="settingsSetting" rowspan="2">
  187. <input name="pythonCmd" id="pythonCmd" type="Text" maxlength="254" value="<tmpl_var name="pythonCmd">" size="30">
  188. </td>
  189. </tr>
  190. <tr>
  191. <td class="settingsText">
  192. Specify the path to the python binary (/usr/bin/python).
  193. </td>
  194. </tr>
  195. <tr>
  196. <td class="settingsTitle">
  197. <label for="perlCmd">perl</label>
  198. </td>
  199. <td class="settingsSetting" rowspan="2">
  200. <input name="perlCmd" id="perlCmd" type="Text" maxlength="254" value="<tmpl_var name="perlCmd">" size="30">
  201. </td>
  202. </tr>
  203. <tr>
  204. <td class="settingsText">
  205. Specify the path to perl (/usr/bin/perl).
  206. </td>
  207. </tr>
  208. <tr>
  209. <td class="settingsTitle">
  210. <label for="bin_grep">grep</label>
  211. </td>
  212. <td class="settingsSetting" rowspan="2">
  213. <input name="bin_grep" id="bin_grep" type="Text" maxlength="254" value="<tmpl_var name="bin_grep">" size="30">
  214. </td>
  215. </tr>
  216. <tr>
  217. <td class="settingsText">
  218. Specify the path to the grep binary (/bin/grep).
  219. </td>
  220. </tr>
  221. <tr>
  222. <td class="settingsTitle">
  223. <label for="bin_awk">awk</label>
  224. </td>
  225. <td class="settingsSetting" rowspan="2">
  226. <input name="bin_awk" id="bin_awk" type="Text" maxlength="254" value="<tmpl_var name="bin_awk">" size="30">
  227. </td>
  228. </tr>
  229. <tr>
  230. <td class="settingsText">
  231. Specify the path to the awk binary (/usr/bin/awk).
  232. </td>
  233. </tr>
  234. <tr>
  235. <td class="settingsTitle">
  236. <label for="bin_du">du</label>
  237. </td>
  238. <td class="settingsSetting" rowspan="2">
  239. <input name="bin_du" id="bin_du" type="Text" maxlength="254" value="<tmpl_var name="bin_du">" size="30">
  240. </td>
  241. </tr>
  242. <tr>
  243. <td class="settingsText">
  244. Specify the path to the du binary (/usr/bin/du).
  245. </td>
  246. </tr>
  247. <tr>
  248. <td class="settingsTitle">
  249. <label for="bin_unzip">unzip</label>
  250. </td>
  251. <td class="settingsSetting" rowspan="2">
  252. <input name="bin_unzip" id="bin_unzip" type="Text" maxlength="254" value="<tmpl_var name="bin_unzip">" size="30">
  253. </td>
  254. </tr>
  255. <tr>
  256. <td class="settingsText">
  257. Specify the path to the unzip binary (/usr/bin/unzip).
  258. </td>
  259. </tr>
  260. <tr>
  261. <td class="settingsTitle">
  262. <label for="bin_cksfv">cksfv</label>
  263. </td>
  264. <td class="settingsSetting" rowspan="2">
  265. <input name="bin_cksfv" id="bin_cksfv" type="Text" maxlength="254" value="<tmpl_var name="bin_cksfv">" size="30">
  266. </td>
  267. </tr>
  268. <tr>
  269. <td class="settingsText">
  270. Specify the path to the cksfv binary (/usr/bin/cksfv).
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="settingsTitle">
  275. <label for="bin_vlc">vlc</label>
  276. </td>
  277. <td class="settingsSetting" rowspan="2">
  278. <input name="bin_vlc" id="bin_vlc" type="Text" maxlength="254" value="<tmpl_var name="bin_vlc">" size="30">
  279. </td>
  280. </tr>
  281. <tr>
  282. <td class="settingsText">
  283. Specify the path to the vlc binary (/usr/local/bin/vlc).
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="settingsTitle">
  288. <label for="bin_unrar">unrar</label>
  289. </td>
  290. <td class="settingsSetting" rowspan="2">
  291. <input name="bin_unrar" id="bin_unrar" type="Text" maxlength="254" value="<tmpl_var name="bin_unrar">" size="30">
  292. </td>
  293. </tr>
  294. <tr>
  295. <td class="settingsText">
  296. Specify the path to the unrar binary (/usr/bin/unrar).
  297. </td>
  298. </tr>
  299. </table>
  300. </div>
  301. <div id="uploadBottom"></div>
  302. <div id="uploadBottomEnd"></div>
  303. <div id="upload">
  304. <div id="uploadLast"></div>
  305. <div id="uploadFirst">
  306. <span class="upload">
  307. OS Specific (<tmpl_var name="php_uname1"> <tmpl_var name="php_uname2">)
  308. </span>
  309. </div>
  310. </div>
  311. <div class="uploadClass">
  312. <table id="settings">
  313. <tmpl_if name="_OS" value="1">
  314. <tr>
  315. <td class="settingsTitle">
  316. <label for="loadavg_path">loadavg</label>
  317. </td>
  318. <td class="settingsSetting" rowspan="2">
  319. <input name="loadavg_path" id="loadavg_path" type="Text" maxlength="254" value="<tmpl_var name="loadavg_path">" size="30">
  320. </td>
  321. </tr>
  322. <tr>
  323. <td class="settingsText">
  324. Path to the loadavg file (/proc/loadavg).
  325. </td>
  326. </tr>
  327. <tr>
  328. <td class="settingsTitle">
  329. <label for="bin_netstat">netstat</label>
  330. </td>
  331. <td class="settingsSetting" rowspan="2">
  332. <input name="bin_netstat" id="bin_netstat" type="Text" maxlength="254" value="<tmpl_var name="bin_netstat">" size="30">
  333. </td>
  334. </tr>
  335. <tr>
  336. <td class="settingsText">
  337. Specify the path to the netstat binary (/bin/netstat).
  338. </td>
  339. </tr>
  340. <tmpl_elseif name="_OS" value="2">
  341. <tr>
  342. <td class="settingsTitle">
  343. <label for="bin_sockstat">sockstat</label>
  344. </td>
  345. <td class="settingsSetting" rowspan="2">
  346. <input name="bin_sockstat" id="bin_sockstat" type="Text" maxlength="254" value="<tmpl_var name="bin_sockstat">" size="30">
  347. </td>
  348. </tr>
  349. <tr>
  350. <td class="settingsText">
  351. Specify the path to the sockstat binary (/usr/bin/sockstat).
  352. </td>
  353. </tr>
  354. </tmpl_if>
  355. <tr>
  356. <td class="settingsTitle">
  357. </td>
  358. <td class="settingsSetting">
  359. <input type="Submit" value="Update Settings">
  360. </td>
  361. </tr>
  362. </table>
  363. </div>
  364. <div id="uploadBottom"></div>
  365. <div id="uploadBottomEnd"></div>
  366. </form>
  367. <tmpl_include name="inc.subfoot.tmpl">
  368. </div>
  369. </body>
  370. </html>