c36ed9cf |
1 | <?php |
2 | /** |
3 | ** options_personal.php |
4 | ** |
5 | ** Copyright (c) 1999-2000 The SquirrelMail development team |
6 | ** Licensed under the GNU GPL. For full terms see the file COPYING. |
7 | ** |
8 | ** Displays all options relating to personal information |
9 | ** |
245a6892 |
10 | ** $Id$ |
c36ed9cf |
11 | **/ |
12 | |
ff8a98e7 |
13 | require_once('../src/validate.php'); |
14 | require_once('../functions/display_messages.php'); |
15 | require_once('../functions/imap.php'); |
16 | require_once('../functions/array.php'); |
17 | require_once('../functions/plugin.php'); |
bbcafebd |
18 | require_once('../functions/options.php'); |
f740c049 |
19 | |
e1db998a |
20 | displayPageHeader($color, 'None'); |
c36ed9cf |
21 | |
bbcafebd |
22 | $full_name = getPref($data_dir, $username, 'full_name'); |
23 | $reply_to = getPref($data_dir, $username, 'reply_to'); |
e1db998a |
24 | $email_address = getPref($data_dir, $username, 'email_address'); |
cd2b7182 |
25 | |
c36ed9cf |
26 | ?> |
e9f8ea4e |
27 | <br> |
e7db48af |
28 | <table width=95% align=center border=0 cellpadding=2 cellspacing=0> |
29 | <tr><td align="center" bgcolor="<?php echo $color[0] ?>"> |
c36ed9cf |
30 | |
e7db48af |
31 | <b><?php echo _("Options") . " - " . _("Personal Information"); ?></b> |
32 | |
33 | <table width="100%" border="0" cellpadding="1" cellspacing="1"> |
34 | <tr><td bgcolor="<?php echo $color[4] ?>" align="center"> |
35 | |
36 | <form name=f action="options.php" method=post><br> |
37 | <table width=100% cellpadding=2 cellspacing=0 border=0> |
8442ac08 |
38 | <?php |
bbcafebd |
39 | |
40 | /* Build a simple array into which we will build options. */ |
41 | $optgrps = array(); |
42 | $optvals = array(); |
43 | |
44 | /******************************************************/ |
45 | /* LOAD EACH GROUP OF OPTIONS INTO THE OPTIONS ARRAY. */ |
46 | /******************************************************/ |
47 | define('SMOPT_GRP_CONTACT', 0); |
48 | define('SMOPT_GRP_SIGNATURE', 1); |
49 | |
50 | /*** Load the General Options into the array ***/ |
51 | $optgrps[SMOPT_GRP_CONTACT] = _("Name and Address Options"); |
52 | $optvals[SMOPT_GRP_CONTACT] = array(); |
53 | |
54 | /* Build a simple array into which we will build options. */ |
55 | $optvals = array(); |
56 | |
57 | $optvals[SMOPT_GRP_CONTACT][] = array( |
58 | 'name' => 'full_name', |
59 | 'caption' => _("Full Name"), |
60 | 'type' => SMOPT_TYPE_STRING, |
61 | 'refresh' => SMOPT_REFRESH_NONE, |
62 | 'size' => SMOPT_SIZE_HUGE |
63 | ); |
64 | |
65 | $optvals[SMOPT_GRP_CONTACT][] = array( |
66 | 'name' => 'email_address', |
67 | 'caption' => _("Email Address"), |
68 | 'type' => SMOPT_TYPE_STRING, |
69 | 'refresh' => SMOPT_REFRESH_NONE, |
70 | 'size' => SMOPT_SIZE_HUGE |
71 | ); |
72 | |
73 | $optvals[SMOPT_GRP_CONTACT][] = array( |
74 | 'name' => 'reply_to', |
75 | 'caption' => _("Reply To"), |
76 | 'type' => SMOPT_TYPE_STRING, |
77 | 'refresh' => SMOPT_REFRESH_NONE, |
78 | 'size' => SMOPT_SIZE_HUGE |
79 | ); |
80 | |
81 | /*** Load the General Options into the array ***/ |
82 | $optgrps[SMOPT_GRP_REPLY] = _("Reply and Signature Options"); |
83 | $optvals[SMOPT_GRP_REPLY] = array(); |
84 | |
85 | $optvals[SMOPT_GRP_REPLY][] = array( |
86 | 'name' => 'reply_citation_style', |
87 | 'caption' => _("Reply Citation Style"), |
88 | 'type' => SMOPT_TYPE_STRLIST, |
89 | 'refresh' => SMOPT_REFRESH_NONE, |
90 | 'posvals' => array(SMPREF_NONE => _("No Citation"), |
91 | 'author_said' => _("AUTHOR Said"), |
92 | 'quote_who' => _("Quote Who XML"), |
93 | 'user-defined' => _("User-Defined")) |
94 | ); |
95 | |
96 | $optvals[SMOPT_GRP_REPLY][] = array( |
97 | 'name' => 'reply_citation_start', |
98 | 'caption' => _("User-Defined Citation Start"), |
99 | 'type' => SMOPT_TYPE_STRING, |
100 | 'refresh' => SMOPT_REFRESH_NONE, |
101 | 'size' => SMOPT_SIZE_MEDIUM |
102 | ); |
103 | |
104 | $optvals[SMOPT_GRP_REPLY][] = array( |
105 | 'name' => 'reply_citation_end', |
106 | 'caption' => _("User-Defined Citation End"), |
107 | 'type' => SMOPT_TYPE_STRING, |
108 | 'refresh' => SMOPT_REFRESH_NONE, |
109 | 'size' => SMOPT_SIZE_MEDIUM |
110 | ); |
111 | |
112 | $identities_link_value = '<A HREF="options_identities.php">' |
113 | . _("Edit Advanced Identities") |
114 | . '</A> ' |
115 | . _("(discards changes made on this form so far)"); |
116 | $optvals[SMOPT_GRP_REPLY][] = array( |
117 | 'name' => 'identities_link', |
118 | 'caption' => _("Multiple Identities"), |
119 | 'type' => SMOPT_TYPE_COMMENT, |
120 | 'refresh' => SMOPT_REFRESH_NONE, |
121 | 'comment' => $identities_link_value |
122 | ); |
123 | |
124 | $optvals[SMOPT_GRP_REPLY][] = array( |
125 | 'name' => 'use_signature', |
126 | 'caption' => _("Use Signature"), |
127 | 'type' => SMOPT_TYPE_BOOLEAN, |
128 | 'refresh' => SMOPT_REFRESH_NONE |
129 | ); |
130 | |
131 | $optvals[SMOPT_GRP_REPLY][] = array( |
132 | 'name' => 'prefix_sig', |
133 | 'caption' => _("Prefix Signature with '-- ' Line"), |
134 | 'type' => SMOPT_TYPE_BOOLEAN, |
135 | 'refresh' => SMOPT_REFRESH_NONE |
136 | ); |
137 | |
138 | $optvals[SMOPT_GRP_REPLY][] = array( |
139 | 'name' => 'signature_abs', |
140 | 'caption' => _("Signature"), |
141 | 'type' => SMOPT_TYPE_TEXTAREA, |
142 | 'refresh' => SMOPT_REFRESH_NONE, |
143 | 'size' => SMOPT_SIZE_MEDIUM |
144 | ); |
145 | |
146 | /* Build and output the option groups. */ |
147 | $option_groups = createOptionGroups($optgrps, $optvals); |
148 | printOptionGroups($option_groups); |
149 | |
150 | do_hook('options_personal_inside'); |
151 | OptionSubmit( 'submit_personal' ); |
152 | |
c36ed9cf |
153 | ?> |
c36ed9cf |
154 | </table> |
e7db48af |
155 | </form> |
156 | |
e1db998a |
157 | <?php do_hook('options_personal_bottom'); ?> |
e7db48af |
158 | |
159 | </td></tr> |
160 | </table> |
161 | |
162 | </td></tr> |
163 | </table> |
bbcafebd |
164 | </body></html> |