1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Working on the xml class so we are using simplexml when available. Also have a php4 compatible function

This commit is contained in:
mcfly
2008-01-20 04:46:35 +00:00
parent 796d57336a
commit 09fec54db4
5 changed files with 208 additions and 204 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/newsfeed_functions.php,v $
| $Revision: 1.2 $
| $Date: 2007-02-07 23:28:17 $
| $Author: e107coders $
| $Revision: 1.3 $
| $Date: 2008-01-20 04:46:35 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
@@ -25,7 +25,7 @@ if(!function_exists("checkUpdate"))
{
global $sql, $tp;
require_once(e_HANDLER."xml_class.php");
$xml = new parseXml;
$xml = new xmlClass;
require_once(e_HANDLER."magpie_rss.php");
if ($sql -> db_Select("newsfeed", "*", $tp -> toDB($query, true)))
@@ -36,7 +36,7 @@ if(!function_exists("checkUpdate"))
extract ($feed);
if($newsfeed_timestamp + $newsfeed_updateint < time())
{
if($rawData = $xml -> getRemoteXmlFile($newsfeed_url))
if($rawData = $xml->getRemoteFile($newsfeed_url))
{
$rss = new MagpieRSS( $rawData );
$serializedArray = addslashes(serialize($rss));