/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: keitai.ini.php,v 1.13 2004/09/20 04:25:38 henoheno Exp $
+// $Id: keitai.ini.php,v 1.17 2004/10/31 02:01:38 henoheno Exp $
//
// PukiWiki setting file (Cell phones, PDAs and other thin clients)
/////////////////////////////////////////////////
+// ·ÈÂÓ¡¦PDAÀìÍѤΥڡ¼¥¸¤ò½é´ü¥Ú¡¼¥¸¤È¤·¤Æ»ØÄꤹ¤ë
+
+// $defaultpage = 'm';
+
+/////////////////////////////////////////////////
// ¥¹¥¥ó¥Õ¥¡¥¤¥ë¤Î¾ì½ê
-define('SKIN_FILE', DATA_HOME . SKIN_DIR . 'keitai.skin.ja.php');
+define('SKIN_FILE', DATA_HOME . SKIN_DIR . 'keitai.skin.php');
/////////////////////////////////////////////////
// ¿÷·Á¤È¤¹¤ë¥Ú¡¼¥¸¤ÎÆɤ߹þ¤ß¤ò²Äǽ¤Ë¤¹¤ë
/////////////////////////////////////////////////
// ¥ê¥¹¥È¹½Â¤¤Îº¸¥Þ¡¼¥¸¥ó
-$_ul_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)
-$_ul_margin = 16; // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)
-$_ol_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)
-$_ol_margin = 16; // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)
-$_dl_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)
-$_dl_margin = 16; // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)
-$_list_pad_str = '';
+$_ul_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)
+$_ul_margin = 16; // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)
+$_ol_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)
+$_ol_margin = 16; // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)
+$_dl_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)
+$_dl_margin = 16; // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)
+$_list_pad_str = '';
/////////////////////////////////////////////////
// Â硦¾®¸«½Ð¤·¤«¤éÌܼ¡¤ØÌá¤ë¥ê¥ó¥¯¤Îʸ»ú
/////////////////////////////////////////////////
// $script¤òû½Ì
-if (preg_match('#([^/]+)$#',$script,$matches)) {
+if (preg_match('#([^/]+)$#', $script, $matches)) {
$script = $matches[1];
}
$ua_name = $user_agent['name'];
$ua_vers = $user_agent['vers'];
$ua_agent = $user_agent['agent'];
-$matches = array();
+$matches = array();
// Browser-name only
switch ($ua_name) {
$cols = 22; $rows = 5; // i_mode
break;
- // Vodafone (ex. J-PHONE) µ»½Ñ»ñÎÁ: ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥È¤Ë¤Ä¤¤¤Æ
+ // Vodafone (ex. J-PHONE)
+ // ¥Ü¡¼¥À¥Õ¥©¥ó¥é¥¤¥Ö¡ª¸þ¤±¥¦¥§¥Ö¥³¥ó¥Æ¥ó¥Ä³«È¯¥¬¥¤¥É [³µÍ×ÊÔ] (Version 1.2.0 P13)
+ // http://www.dp.j-phone.com/dp/tool_dl/download.php?docid=110
+ // µ»½Ñ»ñÎÁ: ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥È¤Ë¤Ä¤¤¤Æ
// http://www.dp.j-phone.com/dp/tool_dl/web/useragent.php
case 'J-PHONE':
- if (preg_match('#\bProfile/#', $ua_agent)) {
- $max_size = 12; // ¥Ñ¥±¥Ã¥ÈÂбþµ¡
- } else {
- $max_size = 6; // ¥Ñ¥±¥Ã¥ÈÈóÂбþµ¡
+ $matches = array("");
+ preg_match('/^([0-9]+)\./', $user_agent['vers'], $matches);
+ switch($matches[1]){
+ case '3': $max_size = 6; break; // C type: lt 6000bytes
+ case '4': $max_size = 12; break; // P type: lt 12Kbytes
+ case '5': $max_size = 200; break; // W type: lt 200Kbytes
}
- $cols = 24; $rows = 20; // jphone
+ $cols = 24; $rows = 20;
break;
// UP.Browser
// UP.Browser for KDDI cell phones
// http://www.au.kddi.com/ezfactory/tec/spec/xhtml.html ('About 9KB max')
// http://www.au.kddi.com/ezfactory/tec/spec/4_4.html (User-agent strings)
- if (preg_match('#^KDDI#', $ua_agent)) {
- $max_size = 9;
- }
+ if (preg_match('#^KDDI#', $ua_agent)) $max_size = 9;
+ break;
}
// Browser-name + version