1
0

page.admin.dirSettings.tmpl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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. <script src="js/moveSettings.js" type="text/javascript"></script>
  6. <script src="js/resdirSettings.js" type="text/javascript"></script>
  7. <div id="content">
  8. <form name="theForm" action="admin.php?op=updateDirSettings" method="post" onsubmit="return validateSettings('dir')">
  9. <div id="upload">
  10. <div id="uploadLast"></div>
  11. <div id="uploadFirst">
  12. <span class="upload">
  13. </span>
  14. </div>
  15. </div>
  16. <div class="uploadClass">
  17. <table id="settings">
  18. <tr>
  19. <td class="settingsTitle">
  20. <label for="dir_public_read">Public Read</label>
  21. </td>
  22. <td class="settingsSetting" rowspan="2">
  23. <select name="dir_public_read" id="dir_public_read">
  24. <option value="1">True</option>
  25. <option value="0"
  26. <tmpl_if name="dir_public_read" value="0">
  27. selected
  28. </tmpl_if>
  29. >False</option>
  30. </select>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="settingsText">
  35. Enable/disable public read permission for all files/folders in torrentflux-b4rt - when enabled, all files and folders within torrentflux-b4rt will be readable by all torrentflux-b4rt users.
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="settingsTitle">
  40. <label for="dir_public_write">Public Write</label>
  41. </td>
  42. <td class="settingsSetting" rowspan="2">
  43. <select name="dir_public_write" id="dir_public_write">
  44. <option value="1">True</option>
  45. <option value="0"
  46. <tmpl_if name="dir_public_write" value="0">
  47. selected
  48. </tmpl_if>
  49. >False</option>
  50. </select>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="settingsText">
  55. Enable/disable public write permission for all files/folders in torrentflux-b4rt - when enabled, all files and folders within torrentflux-b4rt will be writable by all torrentflux-b4rt users.
  56. </td>
  57. </tr>
  58. <tr>
  59. <td class="settingsTitle">
  60. <label for="dir_enable_chmod">Chmod</label>
  61. </td>
  62. <td class="settingsSetting" rowspan="2">
  63. <select name="dir_enable_chmod" id="dir_enable_chmod">
  64. <option value="1">True</option>
  65. <option value="0"
  66. <tmpl_if name="dir_enable_chmod" value="0">
  67. selected
  68. </tmpl_if>
  69. >False</option>
  70. </select>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="settingsText">
  75. Enable/disable the use of the chmod functionality for regular torrentflux-b4rt users - when enabled, users will be able to change the permissions on files and folders in torrentflux-b4rt to read/write/execute for everyone (777).
  76. </td>
  77. </tr>
  78. <tr>
  79. <td class="settingsTitle">
  80. <label for="enable_dirstats">Full Directory Listings</label>
  81. </td>
  82. <td class="settingsSetting" rowspan="2">
  83. <select name="enable_dirstats" id="enable_dirstats">
  84. <option value="1">True</option>
  85. <option value="0"
  86. <tmpl_if name="enable_dirstats" value="0">
  87. selected
  88. </tmpl_if>
  89. >False</option>
  90. </select>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td class="settingsText">
  95. Enable/disable complete directory listings - when enabled, full directory listings will be used including size and last modified time similar to Unix 'ls -al' output.
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class="settingsTitle">
  100. <label for="enable_maketorrent">Make Torrent</label>
  101. </td>
  102. <td class="settingsSetting" rowspan="2">
  103. <select name="enable_maketorrent" id="enable_maketorrent">
  104. <option value="1">True</option>
  105. <option value="0"
  106. <tmpl_if name="enable_maketorrent" value="0">
  107. selected
  108. </tmpl_if>
  109. >False</option>
  110. </select>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td class="settingsText">
  115. Enable/disable make torrent functionality for users - when enabled, users will be allowed to create torrent files from the contents in the directory manager.
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="settingsTitle">
  120. <label for="dir_maketorrent_default">Default Make Torrent Client</label>
  121. </td>
  122. <td class="settingsSetting" rowspan="2">
  123. <select name="dir_maketorrent_default" id="dir_maketorrent_default">
  124. <option value="tornado">tornado</option>
  125. <option value="mainline"
  126. <tmpl_if name="dir_maketorrent_default" value="mainline">
  127. selected
  128. </tmpl_if>
  129. >mainline</option>
  130. </select>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="settingsText">
  135. Choose the default client to use to create torrent files with.
  136. </td>
  137. </tr>
  138. <tr>
  139. <td class="settingsTitle">
  140. <label for="enable_file_download">File Downloads</label>
  141. </td>
  142. <td class="settingsSetting" rowspan="2">
  143. <select name="enable_file_download" id="enable_file_download">
  144. <option value="1">True</option>
  145. <option value="0"
  146. <tmpl_if name="enable_file_download" value="0">
  147. selected
  148. </tmpl_if>
  149. >False</option>
  150. </select>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td class="settingsText">
  155. Enable/disable file downloading from the directory manager - when enabled, users will be able to download files directly from the torrentflux-b4rt file manager.
  156. </td>
  157. </tr>
  158. <tr>
  159. <td class="settingsTitle">
  160. <label for="package_type">Download Archive Type</label>
  161. </td>
  162. <td class="settingsSetting" rowspan="2">
  163. <select name="package_type" id="package_type">
  164. <option value="tar" selected>Tar</option>
  165. <option value="zip"
  166. <tmpl_if name="package_type" value="zip">
  167. selected
  168. </tmpl_if>
  169. >Zip</option>
  170. </select>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td class="settingsText">
  175. Choose the type of archive to use when performing file downloads - files downloaded will be archived using this archive type prior to sending.<br/><strong>Note:</strong><br/>Ensure your operating system supports the archive type you select here.
  176. </td>
  177. </tr>
  178. <tr>
  179. <td class="settingsTitle">
  180. <label for="enable_view_nfo">Text/NFO Viewer</label>
  181. </td>
  182. <td class="settingsSetting" rowspan="2">
  183. <select name="enable_view_nfo" id="enable_view_nfo">
  184. <option value="1">True</option>
  185. <option value="0"
  186. <tmpl_if name="enable_view_nfo" value="0">
  187. selected
  188. </tmpl_if>
  189. >False</option>
  190. </select>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td class="settingsText">
  195. Enable/disable access to the built in NFO viewer - when enabled, users will be able to view nfo/txt/log file types directly within torrentflux-b4rt.
  196. </td>
  197. </tr>
  198. <tr>
  199. <td class="settingsTitle">
  200. <label for="enable_rar">Unrar</label>
  201. </td>
  202. <td class="settingsSetting" rowspan="2">
  203. <select name="enable_rar" id="enable_rar">
  204. <option value="1">True</option>
  205. <option value="0"
  206. <tmpl_if name="enable_rar" value="0">
  207. selected
  208. </tmpl_if>
  209. >False</option>
  210. </select>
  211. </td>
  212. </tr>
  213. <tr>
  214. <td class="settingsText">
  215. Enable/disable access to unrar functionality - when enabled, users will be able to use unrar to unpack rar archives directly within torrentflux-b4rt.
  216. </td>
  217. </tr>
  218. <tr>
  219. <td class="settingsTitle">
  220. <label for="enable_sfvcheck">SFV File Checking</label>
  221. </td>
  222. <td class="settingsSetting" rowspan="2">
  223. <select name="enable_sfvcheck" id="enable_sfvcheck">
  224. <option value="1">True</option>
  225. <option value="0"
  226. <tmpl_if name="enable_sfvcheck" value="0">
  227. selected
  228. </tmpl_if>
  229. >False</option>
  230. </select>
  231. </td>
  232. </tr>
  233. <tr>
  234. <td class="settingsText">
  235. Enable/disable access to sfv file checking functionality - when enabled, if an sfv file is present users will be able to verify the integrity of the files covered by the sfv file directly within torrentflux-b4rt.
  236. </td>
  237. </tr>
  238. <tr>
  239. <td class="settingsTitle">
  240. <label for="enable_vlc">VLC Streaming</label>
  241. </td>
  242. <td class="settingsSetting" rowspan="2">
  243. <select name="enable_vlc" id="enable_vlc">
  244. <option value="1">True</option>
  245. <option value="0"
  246. <tmpl_if name="enable_vlc" value="0">
  247. selected
  248. </tmpl_if>
  249. >False</option>
  250. </select>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td class="settingsText">
  255. Enable/disable access to VLC file streaming functionality - when enabled, users will be able to stream media directly from the webserver using VLC.
  256. </td>
  257. </tr>
  258. <tr>
  259. <td class="settingsTitle">
  260. <label for="vlc_port">VLC Port</label>
  261. </td>
  262. <td class="settingsSetting" rowspan="2">
  263. <input name="vlc_port" id="vlc_port" type="Text" maxlength="5" value="<tmpl_var name="vlc_port">" size="5">
  264. </td>
  265. </tr>
  266. <tr>
  267. <td class="settingsText">
  268. Specify the port to use for VLC streaming.
  269. </td>
  270. </tr>
  271. <tr>
  272. <td class="settingsTitle">
  273. <label for="enable_rename">File And Folder Renaming</label>
  274. </td>
  275. <td class="settingsSetting" rowspan="2">
  276. <select name="enable_rename" id="enable_rename">
  277. <option value="1">True</option>
  278. <option value="0"
  279. <tmpl_if name="enable_rename" value="0">
  280. selected
  281. </tmpl_if>
  282. >False</option>
  283. </select>
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="settingsText">
  288. Enable/disable access for users to rename files and folders.
  289. </td>
  290. </tr>
  291. <tr>
  292. <td class="settingsTitle">
  293. <label for="enable_move">File And Folder Moving</label>
  294. </td>
  295. <td class="settingsSetting" rowspan="2">
  296. <select name="enable_move" id="enable_move">
  297. <option value="1">True</option>
  298. <option value="0"
  299. <tmpl_if name="enable_move" value="0">
  300. selected
  301. </tmpl_if>
  302. >False</option>
  303. </select>
  304. </td>
  305. </tr>
  306. <tr>
  307. <td class="settingsText">
  308. Enable/disable access for users to move files and folders out of the torrentflux-b4rt directory hierarchy - when enabled, users will be allowed to move files and folders out of the torrentflux-b4rt directory hierarchy into a choice of folders elsewhere on the server.
  309. </td>
  310. </tr>
  311. <tr>
  312. <td class="settingsTitle">
  313. <label for="categorylist">Valid File And Folder Moving Paths</label>
  314. </td>
  315. <td class="settingsSetting" rowspan="2">
  316. <select name="categorylist" id="categorylist" size="4">
  317. <tmpl_if name="moveSettings_move_list">
  318. <tmpl_loop name="moveSettings_move_list">
  319. <option value="<tmpl_var name="target">"><tmpl_var name="target"></option>
  320. </tmpl_loop>
  321. </tmpl_if>
  322. </select>
  323. <br /><br />
  324. <input type="button" name="remCatButton" value="remove" onclick="removeMoveEntry()">
  325. <br /><br />
  326. </td>
  327. </tr>
  328. <tr>
  329. <td class="settingsText">
  330. Specify the paths to which users are allowed to move files and folders outside of the torrentflux-b4rt directory hierarchy.<br/><strong>Note:</strong><br/>Paths must be absolute - ie '/path/to/somefolder' instead of just 'somefolder'.<br/>Any newly created directories will not be deleted after removing a transfer from the transfer list.
  331. </td>
  332. </tr>
  333. <tr>
  334. <td class="settingsTitle">
  335. <label for="category">New Target-Dir</label>
  336. </td>
  337. <td class="settingsSetting">
  338. <input type="text" name="category" id="category" size="30">
  339. <br /><br />
  340. <input type="button" name="addCatButton" value="add" onclick="addMoveEntry()" size="30">
  341. <br /><br />
  342. <input type="hidden" name="move_paths" value="<tmpl_var name="moveSettings_move_paths">">
  343. </td>
  344. </tr>
  345. <tr>
  346. <td class="settingsTitle">
  347. <label for="resdirlist">Restricted Files And Folders</label>
  348. </td>
  349. <td class="settingsSetting" rowspan="2">
  350. <select name="resdirlist" id="resdirlist" size="4">
  351. <tmpl_if name="dir_restricted_list">
  352. <tmpl_loop name="dir_restricted_list">
  353. <option value="<tmpl_var name="target">"><tmpl_var name="target"></option>
  354. </tmpl_loop>
  355. </tmpl_if>
  356. </select>
  357. <br /><br />
  358. <input type="button" name="remButton" value="remove" onclick="removeDirEntry()">
  359. <br /><br />
  360. </td>
  361. </tr>
  362. <tr>
  363. <td class="settingsText">
  364. Specify a list of patterns which, when found in a file or folder name, will not be allowed access to by users.<br/><strong>Note:</strong><br/>Access to dot files/folders - files/folders starting with a dot - are always restricted.
  365. </td>
  366. </tr>
  367. <tr>
  368. <td class="settingsTitle">
  369. <label for="resdirentry">New Entry</label>
  370. </td>
  371. <td class="settingsSetting">
  372. <input type="text" name="resdirentry" id="resdirentry" size="30">
  373. <br /><br />
  374. <input type="button" name="addButton" value="add" onclick="addDirEntry()" size="30">
  375. <br /><br />
  376. <input type="hidden" name="dir_restricted" value="<tmpl_var name="dir_restricted">">
  377. </td>
  378. </tr>
  379. <tr>
  380. <td class="settingsTitle">
  381. </td>
  382. <td class="settingsSetting">
  383. <input type="Submit" value="Update Settings">
  384. </td>
  385. </tr>
  386. </table>
  387. </div>
  388. <div id="uploadBottom"></div>
  389. <div id="uploadBottomEnd"></div>
  390. </form>
  391. <tmpl_include name="inc.subfoot.tmpl">
  392. </div>
  393. </body>
  394. </html>