cvs: phpweb /include shared.inc
| From: | Rasmus Lerdorf | Date: | Sun, 05 Nov 2000 23:36:16 +0000 |
| Subject: | cvs: phpweb /include shared.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-2736@lists.php.net to get a copy of this message | ||
rasmus Sun Nov 5 15:36:16 2000 EDT
Modified files:
/phpweb/include shared.inc
Log:
Clean this up a bit
Index: phpweb/include/shared.inc
diff -u phpweb/include/shared.inc:1.112 phpweb/include/shared.inc:1.113
--- phpweb/include/shared.inc:1.112 Sun Nov 5 15:30:13 2000
+++ phpweb/include/shared.inc Sun Nov 5 15:36:16 2000
@@ -318,7 +318,8 @@
$HAVE_SEARCH=$MIRRORS[$MYSITE][5];
Header("Vary: User-Agent");
- switch(substr(dirname($PHP_SELF),-2)) {
+ $lang = strtolower(substr(dirname($PHP_SELF),-2));
+ switch($lang) {
case 'ja':
Header("Content-Type: text/html; charset=utf-8");
Header("Content-language: ja");
@@ -327,29 +328,9 @@
Header("Content-Type: text/html; charset=iso-8859-2");
Header("Content-language: hu");
break;
- case 'de':
- Header("Content-Type: text/html; charset=iso-8859-1");
- Header("Content-language: de");
- break;
- case 'nl':
- Header("Content-Type: text/html; charset=iso-8859-1");
- Header("Content-language: nl");
- break;
- case 'it':
- Header("Content-Type: text/html; charset=iso-8859-1");
- Header("Content-language: it");
- break;
- case 'fr':
- Header("Content-Type: text/html; charset=iso-8859-1");
- Header("Content-language: fr");
- break;
- case 'es':
- Header("Content-Type: text/html; charset=iso-8859-1");
- Header("Content-language: es");
- break;
default:
Header("Content-Type: text/html; charset=iso-8859-1");
- Header("Content-language: en");
+ Header("Content-language: $lang");
break;
}