View Single Post
Old 25th October 2017, 01:13   #9
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,528
PHP Code:
/* ... making it smart(er) -- leave the password at the default and we'll use /played instead of /admin.cgi */
if ($sPass <> "CHANGEME")
   
$url file_get_contents("http://".$sIP.":".$sPort"/admin.cgi?pass=".$sPass."&mode=viewxml&page=4&sid=".$sID);
else
   
$url file_get_contents("http://".$sIP.":".$sPort."/played?type=xml&sid=".$sID); 
djSpinnerCee is online now   Reply With Quote