if (ereg("iso-8859-(.*)", $charset, $res)) {
if ($res[1] == "1")
return charset_decode_iso_8859_1 ($string);
- if ($res[1] == "2")
+ else if ($res[1] == "2")
return charset_decode_iso_8859_2 ($string);
- if ($res[1] == "7")
+ else if ($res[1] == "7")
return charset_decode_iso_8859_7 ($string);
else if ($res[1] == "15")
return charset_decode_iso_8859_15 ($string);
function charset_decode_iso_8859_2 ($string) {
global $default_charset;
- if (strtolower($default_charset) == "iso-8859-7") {
+ if (strtolower($default_charset) == "iso-8859-2") {
return $string;
} else {
// Only do the slow convert if there are 8-bit characters
**/
$imap_php = true;
+
+ $imap_backend = 'imap';
- include ("../functions/imap_mailbox.php");
- include ("../functions/imap_messages.php");
- include ("../functions/imap_general.php");
+ include ("../functions/".$imap_backend."_mailbox.php");
+ include ("../functions/".$imap_backend."_messages.php");
+ include ("../functions/".$imap_backend."_general.php");
+ include ("../functions/".$imap_backend."_search.php");
?>
echo "</TEXTAREA><BR>\n";
echo " </TD>\n";
echo " </TR>\n";
- echo " <TR><TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME=send VALUE=\"";
- echo _("Send");
- echo "\"></TD></TR>\n";
+ echo " <TR><TD> </TD><TD ALIGN=LEFT><INPUT TYPE=SUBMIT NAME=send VALUE=\""._("Send")."\"></TD></TR>\n";
// This code is for attachments
echo " <tr>\n";