Removed a lot of the warnings generated when PHP has all warnings enabled.
[squirrelmail.git] / src / options_personal.php
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 **
10 ** $Id$
11 **/
12
13 session_start();
14
15 if (!isset($strings_php))
16 include("../functions/strings.php");
17 if (!isset($config_php))
18 include("../config/config.php");
19 if (!isset($page_header_php))
20 include("../functions/page_header.php");
21 if (!isset($display_messages_php))
22 include("../functions/display_messages.php");
23 if (!isset($imap_php))
24 include("../functions/imap.php");
25 if (!isset($array_php))
26 include("../functions/array.php");
27 if (!isset($i18n_php))
28 include("../functions/i18n.php");
29 if (!isset($plugin_php))
30 include("../functions/plugin.php");
31
32 include("../src/load_prefs.php");
33 displayPageHeader($color, "None");
34
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");
38
39 ?>
40 <br>
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>
43 </td></tr></table>
44
45 <form name=f action="options.php" method=post>
46 <table width=100% cellpadding=0 cellspacing=2 border=0>
47 <tr>
48 <td align=right nowrap><?php echo _("Full Name"); ?>:
49 </td><td>
50 <input size=50 type=text value="<?php echo $fullname ?>" name=full_name>
51 </td>
52 </tr>
53 <tr>
54 <td align=right nowrap><?php echo _("E-Mail Address"); ?>:
55 </td><td>
56 <input size=50 type=text value="<?php echo $email_address ?>" name=email_address>
57 </td>
58 </tr>
59 <tr>
60 <td align=right nowrap><?php echo _("Reply To"); ?>:
61 </td><td>
62 <input size=50 type=text value="<?php echo $replyto ?>" name=reply_to>
63 </td>
64 </tr>
65 <tr>
66 <td align=right nowrap valign=top><br><?php echo _("Signature"); ?>:
67 </td><td>
68 <?php
69 if ($use_signature == true)
70 echo "<input type=checkbox value=\"1\" name=usesignature checked>&nbsp;&nbsp;" . _("Use a signature") . "?<BR>";
71 else {
72 echo "<input type=checkbox value=\"1\" name=usesignature>&nbsp;&nbsp;";
73 echo _("Use a signature?");
74 echo "<BR>";
75 }
76 echo "\n<textarea name=signature_edit rows=5 cols=50>$signature_abs</textarea><br>";
77 ?>
78 </td>
79 </tr>
80 <?php do_hook("options_personal_inside"); ?>
81 <tr>
82 <td>&nbsp;
83 </td><td>
84 <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_personal">
85 </td>
86 </tr>
87 </table>
88 </form>
89 <?php do_hook("options_personal_bottom"); ?>
90 </body></html>