load($url); $nos = $DOM->getElementsByTagName('IPS'); foreach($nos as $no){ $ip1 = $no->getElementsByTagName( "IP1" )->item(0)->nodeValue; $ip2 = $no->getElementsByTagName( "IP2" )->item(0)->nodeValue; } //echo $ip1.'
'.$ip2; if($_REQUEST['t'] == 'my'){ $ip = $ip1; }else{ $ip = $ip2; } ?>

Autenticando...