From 17340424c107920b7979eec0b6a6dda2ed86eeac Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 26 Jan 2004 14:00:52 +0000 Subject: [PATCH] Switch to different host for currentversion check --- home.php | 4 ++-- phpgwapi/inc/class.network.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/home.php b/home.php index 715750bd2f..5472924c50 100755 --- a/home.php +++ b/home.php @@ -124,7 +124,7 @@ $GLOBALS['phpgw_info']['server']['checkfornewversion'])) { $GLOBALS['phpgw']->network->set_addcrlf(False); - $lines = $GLOBALS['phpgw']->network->gethttpsocketfile('http://www.phpgroupware.org/currentversion'); + $lines = $GLOBALS['phpgw']->network->gethttpsocketfile('http://www.egroupware.org/currentversion'); for ($i=0; $icommon->cmp_version($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],$line_found[1])) { echo '

There is a new version of eGroupWare available. http://www.phpgroupware.org'; + . 'http://www.egroupware.org">http://www.egroupware.org'; } $_found = False; diff --git a/phpgwapi/inc/class.network.inc.php b/phpgwapi/inc/class.network.inc.php index bf8c0cd709..2d292a1d6c 100644 --- a/phpgwapi/inc/class.network.inc.php +++ b/phpgwapi/inc/class.network.inc.php @@ -77,7 +77,7 @@ } if(version_compare(phpversion(),'4.3.0') >= 0) { - $this->socket = fsockopen($server,$port,$errcode,$errmsg,$timeout); + $this->socket = @fsockopen($server,$port,$errcode,$errmsg,$timeout); if($this->socket) { stream_set_timeout($this->socket,$timeout,0); @@ -85,7 +85,7 @@ } else { - $this->socket = fsockopen($server,$port,$errcode,$errmsg); + $this->socket = @fsockopen($server,$port,$errcode,$errmsg); } if(!$this->socket) {