// This is displayed right after they log in
$motd = "You are using SquirrelMail's web-based email client. If you run into any bugs or have suggestions, please report them to our <A HREF=\"mailto:squirrelmail-list@sourceforge.net\">mailing list</A>";
-// Themes
-// You can define your own theme and put it in this directory. You must
-// call it as the example below. You can name the theme whatever you
-// want. For an example of a theme, see the ones included in the config
-// directory.
-//
-// You can download themes from http://squirrelmail.sourceforge.net/index.php3?page=10
-//
-// To add a new theme to the options that users can choose from, just add
-// a new number to the array at the bottom, and follow the pattern.
-
- // The first one HAS to be here, and is your system's default theme.
- // It can be any theme you want
- $theme[0]["PATH"] = "../config/default_theme.php";
- $theme[0]["NAME"] = "Default";
-
- $theme[1]["PATH"] = "../config/sandstorm_theme.php";
- $theme[1]["NAME"] = "Sand Storm";
-
- $theme[2]["PATH"] = "../config/deepocean_theme.php";
- $theme[2]["NAME"] = "Deep Ocean";
-
- $theme[3]["PATH"] = "../config/slashdot_theme.php";
- $theme[3]["NAME"] = "Slashdot";
-
- $theme[4]["PATH"] = "../config/purple_theme.php";
- $theme[4]["NAME"] = "Purple";
-
- $theme[5]["PATH"] = "../config/forest_theme.php";
- $theme[5]["NAME"] = "Forest";
-
- $theme[6]["PATH"] = "../config/ice_theme.php";
- $theme[6]["NAME"] = "Ice";
-
- $theme[7]["PATH"] = "../config/seaspray_theme.php";
- $theme[7]["NAME"] = "Sea Spray";
-
// Whether or not to use a special color for special folders. If not, special
// folders will be the same color as the other folders
$use_special_folder_color = true;
$show_contain_subfolders_option = false;
+// This option controls what character set is used when sending mail
+// and when sending HTMl to the browser. Do not set this to US-ASCII,
+// use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
+// since this implementation is faster than the alternatives.
+ $default_charset = "iso-8859-1";
+
// Whether or not to use META tags and automatically forward after an
// action has been completed.
$auto_forward = true;
// but you can set it to whatever you wish.
$default_left_size = 200;
+
+// Themes
+// You can define your own theme and put it in this directory. You must
+// call it as the example below. You can name the theme whatever you
+// want. For an example of a theme, see the ones included in the config
+// directory.
+//
+// You can download themes from http://squirrelmail.sourceforge.net/index.php3?page=10
+//
+// To add a new theme to the options that users can choose from, just add
+// a new number to the array at the bottom, and follow the pattern.
+
+ // The first one HAS to be here, and is your system's default theme.
+ // It can be any theme you want
+ $theme[0]["PATH"] = "../config/default_theme.php";
+ $theme[0]["NAME"] = "Default";
+
+ $theme[1]["PATH"] = "../config/sandstorm_theme.php";
+ $theme[1]["NAME"] = "Sand Storm";
+
+ $theme[2]["PATH"] = "../config/deepocean_theme.php";
+ $theme[2]["NAME"] = "Deep Ocean";
+
+ $theme[3]["PATH"] = "../config/slashdot_theme.php";
+ $theme[3]["NAME"] = "Slashdot";
+
+ $theme[4]["PATH"] = "../config/purple_theme.php";
+ $theme[4]["NAME"] = "Purple";
+
+ $theme[5]["PATH"] = "../config/forest_theme.php";
+ $theme[5]["NAME"] = "Forest";
+
+ $theme[6]["PATH"] = "../config/ice_theme.php";
+ $theme[6]["NAME"] = "Ice";
+
+ $theme[7]["PATH"] = "../config/seaspray_theme.php";
+ $theme[7]["NAME"] = "Sea Spray";
+
?>
return charset_decode_iso_8859_default ($string);
} else if ($charset == "ns_4551-1") {
return charset_decode_ns_4551_1 ($string);
+ } else if ($charset == "koi8-r") {
+ return charset_decode_koi8r ($string);
} else
return $string;
}
return ($string);
}
+ // ISO-8859-15 is Cyrillic
+ function charset_decode_iso_8859_5 ($string) {
+ // Not yet implemented.
+ }
+
// Remove all 8 bit characters from all other ISO-8859 character sets
function charset_decode_iso_8859_default ($string) {
return (strtr($string, "\240\241\242\243\244\245\246\247".
return strtr ($string, "[\\]{|}", "ÆØÅæøå");
}
+ // KOI8-R is used to encode Russian mail (Cyrrilic). Defined in RFC
+ // 1489.
+ function charset_decode_koi8r ($string) {
+ global $default_charset;
+
+ if ($default_charset == "koi8-r") {
+ return $string;
+ } else {
+ // Convert to Unicode HTML entities.
+ // This code is rather ineffective.
+ $string = ereg_replace("\200", "─", $string);
+ $string = ereg_replace("\201", "│", $string);
+ $string = ereg_replace("\202", "┌", $string);
+ $string = ereg_replace("\203", "┐", $string);
+ $string = ereg_replace("\204", "└", $string);
+ $string = ereg_replace("\205", "┘", $string);
+ $string = ereg_replace("\206", "├", $string);
+ $string = ereg_replace("\207", "┤", $string);
+ $string = ereg_replace("\210", "┬", $string);
+ $string = ereg_replace("\211", "┴", $string);
+ $string = ereg_replace("\212", "┼", $string);
+ $string = ereg_replace("\213", "▀", $string);
+ $string = ereg_replace("\214", "▄", $string);
+ $string = ereg_replace("\215", "█", $string);
+ $string = ereg_replace("\216", "▌", $string);
+ $string = ereg_replace("\217", "▐", $string);
+ $string = ereg_replace("\220", "░", $string);
+ $string = ereg_replace("\221", "▒", $string);
+ $string = ereg_replace("\222", "▓", $string);
+ $string = ereg_replace("\223", "⌠", $string);
+ $string = ereg_replace("\224", "■", $string);
+ $string = ereg_replace("\225", "∙", $string);
+ $string = ereg_replace("\226", "√", $string);
+ $string = ereg_replace("\227", "≈", $string);
+ $string = ereg_replace("\230", "≤", $string);
+ $string = ereg_replace("\231", "≥", $string);
+ $string = ereg_replace("\232", " ", $string);
+ $string = ereg_replace("\233", "⌡", $string);
+ $string = ereg_replace("\234", "°", $string);
+ $string = ereg_replace("\235", "²", $string);
+ $string = ereg_replace("\236", "·", $string);
+ $string = ereg_replace("\237", "÷", $string);
+ $string = ereg_replace("\240", "═", $string);
+ $string = ereg_replace("\241", "║", $string);
+ $string = ereg_replace("\242", "╒", $string);
+ $string = ereg_replace("\243", "ё", $string);
+ $string = ereg_replace("\244", "╓", $string);
+ $string = ereg_replace("\245", "╔", $string);
+ $string = ereg_replace("\246", "╕", $string);
+ $string = ereg_replace("\247", "╖", $string);
+ $string = ereg_replace("\250", "╗", $string);
+ $string = ereg_replace("\251", "╘", $string);
+ $string = ereg_replace("\252", "╙", $string);
+ $string = ereg_replace("\253", "╚", $string);
+ $string = ereg_replace("\254", "╛", $string);
+ $string = ereg_replace("\255", "╜", $string);
+ $string = ereg_replace("\256", "╝", $string);
+ $string = ereg_replace("\257", "╞", $string);
+ $string = ereg_replace("\260", "╟", $string);
+ $string = ereg_replace("\261", "╠", $string);
+ $string = ereg_replace("\262", "╡", $string);
+ $string = ereg_replace("\263", "Ё", $string);
+ $string = ereg_replace("\264", "╢", $string);
+ $string = ereg_replace("\265", "╣", $string);
+ $string = ereg_replace("\266", "╤", $string);
+ $string = ereg_replace("\267", "╥", $string);
+ $string = ereg_replace("\270", "╦", $string);
+ $string = ereg_replace("\271", "╧", $string);
+ $string = ereg_replace("\272", "╨", $string);
+ $string = ereg_replace("\273", "╩", $string);
+ $string = ereg_replace("\274", "╪", $string);
+ $string = ereg_replace("\275", "╫", $string);
+ $string = ereg_replace("\276", "╬", $string);
+ $string = ereg_replace("\277", "©", $string);
+ $string = ereg_replace("\300", "ю", $string);
+ $string = ereg_replace("\301", "а", $string);
+ $string = ereg_replace("\302", "б", $string);
+ $string = ereg_replace("\303", "ц", $string);
+ $string = ereg_replace("\304", "д", $string);
+ $string = ereg_replace("\305", "е", $string);
+ $string = ereg_replace("\306", "ф", $string);
+ $string = ereg_replace("\307", "г", $string);
+ $string = ereg_replace("\310", "х", $string);
+ $string = ereg_replace("\311", "и", $string);
+ $string = ereg_replace("\312", "й", $string);
+ $string = ereg_replace("\313", "к", $string);
+ $string = ereg_replace("\314", "л", $string);
+ $string = ereg_replace("\315", "м", $string);
+ $string = ereg_replace("\316", "н", $string);
+ $string = ereg_replace("\317", "о", $string);
+ $string = ereg_replace("\320", "п", $string);
+ $string = ereg_replace("\321", "я", $string);
+ $string = ereg_replace("\322", "р", $string);
+ $string = ereg_replace("\323", "с", $string);
+ $string = ereg_replace("\324", "т", $string);
+ $string = ereg_replace("\325", "у", $string);
+ $string = ereg_replace("\326", "ж", $string);
+ $string = ereg_replace("\327", "в", $string);
+ $string = ereg_replace("\330", "ь", $string);
+ $string = ereg_replace("\331", "ы", $string);
+ $string = ereg_replace("\332", "з", $string);
+ $string = ereg_replace("\333", "ш", $string);
+ $string = ereg_replace("\334", "э", $string);
+ $string = ereg_replace("\335", "щ", $string);
+ $string = ereg_replace("\336", "ч", $string);
+ $string = ereg_replace("\337", "ъ", $string);
+ $string = ereg_replace("\340", "Ю", $string);
+ $string = ereg_replace("\341", "А", $string);
+ $string = ereg_replace("\342", "Б", $string);
+ $string = ereg_replace("\343", "Ц", $string);
+ $string = ereg_replace("\344", "Д", $string);
+ $string = ereg_replace("\345", "Е", $string);
+ $string = ereg_replace("\346", "Ф", $string);
+ $string = ereg_replace("\347", "Г", $string);
+ $string = ereg_replace("\350", "Х", $string);
+ $string = ereg_replace("\351", "И", $string);
+ $string = ereg_replace("\352", "Й", $string);
+ $string = ereg_replace("\353", "К", $string);
+ $string = ereg_replace("\354", "Л", $string);
+ $string = ereg_replace("\355", "М", $string);
+ $string = ereg_replace("\356", "Н", $string);
+ $string = ereg_replace("\357", "О", $string);
+ $string = ereg_replace("\360", "П", $string);
+ $string = ereg_replace("\361", "Я", $string);
+ $string = ereg_replace("\362", "Р", $string);
+ $string = ereg_replace("\363", "С", $string);
+ $string = ereg_replace("\364", "Т", $string);
+ $string = ereg_replace("\365", "У", $string);
+ $string = ereg_replace("\366", "Ж", $string);
+ $string = ereg_replace("\367", "В", $string);
+ $string = ereg_replace("\370", "Ь", $string);
+ $string = ereg_replace("\371", "Ы", $string);
+ $string = ereg_replace("\372", "З", $string);
+ $string = ereg_replace("\373", "Ш", $string);
+ $string = ereg_replace("\374", "Э", $string);
+ $string = ereg_replace("\375", "Щ", $string);
+ $string = ereg_replace("\376", "Ч", $string);
+ $string = ereg_replace("\377", "Ъ", $string);
+
+ return $string;
+ }
+ }
+
?>