mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
use strstr
This commit is contained in:
parent
17340424c1
commit
5a548e387d
4
home.php
4
home.php
@ -125,9 +125,9 @@
|
|||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->network->set_addcrlf(False);
|
$GLOBALS['phpgw']->network->set_addcrlf(False);
|
||||||
$lines = $GLOBALS['phpgw']->network->gethttpsocketfile('http://www.egroupware.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(strstr($lines[$i],'currentversion'))
|
||||||
{
|
{
|
||||||
$line_found = explode(':',chop($lines[$i]));
|
$line_found = explode(':',chop($lines[$i]));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user