function _idlerpg($name) {
$doc = new DOMDocument();
$doc->load('http://idlerpg.no-ip.org/xml.php?player=nullmark');
$level = $doc->getElementsByTagName('level')->item(0)->nodeValue;
$class = $doc->getElementsByTagName('class')->item(0)->nodeValue;
$ttl = $doc->getElementsByTagName('ttl')->item(0)->nodeValue;
if($ttl>3600) {
$m = floor($ttl/60);
$h = floor($m/60);
//$ttl = ''.$h.':'.($m-($h*60)).':'.($ttl-($m*60)).'';
$ttl = sprintf('%02d:%02d:%02d', $h, $m-($h*60), $ttl-($m*60));
} else $ttl = "$ttl minutes";
$onl = $doc->getElementsByTagName('online')->item(0)->nodeValue;
$idle = $doc->getElementsByTagName('totalidled')->item(0)->nodeValue;
$trueneutral = array('g'=>'good', 'e'=>'evil', 'n'=>'neutral');
$align = $trueneutral[$doc->getElementsByTagName('alignment')->item(0)->nodeValue];
return "I'm $name, a level $level $class. I'm $align and I level up in $ttl.";
}
?>
2 (call_user_func_array() expects parameter 1 to be a valid callback, function '_idlerpg' not found or invalid function name) in /home/mark/public_html/code/fileHandlerSTXT.php:201
8 (Undefined offset: 8) in /home/mark/public_html/code/lazydoc.php:185