function if130(){ document.write('// The 4 variables that must be passed to the gateway...'); document.write(' '); document.write(' $id = ""; // Your players 'System ID'. 16 char alpha-numeric code (eg. O7EDXZQ1O2HVC62B)'); document.write(' $hash = ""; // Authentication hash, available from your control panel (Setup/Edit Player -> API Access)'); document.write(' $mode = "song"; // The type you want to update (song, '); document.write(' $value = "";'); document.write(' '); document.write(' '); document.write(' // Call the API'); document.write(' $result = @file_get_contents("http://api.customplayer.net/?id=".$id."&hash=".$hash."&mode=".$mode."&value=".$value."&".time());'); document.write(' '); document.write(' if(!$result){'); document.write(' echo "
There has been an error, the API could not be called!
";'); document.write(' }else{'); document.write(' '); document.write(' if($result == "SUCCESS"){'); document.write(' echo "The API was called successfully.
";'); document.write(' }else{'); document.write(' echo "The API was called, but the requested operation was not successful.
";'); document.write(' }'); document.write(' }'); document.write(''); document.write('?> '); }