* Added language aliases (I think)
[squirrelmail.git] / src / options_personal.php
index 7c52d67c82488836ce9c430649b0f205841d5637..62b62e4e80b29bd18cabfa87bb59313a99e12a3c 100644 (file)
@@ -7,78 +7,92 @@
     **
     **  Displays all options relating to personal information
     **
+    **  $Id$
     **/
 
-   session_start();
+   include('../src/validate.php');
+   include('../functions/display_messages.php');
+   include('../functions/imap.php');
+   include('../functions/array.php');
+   include('../functions/plugin.php');
+   
+   displayPageHeader($color, 'None');
 
-   if (!isset($config_php))
-      include("../config/config.php");
-   if (!isset($strings_php))
-      include("../functions/strings.php");
-   if (!isset($page_header_php))
-      include("../functions/page_header.php");
-   if (!isset($display_messages_php))
-      include("../functions/display_messages.php");
-   if (!isset($imap_php))
-      include("../functions/imap.php");
-   if (!isset($array_php))
-      include("../functions/array.php");
-   if (!isset($i18n_php))
-      include("../functions/i18n.php");
+   $fullname = getPref($data_dir, $username, 'full_name');
+   $replyto = getPref($data_dir, $username, 'reply_to');
+   $email_address  = getPref($data_dir, $username, 'email_address'); 
 
-   include("../src/load_prefs.php");
-   displayPageHeader($color, "None");
+?>
+   <br>
+<table width=95% align=center border=0 cellpadding=2 cellspacing=0>
+<tr><td align="center" bgcolor="<?php echo $color[0] ?>">
 
-   $fullname = getPref($data_dir, $username, "full_name");
-   $replyto = getPref($data_dir, $username, "reply_to");
-   $email_address  = getPref($data_dir, $username, "email_address"); 
+      <b><?php echo _("Options") . " - " . _("Personal Information"); ?></b>
 
-?>
-   <table width=100% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
-      <center><b><? echo _("Options") . " - " . _("Personal Information"); ?></b></center>
-   </td></tr></table>
+    <table width="100%" border="0" cellpadding="1" cellspacing="1">
+    <tr><td bgcolor="<?php echo $color[4] ?>" align="center">
 
-   <form action="options.php" method=post>
-      <table width=100% cellpadding=0 cellspacing=2 border=0>
+   <form name=f action="options.php" method=post><br>
+      <table width=100% cellpadding=2 cellspacing=0 border=0>
          <tr>
-            <td align=right nowrap><? echo _("Full Name"); ?>:
+            <td align=right nowrap><?php echo _("Full Name"); ?>:
             </td><td>
-               <input size=50 type=text value="<? echo $fullname ?>" name=full_name> 
+               <input size=50 type=text value="<?php echo $fullname ?>" name=full_name> 
             </td>
          </tr>
          <tr>
-            <td align=right nowrap><? echo _("E-Mail Address"); ?>:
+            <td align=right nowrap><?php echo _("E-Mail Address"); ?>:
             </td><td>
-               <input size=50 type=text value="<? echo $email_address ?>" name=email_address> 
+               <input size=50 type=text value="<?php echo $email_address ?>" name=email_address> 
             </td>
          </tr>
          <tr>
-            <td align=right nowrap><? echo _("Reply To"); ?>:
+            <td align=right nowrap><?php echo _("Reply To"); ?>:
             </td><td>
-               <input size=50 type=text value="<? echo $replyto ?>" name=reply_to> 
+               <input size=50 type=text value="<?php echo $replyto ?>" name=reply_to> 
             </td>
          </tr>
+        <tr>
+           <td align=right nowrap><?PHP echo _("Multiple Identities"); ?>:
+           </td><td>
+              <a href="options_identities.php">Edit Advanced Identities</a>
+               (discards changes made on this form so far)
+           </td>
+        </tr>
+         <tr><td colspan=2><hr size=1 width=80%></td></tr>
          <tr>
-            <td align=right nowrap valign=top><br><? echo _("Signature"); ?>:
+            <td align=right nowrap valign=top><br><?php echo _("Signature"); ?>:
             </td><td>
-<?
+<?php
    if ($use_signature == true)
-      echo "<input type=checkbox value=\"0\" name=usesignature checked>&nbsp;&nbsp;" . _("Use a signature") . "?<BR>";
-   else {
-      echo "<input type=checkbox value=\"1\" name=usesignature>&nbsp;&nbsp;";
-      echo _("Use a signature?");
-      echo "<BR>";
-   } 
-   echo "\n<textarea name=signature_edit rows=5 cols=50>$signature_abs</textarea><br>";
+      echo '<input type=checkbox value="1" name=usesignature checked>&nbsp;&nbsp;' . _("Use a signature?") . '&nbsp;&nbsp;';
+   else
+      echo '<input type=checkbox value="1" name=usesignature>&nbsp;&nbsp;' . _("Use a signature?") . '&nbsp;&nbsp;';
+  if ( ! isset($prefix_sig) || $prefix_sig == true )
+    echo '<input type="checkbox" value="1" name="prefixsig" checked>&nbsp;&nbsp;' 
+        . _( "Prefix signature with '--' ?" ) . '<BR>';
+  else
+    echo '<input type="checkbox" value="1" name="prefixsig">&nbsp;&nbsp;' . 
+        _( "Prefix signature with '--' ?" ) . '<BR>';
+   echo "\n<textarea name=\"signature_edit\" rows=\"5\" cols=\"50\">$signature_abs</textarea><br>";
 ?>
             </td>
          </tr>
+         <?php do_hook("options_personal_inside"); ?>
          <tr>
             <td>&nbsp;
             </td><td>
-               <input type="submit" value="Submit" name="submit_personal">
+               <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_personal">
             </td>
          </tr>
       </table>   
-   </form>
+</form>
+
+   <?php do_hook('options_personal_bottom'); ?>
+
+    </td></tr>
+    </table>
+
+</td></tr>
+</table>
 </body></html>