Old Code
if ($region = 'us') {
$url = 'http://www.wowarmory.com/guild-info.xml';
} else {
$url = 'http://eu.wowarmory.com/guild-info.xml';
}
New Code
if ($region == 'us') {
$url = 'http://www.wowarmory.com/guild-info.xml';
} else {
$url = 'http://eu.wowarmory.com/guild-info.xml';
}
And a little modification on R string for the world server with 's in the name.
old code
$url .= '?r=' . $realm . '&n=' . $guild . '&p=1';
new code
$url .= '?r=' . stripslashes($realm) . '&n=' . $guild . '&p=1';