defines.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. <?php
  2. /**
  3. * Administrator plugin - Option definitions
  4. *
  5. * @author Philippe Mingo
  6. * @copyright &copy; 1999-2007 The SquirrelMail Project Team
  7. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8. * @version $Id$
  9. * @package plugins
  10. * @subpackage administrator
  11. */
  12. /** Define constants for the various option types. */
  13. define('SMOPT_TYPE_UNDEFINED', -1);
  14. define('SMOPT_TYPE_STRING', 0);
  15. define('SMOPT_TYPE_STRLIST', 1);
  16. define('SMOPT_TYPE_TEXTAREA', 2);
  17. define('SMOPT_TYPE_INTEGER', 3);
  18. define('SMOPT_TYPE_FLOAT', 4);
  19. define('SMOPT_TYPE_BOOLEAN', 5);
  20. define('SMOPT_TYPE_HIDDEN', 6);
  21. define('SMOPT_TYPE_COMMENT', 7);
  22. define('SMOPT_TYPE_NUMLIST', 8);
  23. define('SMOPT_TYPE_TITLE', 9);
  24. define('SMOPT_TYPE_THEME', 10);
  25. define('SMOPT_TYPE_PLUGINS', 11);
  26. define('SMOPT_TYPE_LDAP', 12);
  27. define('SMOPT_TYPE_CUSTOM', 13);
  28. define('SMOPT_TYPE_EXTERNAL', 32);
  29. define('SMOPT_TYPE_PATH',33);
  30. /**
  31. * Returns reformated aTemplateSet array data for option selection
  32. * @return array template selection options
  33. * @since 1.5.1
  34. */
  35. function adm_template_options() {
  36. global $aTemplateSet;
  37. $ret = array();
  38. foreach ($aTemplateSet as $iTemplateID => $aTemplate) {
  39. $ret[$aTemplate['ID']] = $aTemplate['NAME'];
  40. }
  41. return $ret;
  42. }
  43. global $languages;
  44. $language_values = array( );
  45. foreach ($languages as $lang_key => $lang_attributes) {
  46. if (isset($lang_attributes['NAME'])) {
  47. $language_values[$lang_key] = $lang_attributes['NAME'];
  48. }
  49. }
  50. asort( $language_values );
  51. $language_values = array_merge(array('' => _("Default")), $language_values);
  52. $left_size_values = array();
  53. for ($lsv = 100; $lsv <= 300; $lsv += 10) {
  54. $left_size_values[$lsv] = "$lsv " . _("pixels");
  55. }
  56. $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
  57. 'type' => SMOPT_TYPE_COMMENT,
  58. 'size' => 7 ),
  59. 'SM_ver' => array( 'name' => _("SquirrelMail Version"),
  60. 'type' => SMOPT_TYPE_EXTERNAL,
  61. 'value' => SM_VERSION ),
  62. 'PHP_ver' => array( 'name' => _("PHP Version"),
  63. 'type' => SMOPT_TYPE_EXTERNAL,
  64. 'value' => phpversion() ),
  65. /* --------------------------------------------------------*/
  66. 'Group1' => array( 'name' => _("Organization Preferences"),
  67. 'type' => SMOPT_TYPE_TITLE ),
  68. '$org_name' => array( 'name' => _("Organization Name"),
  69. 'type' => SMOPT_TYPE_STRING,
  70. 'size' => 40 ),
  71. '$org_logo' => array( 'name' => _("Organization Logo"),
  72. 'type' => SMOPT_TYPE_PATH,
  73. 'size' => 40,
  74. 'default' => '../images/sm_logo.png'),
  75. '$org_logo_width' => array( 'name' => _("Organization Logo Width"),
  76. 'type' => SMOPT_TYPE_STRING,
  77. 'size' => 5,
  78. 'default' => 0),
  79. '$org_logo_height' => array( 'name' => _("Organization Logo Height"),
  80. 'type' => SMOPT_TYPE_STRING,
  81. 'size' => 5,
  82. 'default' => 0),
  83. '$org_title' => array( 'name' => _("Organization Title"),
  84. 'type' => SMOPT_TYPE_STRING,
  85. 'size' => 40 ),
  86. '$signout_page' => array( 'name' => _("Signout Page"),
  87. 'type' => SMOPT_TYPE_PATH,
  88. 'size' => 40 ),
  89. '$provider_uri' => array( 'name' => _("Provider Link URI"),
  90. 'type' => SMOPT_TYPE_STRING ),
  91. '$provider_name' => array( 'name' => _("Provider Name"),
  92. 'type' => SMOPT_TYPE_STRING ),
  93. '$frame_top' => array( 'name' => _("Top Frame"),
  94. 'type' => SMOPT_TYPE_STRING,
  95. 'size' => 40,
  96. 'default' => '_top' ),
  97. /* --------------------------------------------------------*/
  98. 'Group2' => array( 'name' => _("Server Settings"),
  99. 'type' => SMOPT_TYPE_TITLE ),
  100. '$domain' => array( 'name' => _("Mail Domain"),
  101. 'type' => SMOPT_TYPE_STRING,
  102. 'size' => 40 ),
  103. '$imapServerAddress' => array( 'name' => _("IMAP Server Address"),
  104. 'type' => SMOPT_TYPE_STRING,
  105. 'size' => 40 ),
  106. '$imapPort' => array( 'name' => _("IMAP Server Port"),
  107. 'type' => SMOPT_TYPE_INTEGER ),
  108. '$imap_server_type' => array( 'name' => _("IMAP Server Type"),
  109. 'type' => SMOPT_TYPE_STRLIST,
  110. 'posvals' => array( 'cyrus' => _("Cyrus IMAP server"),
  111. 'uw' => _("University of Washington's IMAP server"),
  112. 'exchange' => _("Microsoft Exchange IMAP server"),
  113. 'courier' => _("Courier IMAP server"),
  114. 'macosx' => _("Mac OS X Mailserver"),
  115. 'hmailserver' => _("hMailServer IMAP server"),
  116. 'mercury32' => _("Mercury/32 IMAP server"),
  117. 'bincimap' => _("Binc IMAP server"),
  118. 'dovecot' => _("Dovecot IMAP server"),
  119. 'other' => _("Not one of the above servers") ) ),
  120. '$optional_delimiter' => array( 'name' => _("IMAP Folder Delimiter"),
  121. 'type' => SMOPT_TYPE_STRING,
  122. 'comment' => _("Use &quot;detect&quot; to auto-detect."),
  123. 'size' => 10,
  124. 'default' => 'detect' ),
  125. '$use_imap_tls' => array( 'name' => _("IMAP Connection Security"),
  126. 'type' => SMOPT_TYPE_STRLIST,
  127. 'posvals' => array( 0 => _("Plain text connection"),
  128. 1 => _("Secure IMAP (TLS) connection"),
  129. 2 => _("IMAP STARTTLS connection")),
  130. 'comment' => _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
  131. 'default' => 0 ),
  132. '$imap_auth_mech' => array( 'name' => _("IMAP Authentication Type"),
  133. 'type' => SMOPT_TYPE_STRLIST,
  134. 'posvals' => array('login' => _("IMAP login"),
  135. 'cram-md5' => 'CRAM-MD5',
  136. 'digest-md5' => 'DIGEST-MD5'),
  137. 'default' => 'login' ),
  138. '$useSendmail' => array( 'name' => _("Use Sendmail Binary"),
  139. 'type' => SMOPT_TYPE_BOOLEAN,
  140. 'comment' => _("Choose &quot;no&quot; for SMTP") ),
  141. '$sendmail_path' => array( 'name' => _("Sendmail Path"),
  142. 'type' => SMOPT_TYPE_STRING,
  143. 'size' => 40 ),
  144. '$sendmail_args' => array( 'name' => _("Sendmail Arguments"),
  145. 'type' => SMOPT_TYPE_STRING,
  146. 'size' => 40 ),
  147. '$smtpServerAddress' => array( 'name' => _("SMTP Server Address"),
  148. 'type' => SMOPT_TYPE_STRING,
  149. 'size' => 40 ),
  150. '$smtpPort' => array( 'name' => _("SMTP Server Port"),
  151. 'type' => SMOPT_TYPE_INTEGER ),
  152. '$use_smtp_tls' => array( 'name' => _("SMTP Connection Security"),
  153. 'type' => SMOPT_TYPE_STRLIST,
  154. 'posvals' => array( 0 => _("Plain text connection"),
  155. 1 => _("Secure IMAP (TLS) connection"),
  156. 2 => _("IMAP STARTTLS connection")),
  157. 'comment' => _("Requires higher PHP version and special functions. See SquirrelMail documentation."),
  158. 'default' => 0 ),
  159. '$smtp_auth_mech' => array( 'name' => _("SMTP Authentication Type"),
  160. 'type' => SMOPT_TYPE_STRLIST,
  161. 'posvals' => array('none' => _("No SMTP auth"),
  162. 'login' => _("Login (plain text)"),
  163. 'cram-md5' => 'CRAM-MD5',
  164. 'digest-md5' => 'DIGEST-MD5'),
  165. 'default' => 'none'),
  166. '$smtp_sitewide_user' => array( 'name' => _("Custom SMTP AUTH username"),
  167. 'type' => SMOPT_TYPE_STRING,
  168. 'size' => 40 ),
  169. '$smtp_sitewide_pass' => array( 'name' => _("Custom SMTP AUTH password"),
  170. 'type' => SMOPT_TYPE_STRING,
  171. 'size' => 40 ),
  172. '$pop_before_smtp' => array( 'name' => _("POP3 Before SMTP?"),
  173. 'type' => SMOPT_TYPE_BOOLEAN,
  174. 'default' => false ),
  175. '$encode_header_key' => array( 'name' => _("Header Encryption Key"),
  176. 'type' => SMOPT_TYPE_STRING ),
  177. '$invert_time' => array( 'name' => _("Invert Time"),
  178. 'type' => SMOPT_TYPE_BOOLEAN ),
  179. /* --------------------------------------------------------*/
  180. 'Group3' => array( 'name' => _("Folders Defaults"),
  181. 'type' => SMOPT_TYPE_TITLE ),
  182. '$default_folder_prefix' => array( 'name' => _("Default Folder Prefix"),
  183. 'type' => SMOPT_TYPE_STRING,
  184. 'size' => 40 ),
  185. '$show_prefix_option' => array( 'name' => _("Show Folder Prefix Option"),
  186. 'type' => SMOPT_TYPE_BOOLEAN ),
  187. '$trash_folder' => array( 'name' => _("Trash Folder"),
  188. 'type' => SMOPT_TYPE_STRING,
  189. 'size' => 40 ),
  190. '$sent_folder' => array( 'name' => _("Sent Folder"),
  191. 'type' => SMOPT_TYPE_STRING,
  192. 'size' => 40 ),
  193. '$draft_folder' => array( 'name' => _("Draft Folder"),
  194. 'type' => SMOPT_TYPE_STRING,
  195. 'size' => 40 ),
  196. '$default_move_to_trash' => array( 'name' => _("By default, move to trash"),
  197. 'type' => SMOPT_TYPE_BOOLEAN ),
  198. '$default_move_to_sent' => array( 'name' => _("By default, move to sent"),
  199. 'type' => SMOPT_TYPE_BOOLEAN ),
  200. '$default_save_as_draft' => array( 'name' => _("By default, save as draft"),
  201. 'type' => SMOPT_TYPE_BOOLEAN ),
  202. '$list_special_folders_first' => array( 'name' => _("List Special Folders First"),
  203. 'type' => SMOPT_TYPE_BOOLEAN ),
  204. '$use_special_folder_color' => array( 'name' => _("Show Special Folders Color"),
  205. 'type' => SMOPT_TYPE_BOOLEAN ),
  206. '$auto_expunge' => array( 'name' => _("Auto Expunge"),
  207. 'type' => SMOPT_TYPE_BOOLEAN ),
  208. '$default_sub_of_inbox' => array( 'name' => _("Default Sub. of INBOX"),
  209. 'type' => SMOPT_TYPE_BOOLEAN ),
  210. '$show_contain_subfolders_option' => array( 'name' => _("Show 'Contain Sub.' Option"),
  211. 'type' => SMOPT_TYPE_BOOLEAN ),
  212. '$default_unseen_notify' => array( 'name' => _("Default Unseen Notify"),
  213. 'type' => SMOPT_TYPE_NUMLIST,
  214. 'posvals' => array( SMPREF_UNSEEN_NONE => _("No Notification"),
  215. SMPREF_UNSEEN_INBOX => _("Only INBOX"),
  216. SMPREF_UNSEEN_ALL => _("All Folders")) ),
  217. '$default_unseen_type' => array( 'name' => _("Default Unseen Type"),
  218. 'type' => SMOPT_TYPE_NUMLIST ,
  219. 'posvals' => array( SMPREF_UNSEEN_ONLY => _("Only Unseen"),
  220. SMPREF_UNSEEN_TOTAL => _("Unseen and Total") ) ),
  221. '$auto_create_special' => array( 'name' => _("Auto Create Special Folders"),
  222. 'type' => SMOPT_TYPE_BOOLEAN ),
  223. '$delete_folder' => array( 'name' => _("Auto delete folders"),
  224. 'type' => SMOPT_TYPE_BOOLEAN ),
  225. '$noselect_fix_enable' => array( 'name' => _("Enable /NoSelect folder fix"),
  226. 'type' => SMOPT_TYPE_BOOLEAN,
  227. 'default' => false),
  228. /* --------------------------------------------------------*/
  229. 'Group4' => array( 'name' => _("General Options"),
  230. 'type' => SMOPT_TYPE_TITLE ),
  231. '$data_dir' => array( 'name' => _("Data Directory"),
  232. 'type' => SMOPT_TYPE_PATH,
  233. 'size' => 40 ),
  234. '$attachment_dir' => array( 'name' => _("Temp Directory"),
  235. 'type' => SMOPT_TYPE_PATH,
  236. 'size' => 40 ),
  237. '$dir_hash_level' => array( 'name' => _("Hash Level"),
  238. 'type' => SMOPT_TYPE_NUMLIST,
  239. 'posvals' => array( 0 => _("Hash Disabled"),
  240. 1 => _("Low"),
  241. 2 => _("Moderate"),
  242. 3 => _("Medium"),
  243. 4 => _("High") ) ),
  244. '$default_left_size' => array( 'name' => _("Default Left Size"),
  245. 'type' => SMOPT_TYPE_NUMLIST,
  246. 'posvals' => $left_size_values ),
  247. '$force_username_lowercase' => array( 'name' => _("Usernames in Lowercase"),
  248. 'type' => SMOPT_TYPE_BOOLEAN ),
  249. '$default_use_priority' => array( 'name' => _("Allow use of priority"),
  250. 'type' => SMOPT_TYPE_BOOLEAN ),
  251. '$hide_sm_attributions' => array( 'name' => _("Hide SM attributions"),
  252. 'type' => SMOPT_TYPE_BOOLEAN ),
  253. '$default_use_mdn' => array( 'name' => _("Enable use of delivery receipts"),
  254. 'type' => SMOPT_TYPE_BOOLEAN ),
  255. '$edit_identity' => array( 'name' => _("Allow editing of identities"),
  256. 'type' => SMOPT_TYPE_BOOLEAN ),
  257. '$edit_name' => array( 'name' => _("Allow editing of full name"),
  258. 'type' => SMOPT_TYPE_BOOLEAN ),
  259. '$hide_auth_header' => array( 'name' => _("Remove username from headers"),
  260. 'comment' => _("Used only when identities can't be modified"),
  261. 'type' => SMOPT_TYPE_BOOLEAN ),
  262. '$disable_server_sort' => array( 'name' => _("Disable server-side sorting"),
  263. 'type' => SMOPT_TYPE_BOOLEAN,
  264. 'default' => false ),
  265. '$disable_thread_sort' => array( 'name' => _("Disable server-side thread sorting"),
  266. 'type' => SMOPT_TYPE_BOOLEAN,
  267. 'default' => false ),
  268. '$allow_charset_search' => array( 'name' => _("Allow server charset search"),
  269. 'type' => SMOPT_TYPE_BOOLEAN,
  270. 'default' => false ),
  271. '$allow_advanced_search' => array( 'name' => _("Search functions"),
  272. 'type' => SMOPT_TYPE_NUMLIST,
  273. 'posvals' => array( 0 => _("Only basic search"),
  274. 1 => _("Only advanced search"),
  275. 2 => _("Both search functions") ),
  276. 'default' => 0 ),
  277. '$session_name' => array( 'name' => _("PHP session name"),
  278. 'type' => SMOPT_TYPE_HIDDEN ),
  279. '$time_zone_type' => array( 'name' => _("Time Zone Configuration"),
  280. 'type' => SMOPT_TYPE_NUMLIST,
  281. 'posvals' => array( 0 => _("Standard GNU C time zones"),
  282. 1 => _("Strict time zones"),
  283. 2 => _("Custom GNU C time zones"),
  284. 3 => _("Custom strict time zones")),
  285. 'default' => 0 ),
  286. '$config_location_base' => array( 'name' => _("Location base"),
  287. 'type' => SMOPT_TYPE_STRING,
  288. 'size' => 40,
  289. 'default' => '' ),
  290. /* --------------------------------------------------------*/
  291. 'Group5' => array( 'name' => _("Message of the Day"),
  292. 'type' => SMOPT_TYPE_TITLE ),
  293. '$motd' => array( 'name' => _("Message of the Day"),
  294. 'type' => SMOPT_TYPE_TEXTAREA,
  295. 'size' => 40 ),
  296. /* ---- Database settings ---- */
  297. 'Group6' => array( 'name' => _("Database"),
  298. 'type' => SMOPT_TYPE_TITLE ),
  299. '$addrbook_dsn' => array( 'name' => _("Address book DSN"),
  300. 'type' => SMOPT_TYPE_STRING,
  301. 'size' => 40 ),
  302. '$addrbook_table' => array( 'name' => _("Address book table"),
  303. 'type' => SMOPT_TYPE_STRING,
  304. 'size' => 40,
  305. 'default' => 'address' ),
  306. '$prefs_dsn' => array( 'name' => _("Preferences DSN"),
  307. 'type' => SMOPT_TYPE_STRING,
  308. 'size' => 40 ),
  309. '$prefs_table' => array( 'name' => _("Preferences table"),
  310. 'type' => SMOPT_TYPE_STRING,
  311. 'size' => 40,
  312. 'default' => 'userprefs' ),
  313. '$prefs_user_field' => array('name' => _("Preferences username field"),
  314. 'type' => SMOPT_TYPE_STRING,
  315. 'size' => 40,
  316. 'default' => 'user' ),
  317. '$prefs_user_size' => array( 'name' => _("Size of username field"),
  318. 'type' => SMOPT_TYPE_INTEGER ),
  319. '$prefs_key_field' => array('name' => _("Preferences key field"),
  320. 'type' => SMOPT_TYPE_STRING,
  321. 'size' => 40,
  322. 'default' => 'prefkey' ),
  323. '$prefs_key_size' => array( 'name' => _("Size of key field"),
  324. 'type' => SMOPT_TYPE_INTEGER ),
  325. '$prefs_val_field' => array('name' => _("Preferences value field"),
  326. 'type' => SMOPT_TYPE_STRING,
  327. 'size' => 40,
  328. 'default' => 'prefval' ),
  329. '$prefs_val_size' => array( 'name' => _("Size of value field"),
  330. 'type' => SMOPT_TYPE_INTEGER ),
  331. '$addrbook_global_dsn' => array( 'name' => _("Global address book DSN"),
  332. 'type' => SMOPT_TYPE_STRING,
  333. 'size' => 40 ),
  334. '$addrbook_global_table' => array( 'name' => _("Global address book table"),
  335. 'type' => SMOPT_TYPE_STRING,
  336. 'size' => 40,
  337. 'default' => 'global_abook' ),
  338. '$addrbook_global_writeable' => array( 'name' => _("Allow writing into global address book"),
  339. 'type' => SMOPT_TYPE_BOOLEAN ),
  340. '$addrbook_global_listing' => array( 'name' => _("Allow listing of global address book"),
  341. 'type' => SMOPT_TYPE_BOOLEAN ),
  342. /* ---- Language settings ---- */
  343. 'Group9' => array( 'name' => _("Language settings"),
  344. 'type' => SMOPT_TYPE_TITLE ),
  345. '$squirrelmail_default_language' => array( 'name' => _("Default Language"),
  346. 'type' => SMOPT_TYPE_STRLIST,
  347. 'size' => 7,
  348. 'posvals' => $language_values ),
  349. '$default_charset' => array( 'name' => _("Default Charset"),
  350. 'type' => SMOPT_TYPE_STRLIST,
  351. 'posvals' => array( 'iso-8859-1' => 'iso-8859-1',
  352. 'iso-8859-2' => 'iso-8859-2',
  353. 'iso-8859-7' => 'iso-8859-7',
  354. 'iso-8859-9' => 'iso-8859-9',
  355. 'iso-8859-15' => 'iso-8859-15',
  356. 'utf-8' => 'utf-8',
  357. 'koi8-r' => 'koi8-r',
  358. 'euc-kr' => 'euc-kr',
  359. 'big5' => 'big5',
  360. 'gb2312' => 'gb2312',
  361. 'tis-620' => 'tis-620',
  362. 'windows-1251' => 'windows-1251',
  363. 'windows-1255' => 'windows-1255',
  364. 'windows-1256' => 'windows-1256',
  365. 'iso-2022-jp' => 'iso-2022-jp' ) ),
  366. '$show_alternative_names' => array( 'name' => _("Show alternative language names"),
  367. 'type' => SMOPT_TYPE_BOOLEAN ),
  368. '$aggressive_decoding' => array( 'name' => _("Enable aggressive decoding"),
  369. 'type' => SMOPT_TYPE_BOOLEAN ),
  370. '$lossy_encoding' => array( 'name' => _("Enable lossy encoding"),
  371. 'type' => SMOPT_TYPE_BOOLEAN ),
  372. /* ---- Tweaks ---- */
  373. 'Group10' => array( 'name' => _("Tweaks"),
  374. 'type' => SMOPT_TYPE_TITLE ),
  375. '$use_icons' => array( 'name' => _("Use icons"),
  376. 'type' => SMOPT_TYPE_BOOLEAN ),
  377. '$use_iframe' => array( 'name' => _("Use inline frames with HTML mails"),
  378. 'type' => SMOPT_TYPE_BOOLEAN ),
  379. '$use_php_recode' => array( 'name' => _("Use PHP recode functions"),
  380. 'type' => SMOPT_TYPE_BOOLEAN ),
  381. '$use_php_iconv' => array( 'name' => _("Use PHP iconv functions"),
  382. 'type' => SMOPT_TYPE_BOOLEAN ),
  383. '$allow_remote_configtest' => array( 'name' => _("Allow remote configuration test"),
  384. 'type' => SMOPT_TYPE_BOOLEAN ),
  385. /* ---- Settings of address books ---- */
  386. 'Group11' => array( 'name' => _("Address Books"),
  387. 'type' => SMOPT_TYPE_TITLE ),
  388. '$default_use_javascript_addr_book' => array( 'name' => _("Default Javascript Addressbook"),
  389. 'type' => SMOPT_TYPE_BOOLEAN ),
  390. '$abook_global_file' => array( 'name' => _("Global address book file"),
  391. 'type' => SMOPT_TYPE_STRING ),
  392. '$abook_global_file_writeable' => array( 'name' => _("Allow writing into global address book file"),
  393. 'type' => SMOPT_TYPE_BOOLEAN ),
  394. '$abook_global_file_listing' => array( 'name' => _("Allow listing of global address book"),
  395. 'type' => SMOPT_TYPE_BOOLEAN ),
  396. '$abook_file_line_length' => array( 'name' => _("Address book file line length"),
  397. 'type' => SMOPT_TYPE_INTEGER ),
  398. /* --------------------------------------------------------*/
  399. 'Group7' => array( 'name' => _("Templates"),
  400. 'type' => SMOPT_TYPE_TITLE ),
  401. '$theme_css' => array( 'name' => _("Style Sheet URL (css)"),
  402. 'type' => SMOPT_TYPE_PATH,
  403. 'size' => 40 ),
  404. '$default_fontsize' => array( 'name' => _("Default font size"),
  405. 'type' => SMOPT_TYPE_STRING,
  406. 'default' => ''),
  407. '$default_fontset' => array( 'name' => _("Default font set"),
  408. 'type' => SMOPT_TYPE_STRLIST,
  409. 'posvals' => $fontsets),
  410. '$templateset_default' => array( 'name' => _("Default template"),
  411. 'type' => SMOPT_TYPE_STRLIST,
  412. 'posvals' => adm_template_options()),
  413. '$templateset_fallback' => array( 'name' => _("Fallback template"),
  414. 'type' => SMOPT_TYPE_STRLIST,
  415. 'posvals' => adm_template_options()),
  416. '$theme_default' => array( 'name' => _("Default theme"),
  417. 'type' => SMOPT_TYPE_INTEGER,
  418. 'default' => 0,
  419. 'comment' => _("Use index number of theme") ),
  420. /* --------------------------------------------------------*/
  421. '$config_use_color' => array( 'name' => '',
  422. 'type' => SMOPT_TYPE_HIDDEN ),
  423. '$no_list_for_subscribe' => array( 'name' => '',
  424. 'type' => SMOPT_TYPE_HIDDEN ),
  425. /* --------------------------------------------------------*/
  426. );