1
0

page.admin.webappSettings.tmpl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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=updateWebappSettings" method="post" onsubmit="return validateSettings('webapp')">
  7. <div id="upload">
  8. <div id="uploadLast"></div>
  9. <div id="uploadFirst">
  10. <span class="upload">
  11. WebApp Settings
  12. </span>
  13. </div>
  14. </div>
  15. <div class="uploadClass">
  16. <table id="settings">
  17. <tr>
  18. <td class="settingsTitle">
  19. <label for="auth_type">Select Authentication Type</label>
  20. </td>
  21. <td class="settingsSetting" rowspan="2">
  22. <tmpl_if name="auth_type_list">
  23. <select name="auth_type" id="auth_type">
  24. <tmpl_loop name="auth_type_list">
  25. <option value="<tmpl_var name="avalue">"<tmpl_if name="aselected" value="1"> selected</tmpl_if>><tmpl_var name="atype"></option>
  26. </tmpl_loop>
  27. </select>
  28. </tmpl_if>
  29. <br /><br />
  30. <img src="image.php?i=test" border="0" title="Test-Image">
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="settingsText">
  35. <ul>
  36. <li><strong>Form Auth</strong><br/>Standard form based authentication.</li>
  37. <li><strong>Form Auth + Cookie</strong><br/>Standard form based authentication using an 'autologin' cookie (expires after 30 days).</li>
  38. <li><strong>Form Auth + Image</strong><br/>Standard form based authentication using image based captcha validation (user must enter the characters displayed in a dynamically created image to validate).</li>
  39. <li><strong>Basic Auth</strong><br/>Use HTTP Basic Authentication scheme (browser will handle user/password input).</li>
  40. <li><strong>Basic Auth + Passthrough</strong><br/>Pass the credentials of a user authenticated externally via basic auth to the webapp.</li>
  41. </ul>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="settingsTitle">
  46. <label for="auth_basic_realm">Basic Authentication Realm</label>
  47. </td>
  48. <td class="settingsSetting" rowspan="2">
  49. <input name="auth_basic_realm" id="auth_basic_realm" type="Text" maxlength="64" value="<tmpl_var name="auth_basic_realm">" size="30">
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="settingsText">
  54. Specify the realm name to use if Basic Authentication method is used.
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="settingsTitle">
  59. <label for="pagetitle">Default Page Title</label>
  60. </td>
  61. <td class="settingsSetting" rowspan="2">
  62. <input name="pagetitle" id="pagetitle" type="Text" maxlength="64" value="<tmpl_var name="pagetitle">" size="30">
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="settingsText">
  67. Specify the default page title.
  68. </td>
  69. </tr>
  70. <tr>
  71. <td class="settingsTitle">
  72. <label for="enable_personal_settings">Enable Personal Settings</label>
  73. </td>
  74. <td class="settingsSetting" rowspan="2">
  75. <select name="enable_personal_settings" id="enable_personal_settings">
  76. <option value="1">True</option>
  77. <option value="0"
  78. <tmpl_if name="enable_personal_settings" value="0">
  79. selected
  80. </tmpl_if>
  81. >False</option>
  82. </select>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="settingsText">
  87. Allow users to change their personal settings.
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="settingsTitle">
  92. <label for="ui_displayfluxlink">Display Torrentflux-B4rt Site Link</label>
  93. </td>
  94. <td class="settingsSetting" rowspan="2">
  95. <select name="ui_displayfluxlink" id="ui_displayfluxlink">
  96. <option value="1">True</option>
  97. <option value="0"
  98. <tmpl_if name="fluxlink_display" value="0">
  99. selected
  100. </tmpl_if>
  101. >False</option>
  102. </select>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td class="settingsText">
  107. When enabled, will display a small link to the Torrentflux-b4rt website at the bottom of all pages.
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="settingsTitle">
  112. <label for="drivespacebar">Drivespace Bar Style</label>
  113. </td>
  114. <td class="settingsSetting" rowspan="2">
  115. <select name="drivespacebar" id="drivespacebar">
  116. <option value="tf"
  117. <tmpl_if name="drivespacebar" value="tf">
  118. selected
  119. </tmpl_if>
  120. >tf</option>
  121. <option value="xfer"
  122. <tmpl_if name="drivespacebar" value="xfer">
  123. selected
  124. </tmpl_if>
  125. >xfer</option>
  126. </select>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="settingsText">
  131. Select the styling of the drivespace bar in the frontend.
  132. </td>
  133. </tr>
  134. <tr>
  135. <td class="settingsTitle">
  136. <label for="transferStatsType">Transfer Statistics Update Method</label>
  137. </td>
  138. <td class="settingsSetting" rowspan="2">
  139. <select name="transferStatsType" id="transferStatsType">
  140. <option value="standard">HTML Meta Refresh</option>
  141. <option value="ajax"
  142. <tmpl_if name="transferStatsType" value="ajax">
  143. selected
  144. </tmpl_if>
  145. >AJAX Update</option>
  146. </select>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td class="settingsText">
  151. Choose the method used to update the transfer statistics window.
  152. </td>
  153. </tr>
  154. <tr>
  155. <td class="settingsTitle">
  156. <label for="transferStatsUpdate">Transfer Statistics Update Interval</label>
  157. </td>
  158. <td class="settingsSetting" rowspan="2">
  159. <input name="transferStatsUpdate" id="transferStatsUpdate" type="Text" maxlength="3" value="<tmpl_var name="transferStatsUpdate">" size="3">
  160. </td>
  161. </tr>
  162. <tr>
  163. <td class="settingsText">
  164. Specify the interval in seconds between updates in the transfer statistics window.
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="settingsTitle">
  169. <label for="transferHosts">Resolve Hostnames In Transfer Window Hosts Tab</label>
  170. </td>
  171. <td class="settingsSetting" rowspan="2">
  172. <select name="transferHosts" id="transferHosts">
  173. <option value="1">Hostnames</option>
  174. <option value="0"
  175. <tmpl_if name="transferHosts" value="0">
  176. selected
  177. </tmpl_if>
  178. >IPs</option>
  179. </select>
  180. </td>
  181. </tr>
  182. <tr>
  183. <td class="settingsText">
  184. Whether to resolve transfer peer hostnames to IP addresses in the Hosts tab of the transfer window - selecting Hostnames will add load to the server.
  185. </td>
  186. </tr>
  187. <tr>
  188. <td class="settingsTitle">
  189. <label for="servermon_update">Server Monitor Update Interval</label>
  190. </td>
  191. <td class="settingsSetting" rowspan="2">
  192. <input name="servermon_update" id="servermon_update" type="Text" maxlength="3" value="<tmpl_var name="servermon_update">" size="3">
  193. </td>
  194. </tr>
  195. <tr>
  196. <td class="settingsText">
  197. Specify the interval in seconds between updates in the Server Monitor window.
  198. </td>
  199. </tr>
  200. <tr>
  201. <td class="settingsTitle">
  202. <label for="enable_dereferrer">Hide Referer When Following Links</label>
  203. </td>
  204. <td class="settingsSetting" rowspan="2">
  205. <select name="enable_dereferrer" id="enable_dereferrer">
  206. <option value="1">True</option>
  207. <option value="0"
  208. <tmpl_if name="enable_dereferrer" value="0">
  209. selected
  210. </tmpl_if>
  211. >False</option>
  212. </select>
  213. </td>
  214. </tr>
  215. <tr>
  216. <td class="settingsText">
  217. When enabled, referer information will not be forwarded to websites visited by clicking on links within torrentflux-b4rt.
  218. </td>
  219. </tr>
  220. <tr>
  221. <td class="settingsTitle">
  222. <label for="default_theme">Default Theme.</label><br/>
  223. <strong>Note:</strong> This theme will also be used for the login screen when a form based authentication method is used.
  224. </td>
  225. <td class="settingsSetting" rowspan="2">
  226. <select name="default_theme" id="default_theme">
  227. <tmpl_loop name="theme_list">
  228. <option value="<tmpl_var name="arThemes2">" <tmpl_var name="selected">><tmpl_var name="arThemes"></option>
  229. </tmpl_loop>
  230. <optgroup label="Standard TF Themes" style="background-color: #00EC00">
  231. <tmpl_loop name="tfstandard_theme_list">
  232. <option value="<tmpl_var name="arThemes2">" <tmpl_var name="selected"> style="background-color: #FFFFFF"><tmpl_var name="arThemes"></option>
  233. </tmpl_loop>
  234. </optgroup>
  235. </select>
  236. </td>
  237. </tr>
  238. <tr>
  239. <td class="settingsText">
  240. Select the default theme.
  241. </td>
  242. </tr>
  243. <tr>
  244. <td class="settingsTitle">
  245. <label for="default_language">Default Language</label>
  246. </td>
  247. <td class="settingsSetting" rowspan="2">
  248. <select name="default_language" id="default_language">
  249. <tmpl_loop name="lang_list">
  250. <option value="<tmpl_var name="arLanguage">" <tmpl_var name="selected">><tmpl_var name="GetLanguageFromFile"></option>
  251. </tmpl_loop>
  252. </select>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td class="settingsText">
  257. Select the default language.
  258. </td>
  259. </tr>
  260. <tr>
  261. <td class="settingsTitle">
  262. <label for="days_to_keep">Days To Keep Logged Audit Actions</label>
  263. </td>
  264. <td class="settingsSetting" rowspan="2">
  265. <input name="days_to_keep" id="days_to_keep" type="Text" maxlength="3" value="<tmpl_var name="days_to_keep">" size="3">
  266. </td>
  267. </tr>
  268. <tr>
  269. <td class="settingsText">
  270. Number of days that audit actions will be held in the database.
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="settingsTitle">
  275. <label for="minutes_to_keep">Minutes To Keep User Online Status</label>
  276. </td>
  277. <td class="settingsSetting" rowspan="2">
  278. <input name="minutes_to_keep" id="minutes_to_keep" type="Text" maxlength="2" value="<tmpl_var name="minutes_to_keep">" size="2">
  279. </td>
  280. </tr>
  281. <tr>
  282. <td class="settingsText">
  283. Number of minutes after ending a browser session that user status changes to offline.
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="settingsTitle">
  288. <label for="rss_cache_min">Minutes To Cache RSS Feeds</label>
  289. </td>
  290. <td class="settingsSetting" rowspan="2">
  291. <input name="rss_cache_min" id="rss_cache_min" type="Text" maxlength="3" value="<tmpl_var name="rss_cache_min">" size="3">
  292. </td>
  293. </tr>
  294. <tr>
  295. <td class="settingsText">
  296. Number of minutes to cache RSS XML feeds on the server.
  297. </td>
  298. </tr>
  299. <tr>
  300. <td class="settingsTitle">
  301. <label for="enable_tmpl_cache">Enable Template Cache</label>
  302. </td>
  303. <td class="settingsSetting" rowspan="2">
  304. <select name="enable_tmpl_cache" id="enable_tmpl_cache">
  305. <option value="1">True</option>
  306. <option value="0"
  307. <tmpl_if name="enable_tmpl_cache" value="0">
  308. selected
  309. </tmpl_if>
  310. >False</option>
  311. </select>
  312. </td>
  313. </tr>
  314. <tr>
  315. <td class="settingsText">
  316. Enable caching of HTML template files.<br/>
  317. <script language="JavaScript">
  318. function SuperAdmin(name_file) {
  319. window.open (name_file,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600")
  320. }
  321. </script>
  322. <a id="closeLink" href="javascript:SuperAdmin('superadmin.php?m=35')">Clean Template Cache Now</a>
  323. </td>
  324. </tr>
  325. <tr>
  326. <td class="settingsTitle">
  327. <label for="debuglevel">Debug Level</label>
  328. </td>
  329. <td class="settingsSetting" rowspan="2">
  330. <select name="debuglevel" id="debuglevel">
  331. <option value="0"<tmpl_if name="debuglevel" value="0"> selected</tmpl_if>>0</option>
  332. <option value="1"<tmpl_if name="debuglevel" value="1"> selected</tmpl_if>>1</option>
  333. <option value="2"<tmpl_if name="debuglevel" value="2"> selected</tmpl_if>>2</option>
  334. </select>
  335. </td>
  336. </tr>
  337. <tr>
  338. <td class="settingsText">
  339. Set the debug level - higher values increase the debugging output in the logs.
  340. </td>
  341. </tr>
  342. <tr>
  343. <td class="settingsTitle">
  344. <label for="debug_sql">Show SQL Debug Statements</label>
  345. </td>
  346. <td class="settingsSetting" rowspan="2">
  347. <select name="debug_sql" id="debug_sql">
  348. <option value="1">True</option>
  349. <option value="0"
  350. <tmpl_if name="debug_sql" value="0">
  351. selected
  352. </tmpl_if>
  353. >False</option>
  354. </select>
  355. </td>
  356. </tr>
  357. <tr>
  358. <td class="settingsText">
  359. SQL Errors will always be displayed but when this feature is enabled the SQL Statement that caused the error will be displayed as well.
  360. </td>
  361. </tr>
  362. <tr>
  363. <td class="settingsTitle">
  364. </td>
  365. <td class="settingsSetting">
  366. <input type="Submit" value="Update Settings">
  367. </td>
  368. </tr>
  369. </table>
  370. </div>
  371. </form>
  372. <div id="uploadBottom"></div>
  373. <div id="uploadBottomEnd"></div>
  374. <tmpl_include name="inc.subfoot.tmpl">
  375. </div>
  376. </body>
  377. </html>