possible fix fro check for currentversion

This commit is contained in:
skeeter 2000-12-08 12:43:54 +00:00
parent 1c59def639
commit f19328bb33

View File

@ -57,13 +57,7 @@
(isset($phpgw_info["server"]["checkfornewversion"]) &&
$phpgw_info["server"]["checkfornewversion"])) {
$phpgw->network->set_addcrlf(False);
if ($phpgw->network->open_port("phpgroupware.org",80,30)) {
$phpgw->network->write_port("GET /currentversion HTTP/1.0\nHOST: www.phpgroupware.org\n\n");
while ($line = $phpgw->network->read_port())
$lines[] = $line;
$phpgw->network->close_port();
}
$lines = $phpgw->network->gethttpsocketfile("http://www.phpgroupware.org/currentversion");
for ($i=0; $i<count($lines); $i++) {
if (ereg("currentversion",$lines[$i])) {
$line_found = explode(":",chop($lines[$i]));