From 54ccc20a801ee23defb7334eee0ab12b2f8a53f5 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 16 Oct 2023 14:24:14 +0800 Subject: [PATCH] - Delete api doclib code. --- module/install/control.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module/install/control.php b/module/install/control.php index c7a0c7a427..649cc72f4e 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -282,10 +282,6 @@ class install extends control if($this->config->edition != 'open') $this->loadModel('upgrade')->processDataset(); - $httpType = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http'; - if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https') $httpType = 'https'; - if(isset($_SERVER['REQUEST_SCHEME']) and strtolower($_SERVER['REQUEST_SCHEME']) == 'https') $httpType = 'https'; - if(strpos($this->app->getClientLang(), 'zh') === 0) $this->loadModel('api')->createDemoData($this->lang->api->zentaoAPI, "{$httpType}://{$_SERVER['HTTP_HOST']}" . $this->app->config->webRoot . 'api.php/v1', '16.0'); $this->loadModel('metric')->updateMetricDate(); $link = $this->config->inQuickon ? inlink('app') : inlink('step6');