} array_push($moved, $match); // Disable the message popup for simple and XUL interfaces if ($atmail->LoginType == "simple" || $atmail->XUL) { $atmail->Advanced = ""; } // Default to the normal message font when displaying a message $match['msgclass'] = "itemi"; if ($user['Advanced']) { // Take away any references to ' and " characters. They break the Jscript for the popup $match['EmailSubject'] = str_replace(array("'", '"', "\n", "\r"), '', $match['EmailSubject']); } // Clean the email headers , chop unnessasary chars and strip // HTML chars $match = array_merge($match, array('TimeZone' => $atmail->TimeZone, 'LoginType' => $atmail->LoginType)); $match = $mail->clean_header($match); // Choose which colour the next row is $var['class'] = $var['class'] == "item" ? "item2" : "item"; $match['class'] = $var['class']; $match['ReadTag'] = "<img src='imgs/xp/move.gif' width=16 height=12>"; // Default style for the simple interface if ($atmail->LoginType == "simple") { $var['style'] = "_popup"; } // Display the matched messages $match = array_merge($match, array('msgnum' => $match['id'], 'count' => $var['count'])); print $atmail->parse("html/{$atmail->Language}/{$atmail->LoginType}/emailentry{$var['style']}{$var['suffix']}.html", $match); } } $var['start'] = $_REQUEST['start']; $messages = array();