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