200) // Cache for 3.333 minutes lol { // come simba it is taem $curl = curl_init($url); // Set the options curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // Return the response instead of printing it curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); // Set the content type to JSON curl_setopt($curl, CURLOPT_USERAGENT, "UnrealIRCd Admin Panel"); // This is Secret Agent UnrealIRCd Admin Panel reporting for doody // Execute the request $response = curl_exec($curl); // Check for errors if ($response === false) $this->err = curl_error($curl); else { $this->data = json_decode($response, false); $config['third-party-plugins']['data'] = $this->data; $config['third-party-plugins']['timestamp'] = time(); write_config('third-party-plugins'); } } else $this->data = $config['third-party-plugins']['data']; } public function ifInstalledLabel($name, $installed = false) { if ($installed) { ?>
✔ Installed
✔ Installed
err) die("Could not fetch list.\n"); global $config; ?>
data as $p) { $installed = in_array($p->name, $config['plugins']) ? true : false; if (is_string($p)) continue; // use a default image if there was none $p->icon = $p->icon ?? get_config("base_url")."img/no-image-available.jpg"; ?>
plugin-card card text-dark bg-light ml-4 mb-3 w-25" style="min-width:300px">
ifInstalledLabel($p->name); ?>

title ?>

By email" ?>" target="_blank">author ?>
title ?> vversion ?>

description ?>

= 3) { ?>
Want to see your plugin listed here? Make a pull request to our GitHub Repository!