<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.0.6
 * @ Release: 10/08/2022
 */

if (!defined("WHMCS")) {
    exit("This file cannot be accessed directly");
}
$registrars = [];
try {
    $activeRegistrars = new WHMCS\Module\Registrar();
    foreach ($activeRegistrars->getActiveModules() as $registrar) {
        if ($activeRegistrars->load($registrar)) {
            $registrars[] = ["module" => $activeRegistrars->getLoadedModule(), "display_name" => $activeRegistrars->getDisplayName()];
        }
    }
    if (empty($registrars)) {
        $apiresults = ["status" => "error", "message" => "No Active Registrars Found"];
        return NULL;
    }
    $apiresults = ["status" => "success", "registrars" => $registrars];
} catch (Exception $e) {
    $apiresults = ["result" => "error", "message" => $e->getMessage()];
    return NULL;
}

?>