new $.zui.Messager("当前PHP版本<7.0, 部分功能受限!",{ type: "primary", // 定义颜色主题 time:3000 }).show(); '; } // 扩展检测 $expand = array('fileinfo', 'iconv', 'gd', 'mbstring', 'openssl',); foreach ($expand as $val) { if (!extension_loaded($val)) { echo ' '; } } // 检测是否修改默认密码 if ($config['password'] === 'e6e061838856bf47e1de730719fb2609') { echo ' '; } // 检测是否局域网访问 if (is_local($config['domain']) || is_local($config['imgurl'])) { echo ' '; } // 检测是否存在.user.ini if (file_exists(APP_ROOT . '/.user.ini')) { echo ' '; } // 检测是否存在 IP数据库文件 ip2region.xdb if (!file_exists(__DIR__ . '/ip2region/ip2region.xdb')) { echo ' '; } // 检查当前版本与GitHub版本 if (getVersion() !== get_current_version()) { echo ' '; } // 检测是否开启登录上传 if ($config['mustLogin']) { echo ' '; } // 检测水印图片是否存在 if (!is_file(APP_ROOT . $config['waterImg'])) { echo ' '; } // 检测水印字体是否存在 if (!is_file(APP_ROOT . $config['textFont'])) { echo ' '; } // 检测监黄接口是否可以访问 if ($config['checkImg'] !== 0) { if ($config['checkImg'] == 1) { if (!@IP_URL_Ping('api.moderatecontent.com', 80, 1)) { echo ' '; } } if ($config['checkImg'] == 2) { $ip = parse_url($config['nsfwjs_url'])['host']; $port = parse_url($config['nsfwjs_url'])['port']; if (filter_var($ip, FILTER_VALIDATE_IP)) { if (!@IP_URL_Ping($ip, $port, 1)) { echo ' '; } } else { if (!@IP_URL_Ping($ip, 80, 1)) { echo ' '; } } } } if (!function_exists('fastcgi_finish_request')) { echo ' '; }