|
6 | 6 | */ |
7 | 7 |
|
8 | 8 | $_conf['p2version'] = '1.7.29'; // rep2のバージョン |
9 | | -$_conf['p2expack'] = '080731.1729'; // 拡張パックのバージョン |
10 | | -$_conf['p2name'] = 'pickle'; // rep2の名前 |
| 9 | +$_conf['p2expack'] = '080815.0225'; // 拡張パックのバージョン |
| 10 | +$_conf['p2name'] = 'expack'; // rep2の名前 |
11 | 11 |
|
12 | 12 | //====================================================================== |
13 | 13 | // 基本設定処理 |
|
248 | 248 |
|
249 | 249 | $_conf['login_check_ip'] = 1; // ログイン時にIPアドレスを検証する |
250 | 250 | $_conf['input_type_search'] = false; |
| 251 | +$_conf['extra_headers_ht'] = $_conf['extra_headers_xht'] = ''; |
251 | 252 |
|
252 | 253 | $mobile = &Net_UserAgent_Mobile::singleton(); |
253 | 254 |
|
| 255 | +// iPhone, iPod Touch |
| 256 | +if (P2Util::isBrowserIphone()) { |
| 257 | + $_conf['ktai'] = true; |
| 258 | + $_conf['iphone'] = true; |
| 259 | + $_conf['disable_cookie'] = false; |
| 260 | + $_conf['accept_charset'] = 'UTF-8'; |
| 261 | + $_conf['input_type_search'] = true; |
| 262 | + $_conf['extra_headers_ht'] = <<<EOS |
| 263 | +<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes"> |
| 264 | +<meta name="format-detection" content="telephone=no"> |
| 265 | +<link rel="stylesheet" type="text/css" media="screen" href="css/iphone.css"> |
| 266 | +<script type="text/javascript" src="js/iphone.js"></script> |
| 267 | +EOS; |
| 268 | + $_conf['extra_headers_xht'] = <<<EOS |
| 269 | +<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes" /> |
| 270 | +<meta name="format-detection" content="telephone=no" /> |
| 271 | +<link rel="stylesheet" type="text/css" media="screen" href="css/iphone.css" /> |
| 272 | +<script type="text/javascript" src="js/iphone.js"></script> |
| 273 | +EOS; |
| 274 | + |
254 | 275 | // PC |
255 | | -if ($mobile->isNonMobile()) { |
| 276 | +} elseif ($mobile->isNonMobile()) { |
256 | 277 | $_conf['ktai'] = false; |
| 278 | + $_conf['iphone'] = false; |
257 | 279 | $_conf['disable_cookie'] = false; |
258 | 280 |
|
259 | 281 | if (P2Util::isBrowserSafariGroup()) { |
|
271 | 293 | require_once P2_LIBRARY_DIR . '/hostcheck.class.php'; |
272 | 294 |
|
273 | 295 | $_conf['ktai'] = true; |
| 296 | + $_conf['iphone'] = false; |
274 | 297 | $_conf['accept_charset'] = 'Shift_JIS'; |
275 | 298 |
|
276 | 299 | // ベンダ判定 |
|
313 | 336 | } |
314 | 337 | } |
315 | 338 |
|
316 | | -// iPhone, iPod Touch |
317 | | -if (P2Util::isBrowserIphone()) { |
318 | | - $_conf['accept_charset'] = 'UTF-8'; |
319 | | - $_conf['input_type_search'] = true; |
320 | | - $_conf['ktai'] = true; |
321 | | - $_conf['iphone'] = true; |
322 | | - $_conf['extra_headers_ht'] = <<<EOS |
323 | | -<meta name="viewport" content="width=320" content="initial-scale=1.0"> |
324 | | -<link rel="stylesheet" type="text/css" media="screen" href="css/iphone.css?{$_conf['p2expack']}"> |
325 | | -<script type="text/javascript" src="js/iphone.js?{$_conf['p2expack']}"></script> |
326 | | -EOS; |
327 | | - $_conf['extra_headers_xht'] = <<<EOS |
328 | | -<meta name="viewport" content="width=320" content="initial-scale=1.0" /> |
329 | | -<link rel="stylesheet" type="text/css" media="screen" href="css/iphone.css?{$_conf['p2expack']}" /> |
330 | | -<script type="text/javascript" src="js/iphone.js?{$_conf['p2expack']}"></script> |
331 | | -EOS; |
332 | | -} else { |
333 | | - $_conf['iphone'] = false; |
334 | | - $_conf['extra_headers_ht'] = $_conf['extra_headers_xht'] = ''; |
335 | | -} |
336 | | - |
337 | | - |
338 | 339 | // }}} |
339 | 340 | // {{{ クエリーによる強制ビュー指定 |
340 | 341 |
|
|
385 | 386 | // {{{ DOCTYPE HTML 宣言 |
386 | 387 |
|
387 | 388 | $ie_strict = false; |
388 | | -if (!$_conf['ktai']) { |
| 389 | +if ($_conf['iphone']) { |
| 390 | + $_conf['doctype'] = <<<EODOC |
| 391 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 392 | + "http://www.w3.org/TR/html4/loose.dtd">\n |
| 393 | +EODOC; |
| 394 | +} elseif (!$_conf['ktai']) { |
389 | 395 | if ($ie_strict) { |
390 | 396 | $_conf['doctype'] = <<<EODOC |
391 | 397 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
|