X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fidentity.php;h=65331253e82cf9e47e38406edbc81ad6fca228bb;hb=f8a1ed5aa365d515e4e2ac3602f900bfb9447fce;hp=3977ac2a7f430b9c2a432b07b2e34563dda5b48a;hpb=b1f4534203114fa0c4e644d8192608c0b54cc74e;p=squirrelmail.git diff --git a/functions/identity.php b/functions/identity.php index 3977ac2a..65331253 100644 --- a/functions/identity.php +++ b/functions/identity.php @@ -3,15 +3,16 @@ /** * identity.php * - * Copyright (c) 1999-2003 The SquirrelMail Project Team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * This contains utility functions for dealing with multiple identities * - * $Id$ - * + * @version $Id$ + * @package squirrelmail */ +/** Used to simplify includes */ if (!defined('SM_PATH')) { define('SM_PATH','../'); } @@ -21,6 +22,7 @@ include_once(SM_PATH . 'include/load_prefs.php'); /** * Returns an array of all the identities. * Array is keyed: full_name, reply_to, email_address, index, signature +* @return array full_name,reply_to,email_address,index,signature */ function get_identities() { @@ -36,7 +38,8 @@ function get_identities() { 'index' => 0 ); /* If there are any others, add them to the array */ - if (!empty($num_ids) && $num_ids > 1) { for ($i=1;$i<$num_ids;$i++) { + if (!empty($num_ids) && $num_ids > 1) { + for ($i=1;$i<$num_ids;$i++) { $identities[] = array('full_name' => getPref($data_dir,$username,'full_name' . $i), 'email_address' => getPref($data_dir,$username,'email_address' . $i), 'reply_to' => getPref($data_dir,$username,'reply_to' . $i), @@ -48,4 +51,4 @@ function get_identities() { return $identities; } -?> +?> \ No newline at end of file