- Timestamp:
- 2007/02/25 00:33:58 (20 years ago)
- File:
-
- 1 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 <[email protected]> 16 * @copyright 2003-200 6KUBO Atsuhiro <[email protected]>16 * @copyright 2003-2007 KUBO Atsuhiro <[email protected]> 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 <[email protected]> 91 * @copyright 2003-200 6KUBO Atsuhiro <[email protected]>91 * @copyright 2003-2007 KUBO Atsuhiro <[email protected]> 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 <[email protected]> 284 * @copyright 2003-200 6KUBO Atsuhiro <[email protected]>276 * @copyright 2003-2007 KUBO Atsuhiro <[email protected]> 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 */
Note: See TracChangeset
for help on using the changeset viewer.
