openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 18df230cf8b5318d9ca1f7581db7e23164076838
parent c2b3eafbb3dc359e70be2f2a7cb4982cd9b27aad
Author: dankert <devnull@localhost>
Date:   Sat, 27 Jan 2007 01:18:11 +0100

HTTP-Header mit Charset-Angabe.

Diffstat:
do.php | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/do.php b/do.php @@ -84,16 +84,17 @@ if ( !is_array( $conf ) ) // Wird dann verwendet, wenn die vom Browser angeforderten Sprachen // nicht vorhanden sind $languages[] = $conf['i18n']['default']; + +// Html::debug($languages); foreach( $languages as $l ) { -// $l = substr($l,0,2); - // Pruefen, ob Sprache vorhanden ist. $langFile = OR_LANGUAGE_DIR.$l.'.ini.'.PHP_EXT; if ( file_exists( $langFile ) ) { +// Html::debug($langFile); $conf['language'] = parse_ini_file( $langFile ); break; } @@ -134,6 +135,8 @@ require_once( "functions/language.inc.".PHP_EXT ); require_once( "functions/theme.inc.".PHP_EXT ); require_once( "functions/db.inc.".PHP_EXT ); +header( 'Content-Type: text/html; charset='.lang('CHARSET') ); + // Request-Variablen in Session speichern //request_into_session('action' ); //request_into_session('subaction' );