Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user