* Copyright © 2006 MyBB Group, All Rights Reserved
| * Copyright � 2006 MyBB Group, All Rights Reserved
|
$contents = @implode("", @file($feed));
| $contents = fetch_remote_file($feed);
// This is to work around some dodgy bug we've detected with certain installations of PHP // where certain characters would automagically appear between the fetch_remote_file call // and here which break the feed being imported. // - It could just be that Chris and Tiki need some hot chocolate. if(strpos($contents, "<") !== 0) { $contents = substr($contents, strpos($contents, "<")); } if(strrpos($contents, ">")+1 !== strlen($contents)) { $contents = substr($contents, 0, strrpos($contents, ">")+1); }
|
// Could not load the feed, return an error if(!$contents)
| // Could not load the feed, return an error if(!$contents)
|