forked from miko2u/pukiwiki-plus-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.ini.php
114 lines (90 loc) · 5.33 KB
/
profile.ini.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
// PukiWiki Plus! - Yet another WikiWikiWeb clone
// $Id: profile.ini.php,v 0.1 2007/08/16 18:42:00 upk Exp $
// Copyright (C)
// 2005-2007 PukiWiki Plus! Team
// 2002-2007 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
// License: GPL v2 or (at your option) any later version
//
/////////////////////////////////////////////////
// User-Agent settings
//
// If you want to ignore embedded browsers for rich-content-wikisite,
// remove (or comment-out) all 'mobile' settings.
//
// If you want to to ignore desktop-PC browsers for simple wikisite,
// copy mobile.ini.php to default.ini.php and customize it.
$agents = array(
// pattern: A regular-expression that matches device(browser)'s name and version
// profile: A group of browsers
// Embedded browsers (Rich-clients for PukiWiki)
// Windows CE (Microsoft(R) Internet Explorer 5.5 for Windows(R) CE)
// Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows CE; sigmarion3)" (sigmarion, Hand-held PC)
array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#', 'profile'=>'default'),
// ACCESS "NetFront" / "Compact NetFront" and thier OEM, expects to be "Mozilla/4.0"
// Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator 1.0) NetFront/3.0" (PlayStation BB Navigator, for SONY PlayStation 2)
// Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Revision:1.1.19) NetFront/3.0" (SONY Clie series)
// Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopia/1.1.0) NetFront/3.0" (SHARP Zaurus)
array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\.]+)#', 'profile'=>'default'),
// Embedded browsers (Non-rich)
// Windows CE (the others)
// Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320 )" (GFORT, NTT DoCoMo)
array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'mobile'),
// ACCESS "NetFront" / "Compact NetFront" and thier OEM
// Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC OnlineStation", USB-Modem for PlayStation 2)
// Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0" (DDI Pocket: AirH" Phone by JRC)
array('pattern'=>'#\b(NetFront)/([0-9\.]+)#', 'profile'=>'mobile'),
array('pattern'=>'#\b(CNF)/([0-9\.]+)#', 'profile'=>'mobile'),
array('pattern'=>'#\b(AveFront)/([0-9\.]+)#', 'profile'=>'mobile'),
array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#', 'profile'=>'mobile'), // The same?
// NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones
// Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c以降は可変
// Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()の中は可変
array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#', 'profile'=>'mobile'),
// Vodafone's embedded browser
// Sample: "J-PHONE/2.0/J-T03" // 2.0は"ブラウザの"バージョン
// Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0"
array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#', 'profile'=>'mobile'),
// Openwave(R) Mobile Browser (EZweb, WAP phone, etc)
// Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) MMP/2.0"
array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#', 'profile'=>'mobile'),
// Opera, dressing up as other embedded browsers
// Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0" (Like CNF at 'mobile'-mode)
array('pattern'=>'#\b(?:DDIPOCKET|WILLCOM)\b.+\b(Opera) ([0-9\.]+)\b#', 'profile'=>'mobile'),
// Planetweb http://www.planetweb.com/
// Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS JP)" ("EGBROWSER", Web browser for PlayStation 2)
array('pattern'=>'#\b(Planetweb)/v([0-9\.]+)#', 'profile'=>'mobile'),
// DreamPassport, Web browser for SEGA DreamCast
// Sample: "Mozilla/3.0 (DreamPassport/3.0)"
array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#', 'profile'=>'mobile'),
// Palm "Web Pro" http://www.palmone.com/us/support/accessories/webpro/
// Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)"
array('pattern'=>'#\b(WebPro)\b#', 'profile'=>'mobile'),
// ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/
// Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)"
array('pattern'=>'#^(Palmscape)/([0-9\.]+)#', 'profile'=>'mobile'),
array('pattern'=>'#^(Xiino)/([0-9\.]+)#', 'profile'=>'mobile'),
// SHARP PDA Browser (SHARP Zaurus)
// Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) "
array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#', 'profile'=>'mobile'),
// WebTV
array('pattern'=>'#^(WebTV)/([0-9\.]+)#', 'profile'=>'mobile'),
// Desktop-PC browsers
// Opera (for desktop PC, not embedded) -- See BugTrack/743 for detail
// NOTE: Keep this pattern above MSIE and Mozilla
// Sample: "Opera/7.0 (OS; U)" (not disguise)
// Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Opera 6.0" (disguise)
array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profile'=>'default'),
// MSIE: Microsoft Internet Explorer (or something disguised as MSIE)
// Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#', 'profile'=>'default'),
// Mozilla Firefox
// NOTE: Keep this pattern above Mozilla
// Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7) Gecko/20040803 Firefox/0.9.3"
array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#', 'profile'=>'default'),
// Loose default: Including something Mozilla
array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#', 'profile'=>'default'),
array('pattern'=>'#^#', 'profile'=>'default'), // Sentinel
);
?>