X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_identities.php;h=91744c7964225302cc6372fd37878669b17bfeff;hb=94a4ea5311aebf1025597e41f141825e97acd8a9;hp=59b34fbad488978ed40b9e1c23c47c44e75ec898;hpb=1e12d1ffb4f54350932a17397d38917db21d64df;p=squirrelmail.git diff --git a/src/options_identities.php b/src/options_identities.php index 59b34fba..91744c79 100644 --- a/src/options_identities.php +++ b/src/options_identities.php @@ -9,9 +9,10 @@ * Display Identities Options * * $Id$ + * @package squirrelmail */ -/* Path for SquirrelMail required files. */ +/** Path for SquirrelMail required files. */ define('SM_PATH','../'); /* SquirrelMail required files. */ @@ -23,6 +24,7 @@ require_once(SM_PATH . 'functions/html.php'); /* POST data var names are dynamic because of the possible multiple idents so lets get them all + FIXME! This circumvents the benefits of rg=0 */ if (!empty($_POST)) { extract($_POST); @@ -31,7 +33,7 @@ if (!empty($_POST)) { if (isset($return)) { SaveUpdateFunction(); - header('Location: options_personal.php'); + header('Location: '.get_location().'/options_personal.php'); exit(); } @@ -327,7 +329,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' ); @@ -345,7 +347,7 @@ function ShowTableInfo($full_name, $email_address, $reply_to, $signature, $post) $return_val .= ''; } - do_hook('options_identities_buttons', $isEmptySection, $post); + $return_val .= concat_hook_function('options_identities_buttons', array($isEmptySection, $post)); $return_val .= ''. html_tag( 'tr', html_tag( 'td', ' ', 'left', '', 'colspan="2"' ));