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