• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision4c2c62a760c591267c7d67d861dbc0e51c1d8e1c (tree)
Zeit2005-02-13 12:06:02
Autorhenoheno <henoheno>
Commiterhenoheno

Log Message

Cleanup HTTP header related, etc

Ändern Zusammenfassung

Diff

--- a/skin/keitai.skin.php
+++ b/skin/keitai.skin.php
@@ -1,9 +1,10 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: keitai.skin.php,v 1.6 2005/02/13 02:35:56 henoheno Exp $
3+// $Id: keitai.skin.php,v 1.7 2005/02/13 03:06:02 henoheno Exp $
44 //
55 // Skin for Embedded devices
66
7+// ----
78 // Prohibit direct access
89 if (! defined('UI_LANG')) die('UI_LANG is not set');
910
@@ -11,11 +12,16 @@ global $max_size, $accesskey, $menubar;
1112 $link = $_LINK;
1213 $rw = ! PKWK_READONLY;
1314
14-// Force Shift JIS encode for Japanese embedded browsers and devices
15+// Output HTTP headers
1516 pkwk_headers_sent();
16-header('Content-Type: text/html; charset=Shift_JIS');
17-$title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING);
18-$body = mb_convert_encoding($body, 'SJIS', SOURCE_ENCODING);
17+if(LANG == 'ja') {
18+ // Force Shift JIS encode for Japanese embedded browsers and devices
19+ header('Content-Type: text/html; charset=Shift_JIS');
20+ $title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING);
21+ $body = mb_convert_encoding($body, 'SJIS', SOURCE_ENCODING);
22+} else {
23+ header('Content-Type: text/html; charset=' . CONTENT_CHARSET);
24+}
1925
2026 // Make 1KByte spare (for header, etc)
2127 $max_size = --$max_size * 1024;