65535) { $err_msg = "探测端口不合法"; break; } $suc_msg = "保存成功"; \Statistics\Config\Config::$ProviderPort = $detect_port; saveDetectPortToCache(); break; default: $detect_port = \Statistics\Config\Config::$ProviderPort; } include ST_ROOT . '/Views/header.tpl.php'; include ST_ROOT . '/Views/setting.tpl.php'; include ST_ROOT . '/Views/footer.tpl.php'; } function saveDetectPortToCache() { foreach(glob(ST_ROOT . '/Config/Cache/*detect_port.cache.php') as $php_file) { unlink($php_file); } file_put_contents(ST_ROOT . '/Config/Cache/'.time().'.detect_port.cache.php', "