This commit is contained in:
Yagami
2019-11-14 16:54:48 +08:00
2 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ Version: 6.1
Section: utils
Priority: optional
Architecture: all
Depends: apache2, libapache2-mod-php5 | libapache2-mod-php5filter | php5-cgi | php5-fpm | php5, php5-cli, php5-common, php5-mysql, php5-json, php5-ldap, mysql-server
Recommends: php5-gd
Depends: apache2, libapache2-mod-php | libapache2-mod-phpfilter | php-cgi | php-fpm | php, php-cli, php-common, php-mysql, php-json, php-ldap, mysql-server
Recommends: php-gd
Installed-Size: 512
Maintainer: [url=www.zentao.net]
Description: zentaopms
+10 -1
View File
@@ -201,7 +201,16 @@ class upgrade extends control
if(empty($extensions)) $this->locate(inlink('selectVersion'));
/* Check network. */
$check = @fopen(dirname($this->config->extension->apiRoot), "r");
$curl = curl_init();
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($curl, CURLOPT_URL, dirname($this->config->extension->apiRoot));
$check = curl_exec($curl);
curl_close($curl);
if(!$check) $this->locate(inlink('selectVersion'));
$versions = array();