Mas Studio Limited
actualizes imagination with creative designs
We strive to create exquisite interior space to realize stylish “Green” living
}
$name = $config['prefix'] . $name;
// 设置cookie
if (is_array($value)) {
array_walk_recursive($value, 'self::jsonFormatProtect', 'encode');
$value = 'think:' . json_encode($value);
}
$expire = !empty($config['expire']) ? $_SERVER['REQUEST_TIME'] + intval($config['expire']) : 0;
if ($config['setcookie']) {
setcookie($name, $value, $expire, $config['path'], $config['domain'], $config['secure'], $config['httponly']);
}
$_COOKIE[$name] = $value;
}
/**
* 永久保存Cookie数据
* @param string $name cookie名称
* @param mixed $value cookie值
* @param mixed $option 可选参数 可能会是 null|integer|string
name | ods_think_var |
value | en-us |
option | Resource |
config | { "prefix": "ods_", "expire": 0, "path": "\/", "domain": "", "secure": false, "httponly": "", "setcookie": true } |
expire | 0 |
id | 10 |
USER | www |
HOME | /home/www |
PATH_TRANSLATED | redirect:/index.php/project.html |
PATH_INFO | /project.html |
SCRIPT_NAME | /index.php |
REQUEST_URI | /project.html?id=10 |
QUERY_STRING | id=10 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | id=10 |
REDIRECT_URL | /project.html |
REMOTE_PORT | 46817 |
SCRIPT_FILENAME | /egsdata/www/mas-intdesign/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /egsdata/www/mas-intdesign |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /egsdata/www/mas-intdesign |
REMOTE_ADDR | 13.59.247.133 |
SERVER_PORT | 80 |
SERVER_ADDR | 139.162.58.163 |
SERVER_NAME | mas-intdesign.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at mas-intdesign.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/bin:/bin |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
HTTP_CACHE_CONTROL | no-cache |
HTTP_PRAGMA | no-cache |
HTTP_CONNECTION | keep-alive |
HTTP_HOST | mas-intdesign.com |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/project.html |
REQUEST_TIME_FLOAT | 1736070689.6911 |
REQUEST_TIME | 1736070689 |
_PHP_FILE_ | /index.php |
INPUT_PATH | |
SERVER_URL | http://mas-intdesign.com |
APP_PATH | /egsdata/www/mas-intdesign/application/ |
THINK_VERSION | 5.0.9 |
THINK_START_TIME | 1736070689.6912 |
THINK_START_MEM | 401136 |
EXT | .php |
DS | / |
THINK_PATH | /egsdata/www/mas-intdesign/core/ |
LIB_PATH | /egsdata/www/mas-intdesign/core/library/ |
CORE_PATH | /egsdata/www/mas-intdesign/core/library/think/ |
TRAIT_PATH | /egsdata/www/mas-intdesign/core/library/traits/ |
ROOT_PATH | /egsdata/www/mas-intdesign/ |
EXTEND_PATH | /egsdata/www/mas-intdesign/extend/ |
VENDOR_PATH | /egsdata/www/mas-intdesign/vendor/ |
RUNTIME_PATH | /egsdata/www/mas-intdesign/runtime/ |
LOG_PATH | /egsdata/www/mas-intdesign/runtime/log/ |
CACHE_PATH | /egsdata/www/mas-intdesign/runtime/cache/ |
TEMP_PATH | /egsdata/www/mas-intdesign/runtime/temp/ |
CONF_PATH | /egsdata/www/mas-intdesign/application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |
AUTH_PW_KEY | 0-k[{UD=wrNz32y^*)Vt;+Km}1gJh@Hpvl8Mi>s_ |
DATA_AUTH_KEY | 0-k[{UD=wrNz32y^*)Vt;+Km}1gJh@Hpvl8Mi>s_ |
FB_APP_ID | |
FB_APP_SECRET | |
IG_APP_ID | |
IG_APP_SECRET | |
SETTING_TABLE | setting |