mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
添加IS_MAC常量
This commit is contained in:
1
base.php
1
base.php
@@ -49,6 +49,7 @@ defined('APP_MODE') or define('APP_MODE', function_exists('saeAutoLoader') ? 'sa
|
||||
// 环境常量
|
||||
define('IS_CGI', strpos(PHP_SAPI, 'cgi') === 0 ? 1 : 0);
|
||||
define('IS_WIN', strstr(PHP_OS, 'WIN') ? 1 : 0);
|
||||
define('IS_MAC', strstr(PHP_OS, 'Darwin') ? 1 : 0);
|
||||
define('IS_CLI', PHP_SAPI == 'cli' ? 1 : 0);
|
||||
define('IS_AJAX', (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') ? true : false);
|
||||
define('NOW_TIME', $_SERVER['REQUEST_TIME']);
|
||||
|
||||
Reference in New Issue
Block a user