page.admin.dirSettings.tmpl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <tmpl_include name="inc.head.tmpl">
  2. <tmpl_include name="inc.subhead.tmpl">
  3. <tmpl_include name="inc.adminmenu.tmpl">
  4. <script src="js/functions.js" type="text/javascript"></script>
  5. <script src="js/adminSettings.js" type="text/javascript"></script>
  6. <script src="js/moveSettings.js" type="text/javascript"></script>
  7. <script src="js/resdirSettings.js" type="text/javascript"></script>
  8. <div align="center">
  9. <table width="100%" border=1 bordercolor="<tmpl_var name="table_admin_border">" cellpadding="2" cellspacing="0" bgcolor="<tmpl_var name="table_data_bg">">
  10. <tr>
  11. <td bgcolor="<tmpl_var name="table_header_bg">" background="themes/<tmpl_var name="theme">/images/bar.gif">
  12. <img src="themes/tf_standard_themes/images/properties.png" width=18 height=13 border=0>&nbsp;&nbsp;<font class="title">Dir Settings</font>
  13. </td>
  14. </tr>
  15. <tr>
  16. <td align="center">
  17. <div align="center">
  18. <form name="theForm" action="admin.php?op=updateDirSettings" method="post" onsubmit="return validateSettings('dir')">
  19. <table cellpadding="5" cellspacing="0" border="0" width="100%">
  20. <tr>
  21. <td align="left" width="350" valign="top">
  22. <label for="dir_public_read"><strong>Public Read:</strong></label><br/>
  23. 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.
  24. </td>
  25. <td valign="top">
  26. <select name="dir_public_read" id="dir_public_read">
  27. <option value="1">True</option>
  28. <option value="0"
  29. <tmpl_if name="dir_public_read" value="0">
  30. selected
  31. </tmpl_if>
  32. >False</option>
  33. </select>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td align="left" width="350" valign="top">
  38. <label for="dir_public_write"><strong>Public Write:</strong></label><br/>
  39. 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.
  40. </td>
  41. <td valign="top">
  42. <select name="dir_public_write" id="dir_public_write">
  43. <option value="1">True</option>
  44. <option value="0"
  45. <tmpl_if name="dir_public_write" value="0">
  46. selected
  47. </tmpl_if>
  48. >False</option>
  49. </select>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td align="left" width="350" valign="top">
  54. <label for="dir_enable_chmod"><strong>Chmod:</strong></label><br/>
  55. 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).
  56. </td>
  57. <td valign="top">
  58. <select name="dir_enable_chmod" id="dir_enable_chmod">
  59. <option value="1">True</option>
  60. <option value="0"
  61. <tmpl_if name="dir_enable_chmod" value="0">
  62. selected
  63. </tmpl_if>
  64. >False</option>
  65. </select>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td align="left" width="350" valign="top">
  70. <label for="enable_dirstats"><strong>Full Directory Listings:</strong></label><br/>
  71. 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.
  72. </td>
  73. <td valign="top">
  74. <select name="enable_dirstats" id="enable_dirstats">
  75. <option value="1">True</option>
  76. <option value="0"
  77. <tmpl_if name="enable_dirstats" value="0">
  78. selected
  79. </tmpl_if>
  80. >False</option>
  81. </select>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td align="left" width="350" valign="top">
  86. <label for="enable_maketorrent"><strong>Make Torrent:</strong></label><br/>
  87. Enable/disable make torrent functionality for users - when enabled, users will be allowed to create torrent files from the contents in the directory manager.
  88. </td>
  89. <td valign="top">
  90. <select name="enable_maketorrent" id="enable_maketorrent">
  91. <option value="1">True</option>
  92. <option value="0"
  93. <tmpl_if name="enable_maketorrent" value="0">
  94. selected
  95. </tmpl_if>
  96. >False</option>
  97. </select>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td align="left" width="350" valign="top">
  102. <label for="dir_maketorrent_default"><strong>Default Make Torrent Client:</strong></label><br/>
  103. Choose the default client to use to create torrent files with.
  104. </td>
  105. <td valign="top">
  106. <select name="dir_maketorrent_default" id="dir_maketorrent_default">
  107. <option value="tornado">tornado</option>
  108. <option value="mainline"
  109. <tmpl_if name="dir_maketorrent_default" value="mainline">
  110. selected
  111. </tmpl_if>
  112. >mainline</option>
  113. </select>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td align="left" width="350" valign="top">
  118. <label for="enable_file_download"><strong>File Downloads:</strong></label><br/>
  119. Enable/disable file downloading from the directory manager - when enabled, users will be able to download files directly from the torrentflux-b4rt file manager.
  120. </td>
  121. <td valign="top">
  122. <select name="enable_file_download" id="enable_file_download">
  123. <option value="1">True</option>
  124. <option value="0"
  125. <tmpl_if name="enable_file_download" value="0">
  126. selected
  127. </tmpl_if>
  128. >False</option>
  129. </select>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td align="left" width="350" valign="top">
  134. <label for="package_type"><strong>Download Archive Type:</strong></label><br/>
  135. 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.
  136. </td>
  137. <td valign="top">
  138. <select name="package_type" id="package_type">
  139. <option value="tar" selected>Tar</option>
  140. <option value="zip"
  141. <tmpl_if name="package_type" value="zip">
  142. selected
  143. </tmpl_if>
  144. >Zip</option>
  145. </select>
  146. </td>
  147. </tr>
  148. <tr>
  149. <td align="left" width="350" valign="top">
  150. <label for="enable_view_nfo"><strong>Text/NFO Viewer:</strong></label><br/>
  151. 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.
  152. </td>
  153. <td valign="top">
  154. <select name="enable_view_nfo" id="enable_view_nfo">
  155. <option value="1">True</option>
  156. <option value="0"
  157. <tmpl_if name="enable_view_nfo" value="0">
  158. selected
  159. </tmpl_if>
  160. >False</option>
  161. </select>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td align="left" width="350" valign="top">
  166. <label for="enable_rar"><strong>Unrar:</strong></label><br/>
  167. Enable/disable access to unrar functionality - when enabled, users will be able to use unrar to unpack rar archives directly within torrentflux-b4rt.
  168. </td>
  169. <td valign="top">
  170. <select name="enable_rar" id="enable_rar">
  171. <option value="1">True</option>
  172. <option value="0"
  173. <tmpl_if name="enable_rar" value="0">
  174. selected
  175. </tmpl_if>
  176. >False</option>
  177. </select>
  178. </td>
  179. </tr>
  180. <tr>
  181. <td align="left" width="350" valign="top">
  182. <label for="enable_sfvcheck"><strong>SFV File Checking:</strong></label><br/>
  183. 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.
  184. </td>
  185. <td valign="top">
  186. <select name="enable_sfvcheck" id="enable_sfvcheck">
  187. <option value="1">True</option>
  188. <option value="0"
  189. <tmpl_if name="enable_sfvcheck" value="0">
  190. selected
  191. </tmpl_if>
  192. >False</option>
  193. </select>
  194. </td>
  195. </tr>
  196. <tr>
  197. <td align="left" width="350" valign="top">
  198. <label for="enable_vlc"><strong>VLC Streaming:</strong></label><br/>
  199. Enable/disable access to VLC file streaming functionality - when enabled, users will be able to stream media directly from the webserver using VLC.
  200. </td>
  201. <td valign="top">
  202. <select name="enable_vlc" id="enable_vlc">
  203. <option value="1">True</option>
  204. <option value="0"
  205. <tmpl_if name="enable_vlc" value="0">
  206. selected
  207. </tmpl_if>
  208. >False</option>
  209. </select>
  210. </td>
  211. </tr>
  212. <tr>
  213. <td align="left" width="350" valign="top">
  214. <label for="vlc_port"><strong>VLC Port:</strong></label><br/>
  215. Specify the port to use for VLC streaming.
  216. </td>
  217. <td valign="top">
  218. <input name="vlc_port" id="vlc_port" type="Text" maxlength="5" value="<tmpl_var name="vlc_port">" size="5">
  219. </td>
  220. </tr>
  221. <tr>
  222. <td align="left" width="350" valign="top">
  223. <label for="enable_rename"><strong>File And Folder Renaming:</strong></label><br/>
  224. Enable/disable access for users to rename files and folders.
  225. </td>
  226. <td valign="top">
  227. <select name="enable_rename" id="enable_rename">
  228. <option value="1">True</option>
  229. <option value="0"
  230. <tmpl_if name="enable_rename" value="0">
  231. selected
  232. </tmpl_if>
  233. >False</option>
  234. </select>
  235. </td>
  236. </tr>
  237. <tr>
  238. <td align="left" width="350" valign="top">
  239. <label for="enable_move"><strong>File And Folder Moving:</strong></label><br/>
  240. 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.
  241. </td>
  242. <td valign="top">
  243. <select name="enable_move" id="enable_move">
  244. <option value="1">True</option>
  245. <option value="0"
  246. <tmpl_if name="enable_move" value="0">
  247. selected
  248. </tmpl_if>
  249. >False</option>
  250. </select>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td align="left" width="350" valign="top">
  255. <strong>Valid File And Folder Moving Paths:</strong><br/>
  256. 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.
  257. </td>
  258. <td valign="top">
  259. <tmpl_include name="inc.moveSettings.tmpl">
  260. </td>
  261. </tr>
  262. <tr>
  263. <td align="left" width="350" valign="top">
  264. <strong>Restricted Files And Folders:</strong><br/>
  265. 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.
  266. </td>
  267. <td valign="top">
  268. <table>
  269. <tr>
  270. <td valign="top" align="left"><label for="resdirlist">Entries:</label> </td>
  271. <td valign="top" align="left">
  272. <select name="resdirlist" id="resdirlist" size="3">
  273. <tmpl_if name="dir_restricted_list">
  274. <tmpl_loop name="dir_restricted_list">
  275. <option value="<tmpl_var name="target">"><tmpl_var name="target"></option>
  276. </tmpl_loop>
  277. </tmpl_if>
  278. </select>
  279. <input type="button" name="remButton" value="remove" onclick="removeDirEntry()">
  280. </td>
  281. </tr>
  282. <tr>
  283. <td valign="top" align="left"><label for="resdirentry">New Entry:</label> </td>
  284. <td valign="top" align="left">
  285. <input type="text" name="resdirentry" id="resdirentry" size="30">
  286. <input type="button" name="addButton" value="add" onclick="addDirEntry()" size="30">
  287. <input type="hidden" name="dir_restricted" value="<tmpl_var name="dir_restricted">">
  288. </td>
  289. </tr>
  290. </table>
  291. </td>
  292. </tr>
  293. </table>
  294. <br>
  295. <input type="Submit" value="Update Settings">
  296. </form>
  297. </div>
  298. <br>
  299. </td>
  300. </tr>
  301. </table>
  302. </div>
  303. <tmpl_include name="inc.subfoot.tmpl">