query("SELECT threadid,forumid,title,pagetext,FROM_UNIXTIME(dateline,'%d/%m/%Y') as adateline FROM cms_DC_forum_temp WHERE forumid='29' ORDER BY dateline DESC LIMIT 0,6"); while ($row=$res->fetchRow(MDB2_FETCHMODE_ASSOC)) { $entry=array(); $entry[0]=$row['threadid']; $entry[1]=$row['title']; $entry[2]=$row['pagetext']; $entry[3]=$row['adateline']; $entries[]=$entry; } return $entries; } function getSpotlight() { global $db; $res=$db->query("SELECT threadid,forumid,title,pagetext,FROM_UNIXTIME(dateline,'%d/%m/%Y') as adateline FROM cms_DC_forum_temp WHERE forumid='68' ORDER BY dateline DESC LIMIT 0,6"); while ($row=$res->fetchRow(MDB2_FETCHMODE_ASSOC)) { $entry=array(); $entry[0]=$row['threadid']; $entry[1]=$row['title']; $entry[2]=$row['pagetext']; $entry[3]=$row['adateline']; $entries[]=$entry; } return $entries; } function getTwitter() { global $db; $res=$db->query("SELECT * FROM twitter_feed ORDER BY pub_dt DESC LIMIT 0,6"); while ($row=$res->fetchRow(MDB2_FETCHMODE_ASSOC)) { $entries[]=$row; } return $entries; } function getEvents() { global $db; $res=$db->query("SELECT * FROM events"); $row=$res->fetchRow(MDB2_FETCHMODE_ASSOC); return $row['events_txt']; } function getBlog() { $url = "http://www.darkfallonline.com/blog/feed/"; if($xml = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA)) { $result["title"] = $xml->xpath("/rss/channel/item/title"); $result["link"] = $xml->xpath("/rss/channel/item/link"); $result["pubDate"] = $xml->xpath("/rss/channel/item/pubDate"); foreach($result as $key => $attribute) { $i=0; foreach($attribute as $element) { if ($key=='title') { $ret[$i][$key] = (string) $element; }else{ if ($key=='pubDate') { $ret[$i]['pub_dt'] = date('Y-m-d H:i:s',strtotime((string)$element)); }else{ $ret[$i][$key] = (string)$element; } } $i++; } } return $ret; } else return false; } ?> Darkfall
".$data[$i][1]."

"; $i++; } ?>
".$data[$i][1]."

"; $i++; } ?>

"; $i++; } ?>

Notice: Undefined variable: data in /var/www/www.eu1.darkfallonline.com/htdocs/news/index.php on line 239
".$data[$i]['title']."

"; $i++; } ?>
".$data[$i][1]."

"; $i++; } ?>
Darkfall Third Party Credits