本文整理匯總了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';