Ist jetzt nur eine Frage, aber gibt es vieleicht eine Möglichkeit die Wow Arsenal seiten aus zu lesen?
z.B: diese => http://eu.wowarmory.com/guild-info.xml?r=Z...3%B6nix&p=1
(OK, ist sicher bischen zu viel verlangt *g* , aber einen Versuch ist es immer wert ^^)
Array
(
[id] => xxxxxxx
[name] => xxxx
[level] => 80
[pvprank] => 0
[race] => Blutelf
[class] => Jäger
[sex] => w
[guild_rank] => 0
[guild_title] => xxxxxxx
[lastupdate] => 2009-01-09 17:31:01
)
cinfig.php ertelln
#----------------------- CONFIG Start ------------------------#
// SERVER AND GUILD SETTINGS
$config['server_name'] = 'die aldor'; // Name of the WoW Realm
$config['guild_name'] = 'die schattten der nacht'; // Name of your Guild
// GILDENRANG NAME DEFFINIEREN
$config['gildenrang0'] = 'Darkshadow'; //Guildrank1
$config['gildenrang1'] = 'ShadowOfficer'; //Guildrank2
$config['gildenrang2'] = 'Shadowkngiht'; //Guildrank3
$config['gildenrang3'] = 'Shadowrunner'; //Guildrank4
$config['gildenrang4'] = 'ShadowTwink'; //Guildrank5
$config['gildenrang5'] = 'ShadowTrial'; //Guildrank6
$config['gildenrang6'] = 'Shadow'; //Guildrank7
$config['gildenrang7'] = 'Shadow'; //Guildrank8
// MINDEST LVL DER ANZEIGE
$config['minlvl'] = '70';
// x stunden wann daten frisch vom server geholt werden
$config['time'] = 2;
// SETTINGS FOR THE GENERAL WEBSITE
$config['url_prefix_char'] = 'http://armory.wow-europe.com/character-sheet.xml?'; // Use for Char links
$config['url_prefix_armory'] = 'http://armory.wow-europe.com/'; // URL for the armory
//Bilder Anzeige in der Auflistung 0/1
$config['wow_bilder'] = 1;
#----------------------- CONFIG Ende ------------------------#
?>
in deine armory.php
// INCLUDE EXTRA FUNCTIONS
include 'roster_functions.php';
// GET: SQL IMPORT STRING
$sql_import_mode = $_GET["sql"];
if($sql_import_mode == 'true'){
$sql_import_mode = true;
} else {
$sql_import_mode = false;
}
// GET: SORT FIELD
$sort_field = $_GET["sort"];
if($sort_field == ''){
$sort_field = 'level';
}
// GET: SORT DIRECTION
$sort_direction = $_GET["direction"];
if($sort_direction == ''){
$sort_direction = 'desc';
}
$count_Members = 0;
$count_Profs = 0;
$armory = new armory('roster', $config['server_name'], $config['guild_name'], NULL, NULL);
$xml_guild = $armory->pull_xml();
$dira = $config['DIR_cache'];
$dir = opendir ("./".$dira);
$new_file_size = 0;
$new_file_time = 0;
$new_file_name = "";
while (false !== ($file = readdir($dir))) {
if (strpos($file, 'guild-info' ) === false ) {
} else {
$file_size = filesize("$dira/$file");
$file_time = filemtime("$dira/$file");
if ( $file_size > 614 ) {
if ( $file_size >= $new_file_size ) {
if ( $file_time >= $new_file_time ) {
$new_file_size = $file_size;
$new_file_time = $file_time;
$new_file_name = $file;
}
} else {
$new_file_size = $file_size;
$new_file_time = $file_time;
$new_file_name = $file;
}
}
}
}
$cachedFile = $config['DIR_cache'].$new_file_name;
$fh = fopen($cachedFile, 'r');
$theData = fread($fh, filesize($cachedFile));
fclose($fh);
$array_Members = buildCharacterArray($xml_guild);
$array_Members_sorted = sortCharacterArray($array_Members, $sort_field, $sort_direction);
printCharacterArray($array_Members_sorted, $sort_field, $sort_direction);
echo '<div align="center">'.base64_decode($str).'</div>';
?>