Warning: Undefined array key "FunVersion" in /www/wwwroot/fortunepacific.net/inc/nav_config.php on line 123
^([A-Za-z0-9-]+\.)+[A-Za-z]{2,4}(?:[\/\?#][\/=\?%\-&~`@[\]\':+!]*([^<>])*)?$/i', $url);
}
public static function format_bytes($size, $decimals = 2){//格式化字节
array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
= 0; $size > 1024 && $i < count($sizes) - 1; $i++) {
1024;
round($size, $decimals) . $sizes[$i];
}
public static function get_domain(){//获取域名
'https://'.$_SERVER['HTTP_HOST'];
}
public static function powered_by($hide=0){//技术支持
$hide ? '' : '';
}
public static function is_https(){//判断是否为https
strtolower($_SERVER['HTTPS']) == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') || (isset($_SERVER['HTTP_X_CLIENT_SCHEME']) && $_SERVER['HTTP_X_CLIENT_SCHEME'] == 'https') || (isset($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')){
true;
false;
Fatal error: Uncaught Error: Class "ly200" not found in /www/wwwroot/fortunepacific.net/static/static/inc/init.php:7
Stack trace:
#0 /www/wwwroot/fortunepacific.net/index.php(40): include()
#1 {main}
thrown in /www/wwwroot/fortunepacific.net/static/static/inc/init.php on line 7