+ $to_left = trim($t[0]);
+ for ($i = 0; $to_left;$i++) {
+ if (strpos($to_left, ",")) {
+ $to_ary[$i] = trim(substr($to_left, 0, strpos($to_left, ",")));
+ $to_left = substr($to_left, strpos($to_left, ",")+1, strlen($to_left));
+ }
+ else {
+ $to_ary[$i] = trim($to_left);
+ $to_left = "";
+ }
+ }
+
+ $i = 0;
+ $to_string = "";
+ while ($i < count($to_ary)) {
+ if ($to_string)
+ $to_string = "$to_string<BR>$to_ary[$i]";
+ else
+ $to_string = "$to_ary[$i]";
+
+ $i++;
+ if (count($to_ary) > 1) {
+ if ($show_more == false) {
+ if ($i == 1) {
+ $to_string = "$to_string (<A HREF=\"read_body.php?mailbox=$urlMailbox&passed_id=$passed_id&sort=$sort&startMessage=$startMessage&show_more=1\">more</A>)";
+ $i = count($to_ary);
+ }
+ } else if ($i == 1) {
+ $to_string = "$to_string (<A HREF=\"read_body.php?mailbox=$urlMailbox&passed_id=$passed_id&sort=$sort&startMessage=$startMessage&show_more=0\">less</A>)";
+ }
+ }
+ }
+