11,7 → 11,7 |
require_once __DIR__ . '/../includes/oidplus.inc.php'; |
|
OIDplus::init(false); |
if (!defined('OIDINFO_API_URL')) { |
if (!OIDplus::baseConfig()->exists('OIDINFO_API_URL')) { |
die("OIDINFO_API_URL not available (API is currently not public)\n"); |
} |
|
208,7 → 208,7 |
# --- |
|
function ft_get_oid_data($oid) { |
$url = OIDINFO_API_URL . '&oid='.urlencode($oid); |
$url = OIDplus::baseConfig()->getValue('OIDINFO_API_URL') . '&oid='.urlencode($oid); |
$cont_json = @file_get_contents($url); |
if (!$cont_json) { |
sleep(5); |