From fb5e4493ee3e770e8c2a3a64a557b5cfa73fd4ee Mon Sep 17 00:00:00 2001 From: sakamocchi Date: Sat, 29 Jan 2011 05:08:01 +0000 Subject: [PATCH] Add HTTP header for telling its language charactor to the web browser if the configuration is wrong. git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1121 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- utf8/config.php | 1 + utf8/config.php.sample | 1 + 2 files changed, 2 insertions(+) diff --git a/utf8/config.php b/utf8/config.php index 797ab2d..3799b9d 100755 --- a/utf8/config.php +++ b/utf8/config.php @@ -52,6 +52,7 @@ $DIR_LANG = $DIR_NUCLEUS . 'language/'; $DIR_LIBS = $DIR_NUCLEUS . 'libs/'; if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) { + header('Content-type: text/html; charset=utf-8'); echo '設定がおかしいです。インストール用スクリプトを起動するか、config.phpの設定値を変更して下さい。'; exit; } diff --git a/utf8/config.php.sample b/utf8/config.php.sample index ed3db89..8836139 100755 --- a/utf8/config.php.sample +++ b/utf8/config.php.sample @@ -52,6 +52,7 @@ $DIR_LANG = $DIR_NUCLEUS . 'language/'; $DIR_LIBS = $DIR_NUCLEUS . 'libs/'; if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) { + header('Content-type: text/html; charset=utf-8'); echo '設定がおかしいです。インストール用スクリプトを起動するか、config.phpの設定値を変更して下さい。'; exit; } -- 2.11.0