mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
added http proxy support
This commit is contained in:
parent
5e3e861e79
commit
cc556d86c3
13
index.php
13
index.php
@ -31,13 +31,12 @@
|
||||
|
||||
|
||||
if ($phpgw_info["user"]["permissions"]["admin"] && $phpgw_info["server"]["checkfornewversion"]) {
|
||||
$fp = fsockopen("phpgroupware.org",80,&$errono,&$errstr,30);
|
||||
fputs($fp,"GET /currentversion HTTP/1.0\nHOST: www.phpgroupware.org\n\n");
|
||||
if ($fp) {
|
||||
while ($line = fgets($fp,4096)) {
|
||||
$lines[] = $line;
|
||||
}
|
||||
fclose($fp);
|
||||
$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();
|
||||
}
|
||||
|
||||
for ($i=0; $i<count($lines); $i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user