Posted on: 08/08/06 09:32pm
By: Anonymous (Sully)
Parse error: parse error, unexpected '&' in /GeekLog/public_html/staticpages/index.php(59) : eval()'d code on line 1
require_once("/php/rss2html.php?MAXITEMS=3");
[client 71.124.169.19] PHP Warning: Unknown: failed to open stream: HTTP request failed! \x8err\x06\xc8!\xc1\xbf\xb4u\xcd\tG in /GeekLog/plugins/staticpages/functions.inc(523) : eval()'d code on line 1
Posted on: 08/24/06 08:32am
By: J23
// Custom RDF / RSS feed on static page function static_rdf($blockid = false) { $error = array(); if ($blockid != false && is_numeric($blockid) && $blockid != "") { global $_TABLES; if (DB_getItem( $_TABLES['blocks'], 'type', "bid = '{$blockid}'" ) == 'portal') { $sql = "SELECT UNIX_TIMESTAMP(rdfupdated) as date, content, rdfurl FROM {$_TABLES['blocks']} WHERE bid = '" . $blockid . "'"; $result = DB_query( $sql ); $A = DB_fetchArray( $result ); if ( COM_rdfCheck($blockid, $A['rdfurl'], $A['date'] )) { $A['content'] = DB_getItem( $_TABLES['blocks'], 'content', "bid = '{$blockid}'" ); } $return = $A['content']; } else { $error[] = 'Block is not of Portal Type'; } } else { $error[] = 'Is not a valid BlockID'; } if (count($error) > 0) { $return = "Something is wrong with the blockid that you entered. Fix this. Otherwise there could be issues"; $return .= '<ul>'; for ( $x = 0; count($error) > $x; $x++ ) { $return .= '<li>' . $error[$x] . '</li>'; } $return .= "</ul>"; } return $return; }