Switch to different host for currentversion check

This commit is contained in:
Miles Lott 2004-01-26 14:00:52 +00:00
parent 2f6ad147af
commit 17340424c1
2 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@
$GLOBALS['phpgw_info']['server']['checkfornewversion'])) $GLOBALS['phpgw_info']['server']['checkfornewversion']))
{ {
$GLOBALS['phpgw']->network->set_addcrlf(False); $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; $i<count($lines); $i++) for ($i=0; $i<count($lines); $i++)
{ {
if (ereg('currentversion',$lines[$i])) if (ereg('currentversion',$lines[$i]))
@ -135,7 +135,7 @@
if($GLOBALS['phpgw']->common->cmp_version($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],$line_found[1])) if($GLOBALS['phpgw']->common->cmp_version($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],$line_found[1]))
{ {
echo '<p>There is a new version of eGroupWare available. <a href="' echo '<p>There is a new version of eGroupWare available. <a href="'
. 'http://www.phpgroupware.org">http://www.phpgroupware.org</a>'; . 'http://www.egroupware.org">http://www.egroupware.org</a>';
} }
$_found = False; $_found = False;

View File

@ -77,7 +77,7 @@
} }
if(version_compare(phpversion(),'4.3.0') >= 0) 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) if($this->socket)
{ {
stream_set_timeout($this->socket,$timeout,0); stream_set_timeout($this->socket,$timeout,0);
@ -85,7 +85,7 @@
} }
else else
{ {
$this->socket = fsockopen($server,$port,$errcode,$errmsg); $this->socket = @fsockopen($server,$port,$errcode,$errmsg);
} }
if(!$this->socket) if(!$this->socket)
{ {