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 | |
13 | session_start(); |
14 | |
c36ed9cf |
15 | if (!isset($strings_php)) |
e1db998a |
16 | include('../functions/strings.php'); |
245a6892 |
17 | if (!isset($config_php)) |
e1db998a |
18 | include('../config/config.php'); |
c36ed9cf |
19 | if (!isset($page_header_php)) |
e1db998a |
20 | include('../functions/page_header.php'); |
c36ed9cf |
21 | if (!isset($display_messages_php)) |
e1db998a |
22 | include('../functions/display_messages.php'); |
c36ed9cf |
23 | if (!isset($imap_php)) |
e1db998a |
24 | include('../functions/imap.php'); |
c36ed9cf |
25 | if (!isset($array_php)) |
e1db998a |
26 | include('../functions/array.php'); |
c36ed9cf |
27 | if (!isset($i18n_php)) |
e1db998a |
28 | include('../functions/i18n.php'); |
d7d3c4d4 |
29 | if (!isset($plugin_php)) |
e1db998a |
30 | include('../functions/plugin.php'); |
c36ed9cf |
31 | |
e1db998a |
32 | include('../src/load_prefs.php'); |
33 | displayPageHeader($color, 'None'); |
c36ed9cf |
34 | |
e1db998a |
35 | $fullname = getPref($data_dir, $username, 'full_name'); |
36 | $replyto = getPref($data_dir, $username, 'reply_to'); |
37 | $email_address = getPref($data_dir, $username, 'email_address'); |
c36ed9cf |
38 | |
39 | ?> |
e9f8ea4e |
40 | <br> |
6170c5b6 |
41 | <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>"> |
42 | <center><b><?php echo _("Options") . " - " . _("Personal Information"); ?></b></center> |
c36ed9cf |
43 | </td></tr></table> |
44 | |
d7d3c4d4 |
45 | <form name=f action="options.php" method=post> |
c36ed9cf |
46 | <table width=100% cellpadding=0 cellspacing=2 border=0> |
47 | <tr> |
6170c5b6 |
48 | <td align=right nowrap><?php echo _("Full Name"); ?>: |
c36ed9cf |
49 | </td><td> |
6170c5b6 |
50 | <input size=50 type=text value="<?php echo $fullname ?>" name=full_name> |
c36ed9cf |
51 | </td> |
52 | </tr> |
53 | <tr> |
6170c5b6 |
54 | <td align=right nowrap><?php echo _("E-Mail Address"); ?>: |
c36ed9cf |
55 | </td><td> |
6170c5b6 |
56 | <input size=50 type=text value="<?php echo $email_address ?>" name=email_address> |
c36ed9cf |
57 | </td> |
58 | </tr> |
59 | <tr> |
6170c5b6 |
60 | <td align=right nowrap><?php echo _("Reply To"); ?>: |
c36ed9cf |
61 | </td><td> |
6170c5b6 |
62 | <input size=50 type=text value="<?php echo $replyto ?>" name=reply_to> |
c36ed9cf |
63 | </td> |
64 | </tr> |
65 | <tr> |
6170c5b6 |
66 | <td align=right nowrap valign=top><br><?php echo _("Signature"); ?>: |
c36ed9cf |
67 | </td><td> |
8442ac08 |
68 | <?php |
c36ed9cf |
69 | if ($use_signature == true) |
b8163cc4 |
70 | echo '<input type=checkbox value="1" name=usesignature checked> ' . _("Use a signature?") . ' '; |
71 | else |
72 | echo '<input type=checkbox value="1" name=usesignature> ' . _("Use a signature?") . ' '; |
73 | if ( $prefix_sig == true ) |
74 | echo '<input type="checkbox" value="1" name="prefixsig" checked> |
75 | ' . _( "Prefix signature with '--' ?" ) . '<BR>'; |
76 | else |
77 | echo '<input type="checkbox" value="1" name="prefixsig"> ' . _( " |
78 | Prefix signature with '--' ?" ) . '<BR>'; |
e1db998a |
79 | echo "\n<textarea name=\"signature_edit\" rows=\"5\" cols=\"50\">$signature_abs</textarea><br>"; |
c36ed9cf |
80 | ?> |
81 | </td> |
82 | </tr> |
ef3c69f0 |
83 | <?php do_hook("options_personal_inside"); ?> |
c36ed9cf |
84 | <tr> |
85 | <td> |
86 | </td><td> |
32f4685b |
87 | <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_personal"> |
c36ed9cf |
88 | </td> |
89 | </tr> |
90 | </table> |
91 | </form> |
e1db998a |
92 | <?php do_hook('options_personal_bottom'); ?> |
c36ed9cf |
93 | </body></html> |