mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix for RIPE NCC API Tools (#14757)
This commit is contained in:
@@ -69,7 +69,7 @@ class RipeApi extends BaseApi
|
||||
private function makeApiCall(string $uri, array $options): mixed
|
||||
{
|
||||
try {
|
||||
$response_data = $this->getClient()->get($uri, $options)->json();
|
||||
$response_data = $this->getClient()->get($uri, $options['query'])->json();
|
||||
if (isset($response_data['status']) && $response_data['status'] == 'ok') {
|
||||
return $response_data;
|
||||
} else {
|
||||
|
@@ -18,10 +18,10 @@ $no_refresh = true;
|
||||
<form class="form-horizontal" action="" method="post">
|
||||
<?php echo csrf_field() ?>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="data_radio" value="abuse-contact-finder">Abuse Contact Finder</label>
|
||||
<label><input type="radio" name="data_radio" value="whois" checked>Whois</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label><input type="radio" name="data_radio" value="whois">Whois</label>
|
||||
<label><input type="radio" name="data_radio" value="abuse-contact-finder">Abuse Contact Finder</label>
|
||||
</div>
|
||||
<br />
|
||||
<div class="input-group">
|
||||
@@ -58,9 +58,9 @@ $no_refresh = true;
|
||||
$.each(data.output.data.records[0], function(row, value) {
|
||||
$('#ripe-output').append(value['key'] + ' = ' + value['value'] + '<br />');
|
||||
});
|
||||
else if (data.output.data.anti_abuse_contacts.abuse_c)
|
||||
$.each(data.output.data.anti_abuse_contacts.abuse_c, function(row, value) {
|
||||
$('#ripe-output').append(value['description'] + ' = ' + value['email'] + '<br />');
|
||||
else if (data.output.data.abuse_contacts)
|
||||
$.each(data.output.data.abuse_contacts, function(row, value) {
|
||||
$('#ripe-output').append("email" + ' = ' + value + '<br />');
|
||||
});
|
||||
},
|
||||
error: function(data) {
|
||||
|
Reference in New Issue
Block a user