- fixed error in iso-8859-2 handling function in function/i18n.php.
authorondrass <ondrass@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 20 Oct 2000 15:13:17 +0000 (15:13 +0000)
committerondrass <ondrass@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 20 Oct 2000 15:13:17 +0000 (15:13 +0000)
- 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

config/.cvsignore [new file with mode: 0644]
data/.cvsignore [new file with mode: 0644]
functions/i18n.php
functions/imap.php
src/compose.php

diff --git a/config/.cvsignore b/config/.cvsignore
new file mode 100644 (file)
index 0000000..4f4773f
--- /dev/null
@@ -0,0 +1 @@
+config.php
diff --git a/data/.cvsignore b/data/.cvsignore
new file mode 100644 (file)
index 0000000..68d4a6d
--- /dev/null
@@ -0,0 +1 @@
+*.pref
index 20c4e53..2b7d5f4 100644 (file)
@@ -58,9 +58,9 @@
       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
index 6ec0025..2fa499f 100644 (file)
@@ -4,8 +4,11 @@
     **/
 
    $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");
 ?>
index e7f9402..cf4c459 100644 (file)
       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>&nbsp;</TD><TD ALIGN=LEFT><INPUT TYPE=SUBMIT NAME=send VALUE=\""._("Send")."\"></TD></TR>\n";
       
       // This code is for attachments
       echo "   <tr>\n";