本文整理汇总了PHP中utility::isMobileBrowser方法的典型用法代码示例。如果您正苦于以下问题:PHP utility::isMobileBrowser方法的具体用法?PHP utility::isMobileBrowser怎么用?PHP utility::isMobileBrowser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类utility
的用法示例。
在下文中一共展示了utility::isMobileBrowser方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
// item status rules
define('NO_LOAN_TRANSACTION', 1);
define('SKIP_STOCK_TAKE', 2);
// command execution status
define('BINARY_NOT_FOUND', 127);
define('BINARY_FOUND', 1);
define('COMMAND_SUCCESS', 0);
define('COMMAND_FAILED', 2);
// simbio main class inclusion
require SIMBIO_BASE_DIR . 'simbio.inc.php';
// simbio security class
require SIMBIO_BASE_DIR . 'simbio_UTILS' . DIRECTORY_SEPARATOR . 'simbio_security.inc.php';
// we must include utility library first
require LIB_DIR . 'utility.inc.php';
// check if we are in mobile browser mode
if (utility::isMobileBrowser()) {
define('LIGHTWEIGHT_MODE', 1);
}
/* AJAX SECURITY */
$sysconf['ajaxsec_user'] = 'ajax';
$sysconf['ajaxsec_passwd'] = 'secure';
$sysconf['ajaxsec_ip_enabled'] = 0;
$sysconf['ajaxsec_ip_allowed'] = '';
/* Custom base URL */
$sysconf['baseurl'] = '';
/* session login timeout in second */
$sysconf['session_timeout'] = 7200;
/* default application language */
$sysconf['default_lang'] = 'en_US';
/* HTTP header */
header('Content-type: text/html; charset=UTF-8');
示例2: define
// command execution status
define('BINARY_NOT_FOUND', 127);
define('BINARY_FOUND', 1);
define('COMMAND_SUCCESS', 0);
define('COMMAND_FAILED', 2);
// simbio main class inclusion
require SIMBIO_BASE_DIR.'simbio.inc.php';
// simbio security class
require SIMBIO_BASE_DIR.'simbio_UTILS'.DIRECTORY_SEPARATOR.'simbio_security.inc.php';
// we must include utility library first
require LIB_DIR.'utility.inc.php';
// check if we are in mobile browser mode
if (utility::isMobileBrowser()) { define('LIGHTWEIGHT_MODE', 1); }
/* AJAX SECURITY */
$sysconf['ajaxsec_user'] = 'ajax';
$sysconf['ajaxsec_passwd'] = 'secure';
$sysconf['ajaxsec_ip_enabled'] = 0;
$sysconf['ajaxsec_ip_allowed'] = '';
/* Custom base URL */
$sysconf['baseurl'] = '';
/* session login timeout in second */
$sysconf['session_timeout'] = 7200;
/* default application language */
$sysconf['default_lang'] = 'en_US';