PageRenderTime 50ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/html/themes/new_beta/tmpl/page.admin.dirSettings.tmpl

https://github.com/snupple/torrentflux
Go Template | 416 lines | 414 code | 2 blank | 0 comment | 0 complexity | 420bb25499510fee4eeebaa31995f91e MD5 | raw file
  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="enable_xsendfile">X-SendFile</label>
  161. </td>
  162. <td class="settingsSetting" rowspan="2">
  163. <select name="enable_xsendfile" id="enable_xsendfile">
  164. <option value="1">True</option>
  165. <option value="0"
  166. <tmpl_if name="enable_xsendfile" value="0">
  167. selected
  168. </tmpl_if>
  169. >False</option>
  170. </select>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td class="settingsText">
  175. Enable/disable optimized Webserver File Transfert, you need to enable X-SendFile header support in your webserver configuration to use that.
  176. </td>
  177. </tr>
  178. <tr>
  179. <td class="settingsTitle">
  180. <label for="package_type">Download Archive Type</label>
  181. </td>
  182. <td class="settingsSetting" rowspan="2">
  183. <select name="package_type" id="package_type">
  184. <option value="tar" selected>Tar</option>
  185. <option value="zip"
  186. <tmpl_if name="package_type" value="zip">
  187. selected
  188. </tmpl_if>
  189. >Zip</option>
  190. </select>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td class="settingsText">
  195. 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.
  196. </td>
  197. </tr>
  198. <tr>
  199. <td class="settingsTitle">
  200. <label for="enable_view_nfo">Text/NFO Viewer</label>
  201. </td>
  202. <td class="settingsSetting" rowspan="2">
  203. <select name="enable_view_nfo" id="enable_view_nfo">
  204. <option value="1">True</option>
  205. <option value="0"
  206. <tmpl_if name="enable_view_nfo" 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 the built in NFO viewer - when enabled, users will be able to view nfo/txt/log file types directly within torrentflux-b4rt.
  216. </td>
  217. </tr>
  218. <tr>
  219. <td class="settingsTitle">
  220. <label for="enable_rar">Unrar</label>
  221. </td>
  222. <td class="settingsSetting" rowspan="2">
  223. <select name="enable_rar" id="enable_rar">
  224. <option value="1">True</option>
  225. <option value="0"
  226. <tmpl_if name="enable_rar" 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 unrar functionality - when enabled, users will be able to use unrar to unpack rar archives directly within torrentflux-b4rt.
  236. </td>
  237. </tr>
  238. <tr>
  239. <td class="settingsTitle">
  240. <label for="enable_sfvcheck">SFV File Checking</label>
  241. </td>
  242. <td class="settingsSetting" rowspan="2">
  243. <select name="enable_sfvcheck" id="enable_sfvcheck">
  244. <option value="1">True</option>
  245. <option value="0"
  246. <tmpl_if name="enable_sfvcheck" 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 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.
  256. </td>
  257. </tr>
  258. <tr>
  259. <td class="settingsTitle">
  260. <label for="enable_vlc">VLC Streaming</label>
  261. </td>
  262. <td class="settingsSetting" rowspan="2">
  263. <select name="enable_vlc" id="enable_vlc">
  264. <option value="1">True</option>
  265. <option value="0"
  266. <tmpl_if name="enable_vlc" value="0">
  267. selected
  268. </tmpl_if>
  269. >False</option>
  270. </select>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="settingsText">
  275. Enable/disable access to VLC file streaming functionality - when enabled, users will be able to stream media directly from the webserver using VLC.
  276. </td>
  277. </tr>
  278. <tr>
  279. <td class="settingsTitle">
  280. <label for="vlc_port">VLC Port</label>
  281. </td>
  282. <td class="settingsSetting" rowspan="2">
  283. <input name="vlc_port" id="vlc_port" type="Text" maxlength="5" value="<tmpl_var name="vlc_port">" size="5">
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="settingsText">
  288. Specify the port to use for VLC streaming.
  289. </td>
  290. </tr>
  291. <tr>
  292. <td class="settingsTitle">
  293. <label for="enable_rename">File And Folder Renaming</label>
  294. </td>
  295. <td class="settingsSetting" rowspan="2">
  296. <select name="enable_rename" id="enable_rename">
  297. <option value="1">True</option>
  298. <option value="0"
  299. <tmpl_if name="enable_rename" 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 rename files and folders.
  309. </td>
  310. </tr>
  311. <tr>
  312. <td class="settingsTitle">
  313. <label for="enable_move">File And Folder Moving</label>
  314. </td>
  315. <td class="settingsSetting" rowspan="2">
  316. <select name="enable_move" id="enable_move">
  317. <option value="1">True</option>
  318. <option value="0"
  319. <tmpl_if name="enable_move" value="0">
  320. selected
  321. </tmpl_if>
  322. >False</option>
  323. </select>
  324. </td>
  325. </tr>
  326. <tr>
  327. <td class="settingsText">
  328. 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.
  329. </td>
  330. </tr>
  331. <tr>
  332. <td class="settingsTitle">
  333. <label for="categorylist">Valid File And Folder Moving Paths</label>
  334. </td>
  335. <td class="settingsSetting" rowspan="2">
  336. <select name="categorylist" id="categorylist" size="4">
  337. <tmpl_if name="moveSettings_move_list">
  338. <tmpl_loop name="moveSettings_move_list">
  339. <option value="<tmpl_var name="target">"><tmpl_var name="target"></option>
  340. </tmpl_loop>
  341. </tmpl_if>
  342. </select>
  343. <br /><br />
  344. <input type="button" name="remCatButton" value="remove" onclick="removeMoveEntry()">
  345. <br /><br />
  346. </td>
  347. </tr>
  348. <tr>
  349. <td class="settingsText">
  350. 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.
  351. </td>
  352. </tr>
  353. <tr>
  354. <td class="settingsTitle">
  355. <label for="category">New Target-Dir</label>
  356. </td>
  357. <td class="settingsSetting">
  358. <input type="text" name="category" id="category" size="30">
  359. <br /><br />
  360. <input type="button" name="addCatButton" value="add" onclick="addMoveEntry()" size="30">
  361. <br /><br />
  362. <input type="hidden" name="move_paths" value="<tmpl_var name="moveSettings_move_paths">">
  363. </td>
  364. </tr>
  365. <tr>
  366. <td class="settingsTitle">
  367. <label for="resdirlist">Restricted Files And Folders</label>
  368. </td>
  369. <td class="settingsSetting" rowspan="2">
  370. <select name="resdirlist" id="resdirlist" size="4">
  371. <tmpl_if name="dir_restricted_list">
  372. <tmpl_loop name="dir_restricted_list">
  373. <option value="<tmpl_var name="target">"><tmpl_var name="target"></option>
  374. </tmpl_loop>
  375. </tmpl_if>
  376. </select>
  377. <br /><br />
  378. <input type="button" name="remButton" value="remove" onclick="removeDirEntry()">
  379. <br /><br />
  380. </td>
  381. </tr>
  382. <tr>
  383. <td class="settingsText">
  384. 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.
  385. </td>
  386. </tr>
  387. <tr>
  388. <td class="settingsTitle">
  389. <label for="resdirentry">New Entry</label>
  390. </td>
  391. <td class="settingsSetting">
  392. <input type="text" name="resdirentry" id="resdirentry" size="30">
  393. <br /><br />
  394. <input type="button" name="addButton" value="add" onclick="addDirEntry()" size="30">
  395. <br /><br />
  396. <input type="hidden" name="dir_restricted" value="<tmpl_var name="dir_restricted">">
  397. </td>
  398. </tr>
  399. <tr>
  400. <td class="settingsTitle">
  401. </td>
  402. <td class="settingsSetting">
  403. <input type="Submit" value="Update Settings">
  404. </td>
  405. </tr>
  406. </table>
  407. </div>
  408. <div id="uploadBottom"></div>
  409. <div id="uploadBottomEnd"></div>
  410. </form>
  411. <tmpl_include name="inc.subfoot.tmpl">
  412. </div>
  413. </body>
  414. </html>