1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

bugfix - SF changed their feed back to how it was before.

This commit is contained in:
CaMer0n
2007-02-12 18:16:57 +00:00
parent 5b738ddb72
commit 1e2f814d64

View File

@@ -1,4 +1,4 @@
// $Id: admin_update.sc,v 1.3 2007-02-08 03:37:28 e107coders Exp $
// $Id: admin_update.sc,v 1.4 2007-02-12 18:16:57 e107coders Exp $
global $e107cache,$ns;
if (is_readable(e_ADMIN."ver.php"))
@@ -6,7 +6,7 @@
include(e_ADMIN."ver.php");
}
$feed = "http://sourceforge.net/export/rss2_projfiles.php?group_id=63748&rss_limit=70";
$feed = "http://sourceforge.net/export/rss2_projfiles.php?group_id=63748&rss_limit=5";
$e107cache->CachePageMD5 = md5($e107info['e107_version']);
if($cacheData = $e107cache->retrieve("updatecheck",3600, TRUE))
@@ -31,9 +31,10 @@
$search = array((strstr($val['title'],"(")),"e107","released"," v");
$version = trim(str_replace($search,"",$val['title']));
if(($c > 49) && version_compare($version,$cur_version)==1) // 49 being the number of old versions before this check was introduced.
if(version_compare($version,$cur_version)==1)
{
$ftext = "<a rel='external' href='".$val['link']."' >e107 v".$version."</a><br />\n";
break;
}
$c++;
}