- prepare for another php backend in functions/imap.php.
- aligned "Sent" button in src/compose.php.
- added two .cvsignore files in data/ and config/ directory.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@812
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if (ereg("iso-8859-(.*)", $charset, $res)) {
if ($res[1] == "1")
return charset_decode_iso_8859_1 ($string);
if (ereg("iso-8859-(.*)", $charset, $res)) {
if ($res[1] == "1")
return charset_decode_iso_8859_1 ($string);
+ else if ($res[1] == "2")
return charset_decode_iso_8859_2 ($string);
return charset_decode_iso_8859_2 ($string);
+ else if ($res[1] == "7")
return charset_decode_iso_8859_7 ($string);
else if ($res[1] == "15")
return charset_decode_iso_8859_15 ($string);
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;
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
return $string;
} else {
// Only do the slow convert if there are 8-bit characters
+
+ $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 "</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";
// This code is for attachments
echo " <tr>\n";