unserialize($content); if (PEAR::isError($status)) { die($status->getMessage()); } $data = $Unserializer->getUnserializedData(); $name = $data['name']; $stats = $data['basic_stats']; $org = $data['organization_membership']; echo 'Character Profile of '.$char.''; # Picture & title echo ''; echo ''; # Char names echo ''; # Link to org, Needs fixing echo ''; # AI Level echo ''; echo '
'.$name['nick'].'Character Info
'; if ($name['firstname'] != "") echo $name['firstname'].' "'; echo $name['nick']; if ($name['lastname'] != "") echo '" '.$name['lastname']; echo ''; # Char details echo '
'; echo '
  • Level: '.$stats['level'].'
  • '; echo '
  • Breed: '.$stats['breed'].'
  • '; echo '
  • Gender: '.$stats['gender'].'
  • '; if ($stats['faction']=="Clan") { echo '
  • Faction: Clan
  • '; }else if ($stats['faction']=="Omni") { echo '
  • Faction: Omni
  • '; }else if ($stats['faction']=="Neutral") { echo '
  • Faction: Neutral
  • '; } echo '
  • Profession: '.$stats['profession'].' ('.$stats['profession_title'].')
  • '; echo '
'; echo $org['rank'].' of ' .$org['organization_name'].''; echo '
'; echo 'Defender Rank: '.$stats['defender_rank'].' ('.$stats['defender_rank_id'].')'; echo '
'; # Back button echo 'Back'; echo '
'; echo '
'; # The link to profile generator echo 'Link to Profile:
'; # The link to picture url echo 'Link to Picture:
'; echo ''; echo '
Levelling Graph of '.ucfirst($char).''; echo '
'; echo '
'; echo 'Levelling graph for '.$char.' '; echo '
'; echo ''; # Finds out which dimension the reader is viewing and then changes links accordingly echo ucfirst($char).' on other dimensions:'; echo '
'; if ($dim=="1") { $handle = fopen('http://teamflux.org/aotools/member.php?char='.$char.'&dim='.$dim.'', 'r'); while(!feof($handle)) $dump .= fgets($handle, 1024); if (preg_match("/XML_Parser: Undeclared entity error at XML input line 9:7/is", $dump)) { echo 'Rimor (RK2)'; } else { echo 'Rimor (RK2)'; } echo '
'; echo 'Die Neue Welt (German Server)'; } elseif ($dim=="2") { echo 'Atlantean (RK1)'; echo '
'; echo 'Die Neue Welt (German Server)'; } elseif ($dim=="3") { echo 'Atlantean (RK1)'; echo '
'; echo 'Rimor (RK2)'; } ?>