Hi all
Can anyone tellme how to modify the setup for the roster to points to anywere to gather info about spanish realms?
Thanks to every one.
INSERT INTO `renprefix_config` VALUES (
8000,
'realmstatus_url',
'http://www.worldofwarcraft.com/realmstatus/status.xml',
'select{US Servers^http://www.worldofwarcraft.com/realmstatus/status.xml
|European English^http://www.wow-europe.com/en/serverstatus/index.html
|European German^http://www.wow-europe.com/de/serverstatus/index.html
|European French^http://www.wow-europe.com/fr/serverstatus/index.html',
'realmstatus_conf');
INSERT INTO `renprefix_config` VALUES (
8000,
'realmstatus_url',
'http://www.worldofwarcraft.com/realmstatus/status.xml',
'select{US Servers^http://www.worldofwarcraft.com/realmstatus/status.xml
|European English^http://www.wow-europe.com/en/serverstatus/index.xml
|European German^http://www.wow-europe.com/de/serverstatus/index.xml
|European French^http://www.wow-europe.com/fr/serverstatus/index.xml
|European Spanish^http://www.wow-europe.com/es/serverstatus/index.xml',
'realmstatus_conf');
//==========[ XML PARSER ]=============================================================
$xml_parse =& new xmlParser();
switch ( $xml_server['S'] )
{
case 0:
$realmData['serverstatus'] = 'Down';
break;
case 1:
$realmData['serverstatus'] = 'Up';
break;
case 2:
$realmData['serverstatus'] = 'Maintenance';
break;
default:
$realmData['serverstatus'] = 'Unknown';
}
switch ( $xml_server['T'] )
{
case 0:
$realmData['servertype'] = 'RP-PvP';
$realmData['servertypecolor'] = '535600';
break;
case 1:
$realmData['servertype'] = 'Normal';
$realmData['servertypecolor'] = '234303';
break;
case 2:
$realmData['servertype'] = 'PvP';
$realmData['servertypecolor'] = '660D02';
break;
case 3:
$realmData['servertype'] = 'RP';
$realmData['servertypecolor'] = '535600';
break;
default:
$realmData['servertype'] = 'Unknown';
$realmData['servertypecolor'] = '860D02';
}
switch ( $xml_server['L'] )
{
case 1:
$realmData['serverpop'] = 'Low';
$realmData['serverpopcolor'] = '234303';
break;
case 2:
$realmData['serverpop'] = 'Medium';
$realmData['serverpopcolor'] = '535600';
break;
case 3:
$realmData['serverpop'] = 'High';
$realmData['serverpopcolor'] = '660D02';
break;
case 4:
$realmData['serverpop'] = 'Max';
$realmData['serverpopcolor'] = '860D02';
break;
default:
$realmData['serverpop'] = 'Error';
$realmData['serverpopcolor'] = '860D02';
}
switch ( $xml_server['S'] )
{
case "Down":
$realmData['serverstatus'] = 'Down';
break;
case "Up":
$realmData['serverstatus'] = 'Up';
break;
case "Maintenance":
$realmData['serverstatus'] = 'Maintenance';
break;
default:
$realmData['serverstatus'] = 'Unknown';
}
switch ( strtoupper($xml_server['T']) )
{
case "RPPVP":
$realmData['servertype'] = 'RP-PvP';
$realmData['servertypecolor'] = '535600';
break;
case "PVE":
$realmData['servertype'] = 'Normal';
$realmData['servertypecolor'] = '234303';
break;
case "PVP":
$realmData['servertype'] = 'PvP';
$realmData['servertypecolor'] = '660D02';
break;
case "RP":
$realmData['servertype'] = 'RP';
$realmData['servertypecolor'] = '535600';
break;
default:
$realmData['servertype'] = 'Unknown';
$realmData['servertypecolor'] = '860D02';
}
switch ( $xml_server['L'] )
{
case "Low":
$realmData['serverpop'] = 'Low';
$realmData['serverpopcolor'] = '234303';
break;
case "Medium":
$realmData['serverpop'] = 'Medium';
$realmData['serverpopcolor'] = '535600';
break;
case "High":
$realmData['serverpop'] = 'High';
$realmData['serverpopcolor'] = '660D02';
break;
case "Max":
$realmData['serverpop'] = 'Max';
$realmData['serverpopcolor'] = '860D02';
break;
default:
$realmData['serverpop'] = 'Error';
$realmData['serverpopcolor'] = '860D02';
}
Users browsing this forum: No registered users and 1 guest