Changeset 11456 for temp/branches/mobile/data/module
- Timestamp:
- 2007/02/25 00:33:58 (16 years ago)
- Location:
- temp/branches/mobile/data/module/Net/UserAgent
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/mobile/data/module/Net/UserAgent/Mobile.php
r11398 r11456 14 14 * @package Net_UserAgent_Mobile 15 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: Mobile.php,v 1.2 5 2006/11/07 09:25:14kuboa Exp $18 * @version CVS: $Id: Mobile.php,v 1.27 2007/02/20 15:17:16 kuboa Exp $ 19 19 * @since File available since Release 0.1 20 20 */ … … 59 59 * SYNOPSIS: 60 60 * <code> 61 * require_once ('Net/UserAgent/Mobile.php');61 * require_once 'Net/UserAgent/Mobile.php'; 62 62 * 63 63 * $agent = &Net_UserAgent_Mobile::factory($agent_string); … … 89 89 * @package Net_UserAgent_Mobile 90 90 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 91 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>91 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 92 92 * @license http://www.php.net/license/3_0.txt PHP License 3.0 93 * @version Release: @package_version@93 * @version Release: 0.30.0 94 94 * @since Class available since Release 0.1 95 95 */ … … 155 155 } 156 156 $className = "Net_UserAgent_Mobile_{$sub}"; 157 $include = dirname(__FILE__) . "/Mobile/{$sub}.php";158 157 159 158 if (!class_exists($className)) { 160 if (!is_readable($include)) { 159 $file = dirname(__FILE__) . "/Mobile/{$sub}.php"; 160 if (!include_once $file) { 161 161 return PEAR::raiseError(null, 162 162 NET_USERAGENT_MOBILE_ERROR_NOT_FOUND, 163 163 null, null, 164 "Unable to read the $include file", 165 'Net_UserAgent_Mobile_Error', true 166 ); 167 } 168 if (!include_once $include) { 169 return PEAR::raiseError(null, 170 NET_USERAGENT_MOBILE_ERROR_NOT_FOUND, 171 null, null, 172 "Unable to include the $include file", 164 "Unable to include the $file file", 173 165 'Net_UserAgent_Mobile_Error', true 174 166 ); … … 282 274 * @package Net_UserAgent_Mobile 283 275 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 284 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>276 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 285 277 * @license http://www.php.net/license/3_0.txt PHP License 3.0 286 * @version Release: @package_version@278 * @version Release: 0.30.0 287 279 * @since Class available since Release 0.1 288 280 */ -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/AirHPhone.php
r11398 r11456 1 1 <?php 2 2 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 3 // +----------------------------------------------------------------------+ 4 // | PHP version 4 | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 1997-2004 The PHP Group | 7 // +----------------------------------------------------------------------+ 8 // | This source file is subject to version 3.0 of the PHP license, | 9 // | that is bundled with this package in the file LICENSE, and is | 10 // | available through the world-wide-web at the following url: | 11 // | http://www.php.net/license/3_0.txt. | 12 // | If you did not receive a copy of the PHP license and are unable to | 13 // | obtain it through the world-wide-web, please send a note to | 14 // | license@php.net so we can mail you a copy immediately. | 15 // +----------------------------------------------------------------------+ 16 // | Authors: KUBO Atsuhiro <iteman@users.sourceforge.net> | 17 // +----------------------------------------------------------------------+ 18 // 19 // $Id: AirHPhone.php,v 1.9 2006/11/07 09:25:14 kuboa Exp $ 20 // 3 4 /** 5 * PHP versions 4 and 5 6 * 7 * LICENSE: This source file is subject to version 3.0 of the PHP license 8 * that is available through the world-wide-web at the following URI: 9 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 10 * the PHP License and are unable to obtain it through the web, please 11 * send a note to license@php.net so we can mail you a copy immediately. 12 * 13 * @category Networking 14 * @package Net_UserAgent_Mobile 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: AirHPhone.php,v 1.12 2007/02/20 14:39:45 kuboa Exp $ 19 * @link http://www.willcom-inc.com/ja/service/contents_service/club_air_edge/for_phone/homepage/index.html 20 * @see Net_UserAgent_Mobile_Common 21 * @since File available since Release 0.5 22 */ 21 23 22 24 require_once(dirname(__FILE__) . '/Common.php'); 23 25 require_once(dirname(__FILE__) . '/Display.php'); 26 27 // {{{ Net_UserAgent_Mobile_AirHPhone 24 28 25 29 /** … … 32 36 * SYNOPSIS: 33 37 * <code> 34 * require_once ('Net/UserAgent/Mobile.php');38 * require_once 'Net/UserAgent/Mobile.php'; 35 39 * 36 40 * $_SERVER['HTTP_USER_AGENT'] = … … 46 50 * </code> 47 51 * 48 * @package Net_UserAgent_Mobile 49 * @category Networking 50 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 51 * @access public 52 * @version $Revision: 1.9 $ 53 * @see Net_UserAgent_Mobile_Common 54 * @link http://www.ddipocket.co.jp/airh_phone/i_hp.html 52 * @category Networking 53 * @package Net_UserAgent_Mobile 54 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 55 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 56 * @license http://www.php.net/license/3_0.txt PHP License 3.0 57 * @version Release: 0.30.0 58 * @link http://www.willcom-inc.com/ja/service/contents_service/club_air_edge/for_phone/homepage/index.html 59 * @see Net_UserAgent_Mobile_Common 60 * @since Class available since Release 0.5 55 61 */ 56 62 class Net_UserAgent_Mobile_AirHPhone extends Net_UserAgent_Mobile_Common … … 59 65 // {{{ properties 60 66 67 /**#@+ 68 * @access public 69 */ 70 61 71 /** 62 72 * User-Agent name 63 73 * @var string 64 * @access public65 74 */ 66 75 var $name = 'WILLCOM'; 76 77 /**#@-*/ 67 78 68 79 /**#@+ … … 250 261 251 262 /**#@-*/ 263 264 /**#@+ 265 * @access private 266 */ 267 268 /**#@-*/ 269 270 // }}} 252 271 } 272 273 // }}} 253 274 254 275 /* -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/Common.php
r11398 r11456 1 1 <?php 2 2 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 3 // +----------------------------------------------------------------------+ 4 // | PHP version 4 | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 1997-2004 The PHP Group | 7 // +----------------------------------------------------------------------+ 8 // | This source file is subject to version 3.0 of the PHP license, | 9 // | that is bundled with this package in the file LICENSE, and is | 10 // | available through the world-wide-web at the following url: | 11 // | http://www.php.net/license/3_0.txt. | 12 // | If you did not receive a copy of the PHP license and are unable to | 13 // | obtain it through the world-wide-web, please send a note to | 14 // | license@php.net so we can mail you a copy immediately. | 15 // +----------------------------------------------------------------------+ 16 // | Authors: KUBO Atsuhiro <iteman@users.sourceforge.net> | 17 // +----------------------------------------------------------------------+ 18 // 19 // $Id: Common.php,v 1.12 2006/11/07 09:25:14 kuboa Exp $ 20 // 3 4 /** 5 * PHP versions 4 and 5 6 * 7 * LICENSE: This source file is subject to version 3.0 of the PHP license 8 * that is available through the world-wide-web at the following URI: 9 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 10 * the PHP License and are unable to obtain it through the web, please 11 * send a note to license@php.net so we can mail you a copy immediately. 12 * 13 * @category Networking 14 * @package Net_UserAgent_Mobile 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: Common.php,v 1.15 2007/02/20 14:59:19 kuboa Exp $ 19 * @since File available since Release 0.1 20 */ 21 22 // {{{ Net_UserAgent_Mobile_Common 21 23 22 24 /** … … 26 28 * abstraction layer on Net_UserAgent_Mobile. 27 29 * 28 * @package Net_UserAgent_Mobile 29 * @category Networking 30 * @abstract 31 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 32 * @access public 33 * @version $Revision: 1.12 $ 30 * @category Networking 31 * @package Net_UserAgent_Mobile 32 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 33 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 34 * @license http://www.php.net/license/3_0.txt PHP License 3.0 35 * @version Release: 0.30.0 36 * @since Class available since Release 0.1 34 37 */ 35 38 class Net_UserAgent_Mobile_Common extends PEAR … … 81 84 /**#@-*/ 82 85 86 /**#@+ 87 * @access public 88 */ 89 83 90 // }}} 84 91 // {{{ constructor … … 98 105 } 99 106 } 100 101 /**#@+102 * @access public103 */104 107 105 108 // }}} … … 420 423 421 424 /**#@-*/ 425 426 /**#@+ 427 * @access private 428 */ 429 430 /**#@-*/ 431 432 // }}} 422 433 } 434 435 // }}} 423 436 424 437 /* -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/Display.php
r11398 r11456 1 1 <?php 2 2 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 3 // +----------------------------------------------------------------------+ 4 // | PHP version 4 | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 1997-2004 The PHP Group | 7 // +----------------------------------------------------------------------+ 8 // | This source file is subject to version 3.0 of the PHP license, | 9 // | that is bundled with this package in the file LICENSE, and is | 10 // | available through the world-wide-web at the following url: | 11 // | http://www.php.net/license/3_0.txt. | 12 // | If you did not receive a copy of the PHP license and are unable to | 13 // | obtain it through the world-wide-web, please send a note to | 14 // | license@php.net so we can mail you a copy immediately. | 15 // +----------------------------------------------------------------------+ 16 // | Authors: KUBO Atsuhiro <iteman@users.sourceforge.net> | 17 // +----------------------------------------------------------------------+ 18 // 19 // $Id: Display.php,v 1.9 2006/11/07 09:25:14 kuboa Exp $ 20 // 3 4 /** 5 * PHP versions 4 and 5 6 * 7 * LICENSE: This source file is subject to version 3.0 of the PHP license 8 * that is available through the world-wide-web at the following URI: 9 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 10 * the PHP License and are unable to obtain it through the web, please 11 * send a note to license@php.net so we can mail you a copy immediately. 12 * 13 * @category Networking 14 * @package Net_UserAgent_Mobile 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: Display.php,v 1.10 2007/02/20 15:00:06 kuboa Exp $ 19 * @since File available since Release 0.1 20 */ 21 22 // {{{ Net_UserAgent_Mobile_Display 21 23 22 24 /** … … 28 30 * SYNOPSIS: 29 31 * <code> 30 * require_once ('Net/UserAgent/Mobile.php');32 * require_once 'Net/UserAgent/Mobile.php'; 31 33 * 32 34 * $agent = &Net_UserAgent_Mobile::factory(); … … 53 55 * $_SERVER['DOCOMO_MAP'] = '/path/to/DoCoMoMap.xml'; 54 56 * 55 * @package Net_UserAgent_Mobile 56 * @category Networking 57 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 58 * @access public 59 * @version $Revision: 1.9 $ 57 * @category Networking 58 * @package Net_UserAgent_Mobile 59 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 60 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 61 * @license http://www.php.net/license/3_0.txt PHP License 3.0 62 * @version Release: 0.30.0 63 * @since Class available since Release 0.1 60 64 */ 61 65 class Net_UserAgent_Mobile_Display … … 65 69 66 70 /**#@+ 71 * @access public 72 */ 73 74 /**#@-*/ 75 76 /**#@+ 67 77 * @access private 68 78 */ … … 105 115 106 116 /**#@-*/ 117 118 /**#@+ 119 * @access public 120 */ 107 121 108 122 // }}} … … 125 139 } 126 140 127 /**#@+128 * @access public129 */130 131 141 // }}} 132 142 // {{{ calcSize() … … 234 244 235 245 /**#@-*/ 246 247 /**#@+ 248 * @access private 249 */ 250 251 /**#@-*/ 252 253 // }}} 236 254 } 255 256 // }}} 237 257 238 258 /* -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/DoCoMo.php
r11398 r11456 14 14 * @package Net_UserAgent_Mobile 15 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: DoCoMo.php,v 1. 29 2006/11/07 09:25:14 kuboa Exp $18 * @version CVS: $Id: DoCoMo.php,v 1.35 2007/02/20 18:41:04 kuboa Exp $ 19 19 * @link http://www.nttdocomo.co.jp/service/imode/make/content/spec/useragent/index.html 20 20 * @see Net_UserAgent_Mobile_Common … … 37 37 * SYNOPSIS: 38 38 * <code> 39 * require_once ('Net/UserAgent/Mobile.php');39 * require_once 'Net/UserAgent/Mobile.php'; 40 40 * 41 41 * $_SERVER['HTTP_USER_AGENT'] = 'DoCoMo/1.0/P502i/c10'; … … 75 75 * @package Net_UserAgent_Mobile 76 76 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 77 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>77 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 78 78 * @license http://www.php.net/license/3_0.txt PHP License 3.0 79 * @version Release: @package_version@79 * @version Release: 0.30.0 80 80 * @link http://www.nttdocomo.co.jp/service/imode/make/content/spec/useragent/index.html 81 81 * @see Net_UserAgent_Mobile_Common … … 248 248 '504i|251i|^F671iS$|212i|2051|2102V|661i|2701|672i|SO213i|850i' => '4.0', 249 249 'eggy|P751v' => '3.2', 250 '505i|252i|900i|506i|880i|253i|P213i|901i|700i|851i|701i|881i| 800i|600i|882i' => '5.0',251 '902i|702i|851i ' => '6.0',252 '903i ' => '7.0'250 '505i|252i|900i|506i|880i|253i|P213i|901i|700i|851i|701i|881i|^SA800i$|600i|^L601i$|^M702i(S|G)$' => '5.0', 251 '902i|702i|851i|882i|^N601i$|^D800iDS$|^P703imyu$' => '6.0', 252 '903i|703i' => '7.0' 253 253 ); 254 254 } … … 553 553 continue; 554 554 } 555 if (preg_match('/^icc(\w{20})$/', $value, $matches)) { 556 $this->_cardID = $matches[1]; 555 if (preg_match('/^icc(\w{20})?$/', $value, $matches)) { 556 if (count($matches) == 2) { 557 $this->_cardID = $matches[1]; 558 } 557 559 continue; 558 560 } -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/DoCoMoDisplayMap.php
r11398 r11456 14 14 * @package Net_UserAgent_Mobile 15 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: DoCoMoDisplayMap.php,v 1. 29 2006/11/07 09:25:14kuboa Exp $18 * @version CVS: $Id: DoCoMoDisplayMap.php,v 1.32 2007/02/20 18:30:17 kuboa Exp $ 19 19 * @link http://www.nttdocomo.co.jp/service/imode/make/content/spec/screen_area/index.html 20 20 * @see Net_UserAgent_Mobile_Display … … 30 30 * @package Net_UserAgent_Mobile 31 31 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 32 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>32 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 33 33 * @license http://www.php.net/license/3_0.txt PHP License 3.0 34 * @version Release: @package_version@34 * @version Release: 0.30.0 35 35 * @link http://www.nttdocomo.co.jp/service/imode/make/content/spec/screen_area/index.html 36 36 * @see Net_UserAgent_Mobile_Display … … 1121 1121 'color' => 1 1122 1122 ), 1123 'L601I' => array( 1124 'width' => 176, 1125 'height' => 189, 1126 'depth' => 65536, 1127 'color' => 1 1128 ), 1129 'M702IS' => array( 1130 'width' => 240, 1131 'height' => 267, 1132 'depth' => 262144, 1133 'color' => 1 1134 ), 1135 'M702IG' => array( 1136 'width' => 240, 1137 'height' => 267, 1138 'depth' => 262144, 1139 'color' => 1 1140 ), 1123 1141 1124 1142 // i-mode compliant HTML 6.0 … … 1208 1226 'color' => 1 1209 1227 ), 1228 'N902IL' => array( 1229 'width' => 240, 1230 'height' => 270, 1231 'depth' => 262144, 1232 'color' => 1 1233 ), 1210 1234 'P702I' => array( 1211 1235 'width' => 240, … … 1292 1316 'color' => 1 1293 1317 ), 1318 'N601I' => array( 1319 'width' => 240, 1320 'height' => 270, 1321 'depth' => 65536, 1322 'color' => 1 1323 ), 1324 'D800IDS' => array( 1325 'width' => 230, 1326 'height' => 240, 1327 'depth' => 262144, 1328 'color' => 1 1329 ), 1330 'P703IMYU' => array( 1331 'width' => 240, 1332 'height' => 270, 1333 'depth' => 262144, 1334 'color' => 1 1335 ), 1294 1336 1295 1337 // i-mode compliant HTML 7.0 … … 1306 1348 'depth' => 262144, 1307 1349 'color' => 1 1308 ) 1350 ), 1351 'N903I' => array( 1352 'width' => 240, 1353 'height' => 270, 1354 'depth' => 262144, 1355 'color' => 1 1356 ), 1357 'D903I' => array( 1358 'width' => 230, 1359 'height' => 320, 1360 'depth' => 262144, 1361 'color' => 1 1362 ), 1363 'F903I' => array( 1364 'width' => 230, 1365 'height' => 240, 1366 'depth' => 262144, 1367 'color' => 1 1368 ), 1369 'SO903I' => array( 1370 'width' => 240, 1371 'height' => 368, 1372 'depth' => 262144, 1373 'color' => 1 1374 ), 1375 'D903ITV' => array( 1376 'width' => 230, 1377 'height' => 320, 1378 'depth' => 262144, 1379 'color' => 1 1380 ), 1381 'F903IX' => array( 1382 'width' => 230, 1383 'height' => 240, 1384 'depth' => 262144, 1385 'color' => 1 1386 ), 1387 'P903ITV' => array( 1388 'width' => 240, 1389 'height' => 350, 1390 'depth' => 262144, 1391 'color' => 1 1392 ), 1393 'N703ID' => array( 1394 'width' => 240, 1395 'height' => 270, 1396 'depth' => 262144, 1397 'color' => 1 1398 ), 1399 'F703I' => array( 1400 'width' => 230, 1401 'height' => 240, 1402 'depth' => 262144, 1403 'color' => 1 1404 ), 1405 'P703I' => array( 1406 'width' => 240, 1407 'height' => 270, 1408 'depth' => 262144, 1409 'color' => 1 1410 ), 1411 'D703I' => array( 1412 'width' => 230, 1413 'height' => 240, 1414 'depth' => 262144, 1415 'color' => 1 1416 ), 1417 'SH703I' => array( 1418 'width' => 240, 1419 'height' => 240, 1420 'depth' => 262144, 1421 'color' => 1 1422 ), 1423 'SH703I' => array( 1424 'width' => 240, 1425 'height' => 240, 1426 'depth' => 262144, 1427 'color' => 1 1428 ), 1429 'N703IMYU' => array( 1430 'width' => 240, 1431 'height' => 270, 1432 'depth' => 262144, 1433 'color' => 1 1434 ), 1435 'SO703I' => array( 1436 'width' => 240, 1437 'height' => 368, 1438 'depth' => 262144, 1439 'color' => 1 1440 ) 1309 1441 ); 1310 1442 } -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/EZweb.php
r11398 r11456 14 14 * @package Net_UserAgent_Mobile 15 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: EZweb.php,v 1.1 5 2006/11/07 09:25:14kuboa Exp $18 * @version CVS: $Id: EZweb.php,v 1.17 2007/02/20 15:19:07 kuboa Exp $ 19 19 * @link http://www.au.kddi.com/ezfactory/tec/spec/4_4.html 20 20 * @link http://www.au.kddi.com/ezfactory/tec/spec/new_win/ezkishu.html … … 37 37 * SYNOPSIS: 38 38 * <code> 39 * require_once ('Net/UserAgent/Mobile.php');39 * require_once 'Net/UserAgent/Mobile.php'; 40 40 * 41 41 * $_SERVER['HTTP_USER_AGENT'] = 'UP.Browser/3.01-HI02 UP.Link/3.2.1.2'; … … 59 59 * @package Net_UserAgent_Mobile 60 60 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 61 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>61 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 62 62 * @license http://www.php.net/license/3_0.txt PHP License 3.0 63 * @version Release: @package_version@63 * @version Release: 0.30.0 64 64 * @link http://www.au.kddi.com/ezfactory/tec/spec/4_4.html 65 65 * @link http://www.au.kddi.com/ezfactory/tec/spec/new_win/ezkishu.html -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/NonMobile.php
r11398 r11456 1 1 <?php 2 2 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 3 // +----------------------------------------------------------------------+ 4 // | PHP version 4 | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 1997-2004 The PHP Group | 7 // +----------------------------------------------------------------------+ 8 // | This source file is subject to version 3.0 of the PHP license, | 9 // | that is bundled with this package in the file LICENSE, and is | 10 // | available through the world-wide-web at the following url: | 11 // | http://www.php.net/license/3_0.txt. | 12 // | If you did not receive a copy of the PHP license and are unable to | 13 // | obtain it through the world-wide-web, please send a note to | 14 // | license@php.net so we can mail you a copy immediately. | 15 // +----------------------------------------------------------------------+ 16 // | Authors: KUBO Atsuhiro <iteman@users.sourceforge.net> | 17 // +----------------------------------------------------------------------+ 18 // 19 // $Id: NonMobile.php,v 1.10 2006/11/07 09:25:14 kuboa Exp $ 20 // 3 4 /** 5 * PHP versions 4 and 5 6 * 7 * LICENSE: This source file is subject to version 3.0 of the PHP license 8 * that is available through the world-wide-web at the following URI: 9 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 10 * the PHP License and are unable to obtain it through the web, please 11 * send a note to license@php.net so we can mail you a copy immediately. 12 * 13 * @category Networking 14 * @package Net_UserAgent_Mobile 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: NonMobile.php,v 1.12 2007/02/20 15:20:02 kuboa Exp $ 19 * @see Net_UserAgent_Mobile_Common 20 * @since File available since Release 0.1.0 21 */ 21 22 22 23 require_once(dirname(__FILE__) . '/Common.php'); 23 24 require_once(dirname(__FILE__) . '/Display.php'); 25 26 // {{{ Net_UserAgent_Mobile_NonMobile 24 27 25 28 /** … … 32 35 * SYNOPSIS: 33 36 * <code> 34 * require_once ('Net/UserAgent/Mobile.php');37 * require_once 'Net/UserAgent/Mobile.php'; 35 38 * 36 39 * $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/4.0'; … … 38 41 * </code> 39 42 * 40 * @package Net_UserAgent_Mobile 41 * @category Networking 42 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 43 * @access public 44 * @version $Revision: 1.10 $ 45 * @see Net_UserAgent_Mobile_Common 43 * @category Networking 44 * @package Net_UserAgent_Mobile 45 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 46 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 47 * @license http://www.php.net/license/3_0.txt PHP License 3.0 48 * @version Release: 0.30.0 49 * @see Net_UserAgent_Mobile_Common 50 * @since Class available since Release 0.1.0 46 51 */ 47 52 class Net_UserAgent_Mobile_NonMobile extends Net_UserAgent_Mobile_Common 48 53 { 54 55 // {{{ properties 56 57 /**#@+ 58 * @access public 59 */ 60 61 /**#@-*/ 62 63 /**#@+ 64 * @access private 65 */ 66 67 /**#@-*/ 49 68 50 69 /**#@+ … … 145 164 146 165 /**#@-*/ 166 167 /**#@+ 168 * @access private 169 */ 170 171 /**#@-*/ 172 173 // }}} 147 174 } 175 176 // }}} 148 177 149 178 /* -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/Request.php
r11398 r11456 1 1 <?php 2 2 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 3 // +----------------------------------------------------------------------+ 4 // | PHP version 4 | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 1997-2004 The PHP Group | 7 // +----------------------------------------------------------------------+ 8 // | This source file is subject to version 3.0 of the PHP license, | 9 // | that is bundled with this package in the file LICENSE, and is | 10 // | available through the world-wide-web at the following url: | 11 // | http://www.php.net/license/3_0.txt. | 12 // | If you did not receive a copy of the PHP license and are unable to | 13 // | obtain it through the world-wide-web, please send a note to | 14 // | license@php.net so we can mail you a copy immediately. | 15 // +----------------------------------------------------------------------+ 16 // | Authors: KUBO Atsuhiro <iteman@users.sourceforge.net> | 17 // +----------------------------------------------------------------------+ 18 // 19 // $Id: Request.php,v 1.5 2006/11/07 09:25:14 kuboa Exp $ 20 // 3 4 /** 5 * PHP versions 4 and 5 6 * 7 * LICENSE: This source file is subject to version 3.0 of the PHP license 8 * that is available through the world-wide-web at the following URI: 9 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 10 * the PHP License and are unable to obtain it through the web, please 11 * send a note to license@php.net so we can mail you a copy immediately. 12 * 13 * @category Networking 14 * @package Net_UserAgent_Mobile 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: Request.php,v 1.6 2007/02/20 15:18:26 kuboa Exp $ 19 * @since File available since Release 0.1 20 */ 21 22 // {{{ Net_UserAgent_Mobile_Request 21 23 22 24 /** … … 24 26 * HTTP header containers 25 27 * 26 * @package Net_UserAgent_Mobile 27 * @category Networking 28 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 29 * @access public 30 * @version $Revision: 1.5 $ 28 * @category Networking 29 * @package Net_UserAgent_Mobile 30 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 31 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 32 * @license http://www.php.net/license/3_0.txt PHP License 3.0 33 * @version Release: 0.30.0 34 * @since Class available since Release 0.1 31 35 */ 32 36 class Net_UserAgent_Mobile_Request 33 37 { 38 39 // {{{ properties 40 41 /**#@+ 42 * @access public 43 */ 44 45 /**#@-*/ 46 47 /**#@+ 48 * @access private 49 */ 50 51 /**#@-*/ 34 52 35 53 /**#@+ … … 66 84 67 85 /**#@-*/ 86 87 /**#@+ 88 * @access private 89 */ 90 91 /**#@-*/ 92 93 // }}} 68 94 } 95 96 // }}} 97 // {{{ Net_UserAgent_Mobile_Request_Env 69 98 70 99 /** 71 100 * provides easy way to access environment variables 72 101 * 73 * @package Net_UserAgent_Mobile 74 * @category Networking 75 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 76 * @access public 77 * @version $Revision: 1.5 $ 102 * @category Networking 103 * @package Net_UserAgent_Mobile 104 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 105 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 106 * @license http://www.php.net/license/3_0.txt PHP License 3.0 107 * @version Release: 0.30.0 108 * @since Class available since Release 0.1 78 109 */ 79 110 class Net_UserAgent_Mobile_Request_Env … … 81 112 82 113 // {{{ properties 114 115 /**#@+ 116 * @access public 117 */ 118 119 /**#@-*/ 83 120 84 121 /**#@+ … … 124 161 125 162 /**#@-*/ 163 164 /**#@+ 165 * @access private 166 */ 167 168 /**#@-*/ 169 170 // }}} 126 171 } 172 173 // }}} 127 174 128 175 /* -
temp/branches/mobile/data/module/Net/UserAgent/Mobile/Vodafone.php
r11398 r11456 14 14 * @package Net_UserAgent_Mobile 15 15 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 16 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>16 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 17 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: Vodafone.php,v 1. 8 2006/11/07 09:25:14kuboa Exp $19 * @since File available since Release 0. 118 * @version CVS: $Id: Vodafone.php,v 1.12 2007/02/20 15:21:05 kuboa Exp $ 19 * @since File available since Release 0.20.0 20 20 */ 21 21 … … 23 23 require_once dirname(__FILE__) . '/Display.php'; 24 24 25 // {{{ Net_UserAgent_Mobile_Vodafone 26 25 27 /** 26 28 * Vodafone implementation … … 31 33 * SYNOPSIS: 32 34 * <code> 33 * require_once ('Net/UserAgent/Mobile.php');35 * require_once 'Net/UserAgent/Mobile.php'; 34 36 * 35 37 * $_SERVER['HTTP_USER_AGENT'] = 'J-PHONE/2.0/J-DN02'; … … 58 60 * @package Net_UserAgent_Mobile 59 61 * @author KUBO Atsuhiro <iteman@users.sourceforge.net> 60 * @copyright 2003-200 6KUBO Atsuhiro <iteman@users.sourceforge.net>62 * @copyright 2003-2007 KUBO Atsuhiro <iteman@users.sourceforge.net> 61 63 * @license http://www.php.net/license/3_0.txt PHP License 3.0 62 * @version Release: @package_version@64 * @version Release: 0.30.0 63 65 * @link http://developers.vodafone.jp/dp/tool_dl/web/useragent.php 64 66 * @link http://developers.vodafone.jp/dp/tool_dl/web/position.php 65 67 * @see Net_UserAgent_Mobile_Common 66 * @since Class available since Release 0. 168 * @since Class available since Release 0.20.0 67 69 */ 68 70 class Net_UserAgent_Mobile_Vodafone extends Net_UserAgent_Mobile_Common … … 444 446 $serialNumber) = explode('/', $agent[0]); 445 447 if ($serialNumber) { 446 if ($serialNumber) { 447 if (!preg_match('!^SN(.+)!', $serialNumber, $matches)) { 448 return $this->noMatch(); 449 } 450 $this->_serialNumber = $matches[1]; 448 if (!preg_match('!^SN(.+)!', $serialNumber, $matches)) { 449 return $this->noMatch(); 451 450 } 452 } 453 454 if (!preg_match('!^([a-z]+)([a-z]\d{2,3})$!i', $modelVersion, $matches)) { 451 $this->_serialNumber = $matches[1]; 452 } 453 454 if (!preg_match('!^([a-z]+)((?:[a-z]|\d){4})$!i', $modelVersion, $matches)) { 455 455 return $this->noMatch(); 456 456 }
Note: See TracChangeset
for help on using the changeset viewer.