config_default should also use SM_PATH (especially for those people editing
[squirrelmail.git] / src / options_identities.php
index 91560c79e45e2f01e2898caf1292b1acac6452a8..809210f966788a527468bbbdc8dd594d89e6029d 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * options_identities.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Display Identities Options
 define('SM_PATH','../');
 
 /* SquirrelMail required files. */
-require_once(SM_PATH . 'src/validate.php');
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/global.php');
 require_once(SM_PATH . 'functions/display_messages.php');
 require_once(SM_PATH . 'functions/html.php');
 
+/* POST data var names are dynamic because 
+   of the possible multiple idents so lets get
+   them all
+*/
+if (!empty($_POST)) {
+    extract($_POST);
+}
+/* got 'em all */
+
     if (isset($return)) {
        SaveUpdateFunction();
        header('Location: options_personal.php');
@@ -317,7 +327,7 @@ function ShowTableInfo($full_name, $email_address, $reply_to, $signature, $post)
     $return_val .= sti_input( _("Reply To"), 'reply_to', $reply_to, $post, $OtherBG );
     $return_val .= sti_textarea( _("Signature"), 'signature', $signature, $post, $OtherBG );
 
-    do_hook('options_identities_table', $OtherBG, $isEmptySection, $post);
+    $return_val .= concat_hook_function('options_identities_table', array($OtherBG, $isEmptySection, $post));
     $return_val .= html_tag( 'tr', '', '', $OtherBG);
     $return_val .= html_tag( 'td', ' ', 'left' );
     $return_val .= html_tag( 'td', '', 'left' );
@@ -335,7 +345,7 @@ function ShowTableInfo($full_name, $email_address, $reply_to, $signature, $post)
         $return_val .= '<input type=submit name="promote_' . $post . '" value="'.
              _("Move Up") . '">';
     }
-    do_hook('options_identities_buttons', $isEmptySection, $post);
+    $return_val .= concat_hook_function('options_identities_buttons', array($isEmptySection, $post));
     $return_val .=  '</td></tr>'.
          html_tag( 'tr', html_tag( 'td', '&nbsp;', 'left', '', 'colspan="2"' ));