/gui/themes/default/admin/settings.tpl

https://bitbucket.org/droidzone/i-mscp · Smarty Template · 428 lines · 415 code · 13 blank · 0 comment · 1 complexity · b8518d0430a427950841590e38c709f1 MD5 · raw file

  1. <script type="text/javascript">
  2. /* <![CDATA[ */
  3. $(document).ready(function(){
  4. $('#bruteforce').change(function(){
  5. ($(this).val() == '1') ? $('.display').show() : $('.display').hide();
  6. }).trigger('change');
  7. });
  8. /*]]>*/
  9. </script>
  10. <script>
  11. $(function() {
  12. $(".accordion").accordion({
  13. heightStyle: "content",
  14. collapsible: true
  15. });
  16. });
  17. </script>
  18. <form action="settings.php" method="post" name="frmsettings" id="frmsettings">
  19. <div class="accordion">
  20. <h1><strong>{TR_UPDATES}</strong></h1>
  21. <div style="padding: 0">
  22. <div class="even">
  23. <div class="left"><label for="checkforupdate">{TR_CHECK_FOR_UPDATES}</label></div>
  24. <div class="right">
  25. <select name="checkforupdate" id="checkforupdate">
  26. <option value="0"{CHECK_FOR_UPDATES_SELECTED_OFF}>{TR_DISABLED}</option>
  27. <option value="1"{CHECK_FOR_UPDATES_SELECTED_ON}>{TR_ENABLED}</option>
  28. </select>
  29. </div>
  30. </div>
  31. </div>
  32. <h1><strong>{TR_LOSTPASSWORD}</strong></h1>
  33. <div style="padding: 0">
  34. <div class="even">
  35. <div class="left"><label for="lostpassword">{TR_LOSTPASSWORD}</label></div>
  36. <div class="right">
  37. <select name="lostpassword" id="lostpassword">
  38. <option value="0" {LOSTPASSWORD_SELECTED_OFF}>{TR_DISABLED}</option>
  39. <option value="1" {LOSTPASSWORD_SELECTED_ON}>{TR_ENABLED}</option>
  40. </select>
  41. </div>
  42. </div>
  43. <div class="odd">
  44. <div class="left"><label
  45. for="lostpassword_timeout">{TR_LOSTPASSWORD_TIMEOUT}</label></div>
  46. <div class="right">
  47. <input type="text" name="lostpassword_timeout" id="lostpassword_timeout" value="{LOSTPASSWORD_TIMEOUT_VALUE}"/>
  48. </div>
  49. </div>
  50. </div>
  51. <h1><strong>{TR_PASSWORD_SETTINGS}</strong></h1>
  52. <div style="padding: 0">
  53. <div class="even">
  54. <div class="left"><label for="passwd_strong">{TR_PASSWD_STRONG}</label></div>
  55. <div class="right">
  56. <select name="passwd_strong" id="passwd_strong">
  57. <option value="0" {PASSWD_STRONG_OFF}>{TR_DISABLED}</option>
  58. <option value="1" {PASSWD_STRONG_ON}>{TR_ENABLED}</option>
  59. </select>
  60. </div>
  61. <div class="odd" style="width: 100%">
  62. <div class="left"><label for="passwd_chars">{TR_PASSWD_CHARS}</label></div>
  63. <div class="right">
  64. <input type="text" name="passwd_chars" id="passwd_chars" value="{PASSWD_CHARS}" maxlength="2"/>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <h1><strong>{TR_BRUTEFORCE}</strong></h1>
  70. <div style="padding: 0">
  71. <div class="even">
  72. <div class="left"><label for="bruteforce">{TR_BRUTEFORCE}</label></div>
  73. <div class="right">
  74. <select name="bruteforce" id="bruteforce">
  75. <option value="0" {BRUTEFORCE_SELECTED_OFF}>{TR_DISABLED}</option>
  76. <option value="1" {BRUTEFORCE_SELECTED_ON}>{TR_ENABLED}</option>
  77. </select>
  78. </div>
  79. </div>
  80. <div class="odd">
  81. <div class="left"><label for="bruteforce_between">{TR_BRUTEFORCE_BETWEEN}</label></div>
  82. <div class="right">
  83. <select name="bruteforce_between" id="bruteforce_between">
  84. <option value="0" {BRUTEFORCE_BETWEEN_SELECTED_OFF}>{TR_DISABLED}</option>
  85. <option value="1" {BRUTEFORCE_BETWEEN_SELECTED_ON}>{TR_ENABLED}</option>
  86. </select>
  87. </div>
  88. </div>
  89. <div class="even">
  90. <div class="left"><label for="bruteforce_max_login">{TR_BRUTEFORCE_MAX_LOGIN}</label></div>
  91. <div class="right">
  92. <input type="text" name="bruteforce_max_login" id="bruteforce_max_login" value="{BRUTEFORCE_MAX_LOGIN_VALUE}" maxlength="3"/>
  93. </div>
  94. </div>
  95. <div class="odd">
  96. <div class="left"><label for="bruteforce_block_time">{TR_BRUTEFORCE_BLOCK_TIME}</label></div>
  97. <div class="right">
  98. <input name="bruteforce_block_time" id="bruteforce_block_time" type="text" value="{BRUTEFORCE_BLOCK_TIME_VALUE}" maxlength="3"/>
  99. </div>
  100. </div>
  101. <div class="even">
  102. <div class="left"><label for="bruteforce_between_time">{TR_BRUTEFORCE_BETWEEN_TIME}</label></div>
  103. <div class="right">
  104. <input name="bruteforce_between_time" id="bruteforce_between_time" type="text" value="{BRUTEFORCE_BETWEEN_TIME_VALUE}" maxlength="3"/>
  105. </div>
  106. </div>
  107. <div class="odd">
  108. <div class="left"><label for="bruteforce_max_attempts_before_wait">{TR_BRUTEFORCE_MAX_ATTEMPTS_BEFORE_WAIT}</label>
  109. </div>
  110. <div class="right">
  111. <input name="bruteforce_max_attempts_before_wait" id="bruteforce_max_attempts_before_wait" type="text" value="{BRUTEFORCE_MAX_ATTEMPTS_BEFORE_WAIT}" maxlength="3"/>
  112. </div>
  113. </div>
  114. <div class="even">
  115. <div class="left"><label for="bruteforce_max_capcha">{TR_BRUTEFORCE_MAX_CAPTCHA}</label></div>
  116. <div class="right">
  117. <input name="bruteforce_max_capcha" id="bruteforce_max_capcha" type="text" value="{BRUTEFORCE_MAX_CAPTCHA}" maxlength="3"/>
  118. </div>
  119. </div>
  120. </div>
  121. <h1><strong>{TR_DNAMES_VALIDATION_SETTINGS}</strong></h1>
  122. <div style="padding: 0">
  123. <div class="even">
  124. <div class="left">
  125. <label for="tld_strict_validation">{TR_TLD_STRICT_VALIDATION}</label>
  126. <span class="icon i_help" title="{TR_TLD_STRICT_VALIDATION_HELP}">{TR_HELP}</span>
  127. </div>
  128. <div class="right">
  129. <select name="tld_strict_validation" id="tld_strict_validation">
  130. <option value="0" {TLD_STRICT_VALIDATION_OFF}>{TR_DISABLED}</option>
  131. <option value="1" {TLD_STRICT_VALIDATION_ON}>{TR_ENABLED}</option>
  132. </select>
  133. </div>
  134. </div>
  135. <div class="odd">
  136. <div class="left">
  137. <label for="sld_strict_validation">{TR_SLD_STRICT_VALIDATION}</label>
  138. <span class="icon i_help" title="{TR_SLD_STRICT_VALIDATION_HELP}">{TR_HELP}</span>
  139. </div>
  140. <div class="right">
  141. <select name="sld_strict_validation" id="sld_strict_validation">
  142. <option value="0" {SLD_STRICT_VALIDATION_OFF}>{TR_DISABLED}</option>
  143. <option value="1" {SLD_STRICT_VALIDATION_ON}>{TR_ENABLED}</option>
  144. </select>
  145. </div>
  146. </div>
  147. <div class="even">
  148. <div class="left"><label for="max_dnames_labels">{TR_MAX_DNAMES_LABELS}</label>
  149. </div>
  150. <div class="right">
  151. <input name="max_dnames_labels" id="max_dnames_labels" type="text" value="{MAX_DNAMES_LABELS_VALUE}" maxlength="2"/>
  152. </div>
  153. </div>
  154. <div class="odd">
  155. <div class="left"><label
  156. for="max_subdnames_labels">{TR_MAX_SUBDNAMES_LABELS}</label></div>
  157. <div class="right">
  158. <input name="max_subdnames_labels" id="max_subdnames_labels" type="text" value="{MAX_SUBDNAMES_LABELS_VALUE}" maxlength="2"/>
  159. </div>
  160. </div>
  161. </div>
  162. <h1><strong>{TR_MAIL_SETTINGS}</strong></h1>
  163. <div style="padding: 0">
  164. <div class="even">
  165. <div class="left"><label for="create_default_email_addresses">{TR_CREATE_DEFAULT_EMAIL_ADDRESSES}</label></div>
  166. <div class="right">
  167. <select name="create_default_email_addresses" id="create_default_email_addresses">
  168. <option value="0" {CREATE_DEFAULT_EMAIL_ADDRESSES_OFF}>{TR_DISABLED}</option>
  169. <option value="1" {CREATE_DEFAULT_EMAIL_ADDRESSES_ON}>{TR_ENABLED}</option>
  170. </select>
  171. </div>
  172. </div>
  173. <div class="odd">
  174. <div class="left"><label for="count_default_email_addresses">{TR_COUNT_DEFAULT_EMAIL_ADDRESSES}</label></div>
  175. <div class="right">
  176. <select name="count_default_email_addresses" id="count_default_email_addresses">
  177. <option value="0" {COUNT_DEFAULT_EMAIL_ADDRESSES_OFF}>{TR_DISABLED}</option>
  178. <option value="1" {COUNT_DEFAULT_EMAIL_ADDRESSES_ON}>{TR_ENABLED}</option>
  179. </select>
  180. </div>
  181. </div>
  182. <div class="even">
  183. <div class="left"><label for="hard_mail_suspension">{TR_HARD_MAIL_SUSPENSION}</label></div>
  184. <div class="right">
  185. <select name="hard_mail_suspension" id="hard_mail_suspension">
  186. <option value="0" {HARD_MAIL_SUSPENSION_OFF}>{TR_DISABLED}</option>
  187. <option value="1" {HARD_MAIL_SUSPENSION_ON}>{TR_ENABLED}</option>
  188. </select>
  189. </div>
  190. </div>
  191. </div>
  192. <h1><strong>{TR_PHPINI_BASE_SETTINGS}</strong></h1>
  193. <div style="padding: 0">
  194. <div class="even">
  195. <div class="left"><label for="phpini_allow_url_fopen">{TR_PHPINI_ALLOW_URL_FOPEN}</label></div>
  196. <div class="right">
  197. <select name="phpini_allow_url_fopen" id="phpini_allow_url_fopen">
  198. <option value="off" {PHPINI_ALLOW_URL_FOPEN_OFF}>{TR_DISABLED}</option>
  199. <option value="on" {PHPINI_ALLOW_URL_FOPEN_ON}>{TR_ENABLED}</option>
  200. </select>
  201. </div>
  202. </div>
  203. <div class="odd">
  204. <div class="left"><label for="phpini_display_errors">{TR_PHPINI_DISPLAY_ERRORS}</label></div>
  205. <div class="right">
  206. <select name="phpini_display_errors" id="phpini_display_errors">
  207. <option value="off" {PHPINI_DISPLAY_ERRORS_OFF}>{TR_DISABLED}</option>
  208. <option value="on" {PHPINI_DISPLAY_ERRORS_ON}>{TR_ENABLED}</option>
  209. </select>
  210. </div>
  211. </div>
  212. <div class="even">
  213. <div class="left"><label for="phpini_error_reporting">{TR_PHPINI_ERROR_REPORTING}</label></div>
  214. <div class="right">
  215. <select name="phpini_error_reporting" id="phpini_error_reporting">
  216. <option value="E_ALL &amp; ~E_NOTICE" {PHPINI_ERROR_REPORTING_0}>{TR_PHPINI_ERROR_REPORTING_DEFAULT}</option>
  217. <option value="E_ALL | E_STRICT" {PHPINI_ERROR_REPORTING_1}>{TR_PHPINI_ERROR_REPORTING_DEVELOPEMENT}</option>
  218. <option value="E_ALL &amp; ~E_DEPRECATED" {PHPINI_ERROR_REPORTING_2}>{TR_PHPINI_ERROR_REPORTING_PRODUCTION}</option>
  219. <option value="0" {PHPINI_ERROR_REPORTING_3}>{TR_PHPINI_ERROR_REPORTING_NONE}</option>
  220. </select>
  221. </div>
  222. </div>
  223. <div class="odd">
  224. <div class="left"><label for="phpini_post_max_size">{TR_PHPINI_POST_MAX_SIZE}</label></div>
  225. <div class="right">
  226. <input name="phpini_post_max_size" id="phpini_post_max_size" type="text" value="{PHPINI_POST_MAX_SIZE}"/> {TR_MIB}
  227. </div>
  228. </div>
  229. <div class="even">
  230. <div class="left"><label for="phpini_upload_max_filesize">{TR_PHPINI_UPLOAD_MAX_FILESIZE}</label>
  231. </div>
  232. <div class="right">
  233. <input name="phpini_upload_max_filesize" id="phpini_upload_max_filesize" type="text" value="{PHPINI_UPLOAD_MAX_FILESIZE}"/> {TR_MIB}
  234. </div>
  235. </div>
  236. <div class="odd">
  237. <div class="left"><label for="phpini_max_execution_time">{TR_PHPINI_MAX_EXECUTION_TIME}</label>
  238. </div>
  239. <div class="right">
  240. <input name="phpini_max_execution_time" id="phpini_max_execution_time" type="text" value="{PHPINI_MAX_EXECUTION_TIME}"/> {TR_SEC}
  241. </div>
  242. </div>
  243. <div class="even">
  244. <div class="left"><label for="phpini_max_input_time">{TR_PHPINI_MAX_INPUT_TIME}</label></div>
  245. <div class="right">
  246. <input name="phpini_max_input_time" id="phpini_max_input_time" type="text" value="{PHPINI_MAX_INPUT_TIME}"/> {TR_SEC}
  247. </div>
  248. </div>
  249. <div class="odd">
  250. <div class="left"><label for="phpini_memory_limit">{TR_PHPINI_MEMORY_LIMIT}</label></div>
  251. <div class="right">
  252. <input name="phpini_memory_limit" id="phpini_memory_limit" type="text" value="{PHPINI_MEMORY_LIMIT}"/> {TR_MIB}
  253. </div>
  254. </div>
  255. <div class="even">
  256. <div class="left">
  257. <label for="phpini_open_basedir">{TR_PHPINI_OPEN_BASEDIR}</label>
  258. <span class="icon i_help" title={TR_PHPINI_OPEN_BASEDIR_TOOLTIP}>{TR_HELP}</span>
  259. </div>
  260. <div class="right">
  261. <input name="phpini_open_basedir" id="phpini_open_basedir" type="text" value="{PHPINI_OPEN_BASEDIR}"/>
  262. </div>
  263. </div>
  264. <!-- BDP: php_editor_disable_functions_block -->
  265. <div class="odd">
  266. <div class="left"><label>{TR_PHPINI_DISABLE_FUNCTIONS}</label></div>
  267. <div class="right">
  268. <div class="radio">
  269. <input name="show_source" id="show_source" type="checkbox" {SHOW_SOURCE} value="show_source"/>
  270. <label for="show_source">show_source</label>
  271. <input name="system" id="system" type="checkbox" {SYSTEM} value="system"/>
  272. <label for="system">system</label>
  273. <input name="shell_exec" id="shell_exec" type="checkbox" {SHELL_EXEC} value="shell_exec"/>
  274. <label for="shell_exec">shell_exec</label>
  275. <input name="passthru" id="passthru" type="checkbox" {PASSTHRU} value="passthru"/>
  276. <label for="passthru">passthru</label>
  277. <input name="exec" id="exec" type="checkbox" {EXEC} value="exec"/>
  278. <label for="exec">exec</label>
  279. <input name="phpinfo" id="phpinfo" type="checkbox" {PHPINFO} value="phpinfo"/>
  280. <label for="phpinfo">phpinfo</label>
  281. <input name="shell" id="shell" type="checkbox" {SHELL} value="shell"/>
  282. <label for="shell">shell</label>
  283. <input name="symlink" id="symlink" type="checkbox" {SYMLINK} value="symlink"/>
  284. <label for="symlink">symlink</label>
  285. </div>
  286. </div>
  287. </div>
  288. <!-- EDP: php_editor_disable_functions_block -->
  289. </div>
  290. <h1><strong>{TR_ORDERS_SETTINGS}</strong></h1>
  291. <div style="padding: 0">
  292. <div class="even">
  293. <div class="left"><label for="ordersExpireTime">{TR_ORDERS_EXPIRE_TIME}</label></div>
  294. <div class="right">
  295. <input type="text" name="ordersExpireTime" id="ordersExpireTime" value="{ORDERS_EXPIRATION_TIME_VALUE}"/>
  296. </div>
  297. </div>
  298. <div class="odd">
  299. <div class="left"><label for="coid">{TR_CUSTOM_ORDERPANEL_ID}</label></div>
  300. <div class="right">
  301. <input type="text" name="coid" id="coid" value="{CUSTOM_ORDERPANEL_ID}"/>
  302. </div>
  303. </div>
  304. </div>
  305. <h1><strong>{TR_OTHER_SETTINGS}</strong></h1>
  306. <div style="padding: 0">
  307. <div class="even">
  308. <div class="left"><label for="def_language">{TR_USER_INITIAL_LANG}</label></div>
  309. <div class="right">
  310. <select name="def_language" id="def_language">
  311. <!-- BDP: def_language -->
  312. <option value="{LANG_VALUE}"{LANG_SELECTED}>{LANG_NAME}</option>
  313. <!-- EDP: def_language -->
  314. </select>
  315. </div>
  316. </div>
  317. <div class="odd">
  318. <div class="left"><label for="support_system">{TR_SUPPORT_SYSTEM}</label></div>
  319. <div class="right">
  320. <select name="support_system" id="support_system">
  321. <option value="0" {SUPPORT_SYSTEM_SELECTED_OFF}>{TR_DISABLED}</option>
  322. <option value="1" {SUPPORT_SYSTEM_SELECTED_ON}>{TR_ENABLED}</option>
  323. </select>
  324. </div>
  325. </div>
  326. <div class="even">
  327. <div class="left"><label for="compress_output">{TR_COMPRESS_OUTPUT}</label></div>
  328. <div class="right">
  329. <select name="compress_output" id="compress_output">
  330. <option value="0" {COMPRESS_OUTPUT_OFF}>{TR_DISABLED}</option>
  331. <option value="1" {COMPRESS_OUTPUT_ON}>{TR_ENABLED}</option>
  332. </select>
  333. </div>
  334. </div>
  335. <div class="odd">
  336. <div class="left"><label for="show_compression_size">{TR_SHOW_COMPRESSION_SIZE}</label></div>
  337. <div class="right">
  338. <select name="show_compression_size" id="show_compression_size">
  339. <option value="0" {SHOW_COMPRESSION_SIZE_SELECTED_OFF}>{TR_DISABLED}</option>
  340. <option value="1" {SHOW_COMPRESSION_SIZE_SELECTED_ON}>{TR_ENABLED}</option>
  341. </select>
  342. </div>
  343. </div>
  344. <div class="even">
  345. <div class="left"><label for="hosting_plan_level">{TR_HOSTING_PLANS_LEVEL}</label></div>
  346. <div class="right">
  347. <select name="hosting_plan_level" id="hosting_plan_level">
  348. <option value="admin" {HOSTING_PLANS_LEVEL_ADMIN}>{TR_ADMIN}</option>
  349. <option value="reseller" {HOSTING_PLANS_LEVEL_RESELLER}>{TR_RESELLER}</option>
  350. </select>
  351. </div>
  352. </div>
  353. <div class="odd">
  354. <div class="left"><label for="domain_rows_per_page">{TR_DOMAIN_ROWS_PER_PAGE}</label></div>
  355. <div class="right">
  356. <input name="domain_rows_per_page" id="domain_rows_per_page" type="text"
  357. value="{DOMAIN_ROWS_PER_PAGE}" maxlength="3"/>
  358. </div>
  359. </div>
  360. <div class="even">
  361. <div class="left"><label for="log_level">{TR_LOG_LEVEL}</label></div>
  362. <div class="right">
  363. <select name="log_level" id="log_level">
  364. <option value="E_USER_OFF" {LOG_LEVEL_SELECTED_OFF}>{TR_E_USER_OFF}</option>
  365. <option value="E_USER_ERROR" {LOG_LEVEL_SELECTED_ERROR}>{TR_E_USER_ERROR}</option>
  366. <option value="E_USER_WARNING" {LOG_LEVEL_SELECTED_WARNING}>{TR_E_USER_WARNING}</option>
  367. <option value="E_USER_NOTICE" {LOG_LEVEL_SELECTED_NOTICE}>{TR_E_USER_NOTICE}</option>
  368. </select>
  369. </div>
  370. </div>
  371. <div class="odd">
  372. <div class="left"><label
  373. for="prevent_external_login_admin">{TR_PREVENT_EXTERNAL_LOGIN_ADMIN}</label></div>
  374. <div class="right">
  375. <select name="prevent_external_login_admin" id="prevent_external_login_admin">
  376. <option value="0" {PREVENT_EXTERNAL_LOGIN_ADMIN_SELECTED_OFF}>{TR_DISABLED}</option>
  377. <option value="1" {PREVENT_EXTERNAL_LOGIN_ADMIN_SELECTED_ON}>{TR_ENABLED}</option>
  378. </select>
  379. </div>
  380. </div>
  381. <div class="even">
  382. <div class="left"><label
  383. for="prevent_external_login_reseller">{TR_PREVENT_EXTERNAL_LOGIN_RESELLER}</label></div>
  384. <div class="right">
  385. <select name="prevent_external_login_reseller" id="prevent_external_login_reseller">
  386. <option value="0" {PREVENT_EXTERNAL_LOGIN_RESELLER_SELECTED_OFF}>{TR_DISABLED}</option>
  387. <option value="1" {PREVENT_EXTERNAL_LOGIN_RESELLER_SELECTED_ON}>{TR_ENABLED}</option>
  388. </select>
  389. </div>
  390. </div>
  391. <div class="odd">
  392. <div class="left"><label for="prevent_external_login_client">{TR_PREVENT_EXTERNAL_LOGIN_CLIENT}</label></div>
  393. <div class="right">
  394. <select name="prevent_external_login_client" id="prevent_external_login_client">
  395. <option value="0" {PREVENT_EXTERNAL_LOGIN_CLIENT_SELECTED_OFF}>{TR_DISABLED}</option>
  396. <option value="1" {PREVENT_EXTERNAL_LOGIN_CLIENT_SELECTED_ON}>{TR_ENABLED}</option>
  397. </select>
  398. </div>
  399. </div>
  400. <div class="even" >
  401. <div class="left"><label for="enableSSL">{TR_ENABLE_SSL}</label></div>
  402. <div class="right">
  403. <select name="enableSSL" id="enableSSL">
  404. <option value="0"{ENABLE_SSL_OFF}>{TR_DISABLED}</option>
  405. <option value="1"{ENABLE_SSL_ON}>{TR_ENABLED}</option>
  406. </select>
  407. </div>
  408. </div>
  409. </div>
  410. </div>
  411. <div class="buttons">
  412. <input name="Submit" type="submit" class="button" value="{TR_APPLY_CHANGES}"/>
  413. <input type="hidden" name="uaction" value="apply"/>
  414. </div>
  415. </form>