3 ** options_personal.php
5 ** Copyright (c) 1999-2000 The SquirrelMail development team
6 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 ** Displays all options relating to personal information
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');
18 require_once('../functions/options.php');
20 displayPageHeader($color, 'None');
22 $full_name = getPref($data_dir, $username, 'full_name');
23 $reply_to = getPref($data_dir, $username, 'reply_to');
24 $email_address = getPref($data_dir, $username, 'email_address');
28 <table width
=95% align
=center border
=0 cellpadding
=2 cellspacing
=0>
29 <tr
><td align
="center" bgcolor
="<?php echo $color[0] ?>">
31 <b
><?php
echo _("Options") . " - " . _("Personal Information"); ?
></b
>
33 <table width
="100%" border
="0" cellpadding
="1" cellspacing
="1">
34 <tr
><td bgcolor
="<?php echo $color[4] ?>" align
="center">
36 <form name
=f action
="options.php" method
=post
><br
>
37 <table width
=100% cellpadding
=2 cellspacing
=0 border
=0>
40 /* Build a simple array into which we will build options. */
44 /******************************************************/
45 /* LOAD EACH GROUP OF OPTIONS INTO THE OPTIONS ARRAY. */
46 /******************************************************/
47 define('SMOPT_GRP_CONTACT', 0);
48 define('SMOPT_GRP_SIGNATURE', 1);
50 /*** Load the General Options into the array ***/
51 $optgrps[SMOPT_GRP_CONTACT
] = _("Name and Address Options");
52 $optvals[SMOPT_GRP_CONTACT
] = array();
54 /* Build a simple array into which we will build options. */
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
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
73 $optvals[SMOPT_GRP_CONTACT
][] = array(
75 'caption' => _("Reply To"),
76 'type' => SMOPT_TYPE_STRING
,
77 'refresh' => SMOPT_REFRESH_NONE
,
78 'size' => SMOPT_SIZE_HUGE
81 /*** Load the General Options into the array ***/
82 $optgrps[SMOPT_GRP_REPLY
] = _("Reply and Signature Options");
83 $optvals[SMOPT_GRP_REPLY
] = array();
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"))
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
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
112 $identities_link_value = '<A HREF="options_identities.php">'
113 . _("Edit Advanced Identities")
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
124 $optvals[SMOPT_GRP_REPLY
][] = array(
125 'name' => 'use_signature',
126 'caption' => _("Use Signature"),
127 'type' => SMOPT_TYPE_BOOLEAN
,
128 'refresh' => SMOPT_REFRESH_NONE
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
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
146 /* Build and output the option groups. */
147 $option_groups = createOptionGroups($optgrps, $optvals);
148 printOptionGroups($option_groups);
150 do_hook('options_personal_inside');
151 OptionSubmit( 'submit_personal' );
157 <?php
do_hook('options_personal_bottom'); ?
>