From: Valerie Pond Date: Thu, 22 Jun 2023 05:32:11 +0000 (+0100) Subject: Update with plugins page X-Git-Tag: 0.9~24 X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/e47cb29f1f12b3196bd9f7c24b58b0e3a9b440b6?hp=e2e9f05c10a11e5ab6e7913399c6a32a3b58d4c7 Update with plugins page --- diff --git a/Classes/class-plugin-git.php b/Classes/class-plugin-git.php new file mode 100644 index 0000000..e0610ac --- /dev/null +++ b/Classes/class-plugin-git.php @@ -0,0 +1,84 @@ +err = curl_error($curl); + else + $this->data = json_decode($response, false); + } + public function ifInstalledLabel($name) + { + if (Plugins::plugin_exists($name)) + { + ?> +
Installed ✅
+ +
+ data as $p) + { + if (is_string($p)) + continue; + + ?> + +
+
+
+
+ title; $this->ifInstalledLabel($p->name); ?>
+
+
+
+
title ?>
+

description ?>

+
+ +
+ = 3) // only do three per row. WARNING: untested due to not having more than 2 plugins atm... + { + ?> +
+
+name,$name) && (!$version || ($version >= $p->version))) + if (!strcmp($p->name,$name) && (!$version || ($version >= $p->version))) return true; return false; diff --git a/settings/add-plugin.php b/settings/add-plugin.php new file mode 100644 index 0000000..21ecf90 --- /dev/null +++ b/settings/add-plugin.php @@ -0,0 +1,33 @@ + + +

Add New Plugin

+
+ + + We've got two fantastic plugins to kick things off (one practical, one for a playful twist).
+ Join us on this exciting journey and unlock new possibilities for your website!

"; + $p->do_list(); + } else { + echo "Oops! Could not find plugins list. This is an upstream error, which means there is nothing wrong
+ on your panel, it just means we can't check the plugins information webpage for some reason.
+ Nothing to worry about! Try again later!"; + } + require_once "../inc/footer.php"; + +?> + + + \ No newline at end of file diff --git a/settings/plugins.php b/settings/plugins.php index a787dd8..b6cf5a7 100644 --- a/settings/plugins.php +++ b/settings/plugins.php @@ -6,9 +6,9 @@ require_once "../inc/header.php"; ?> -

Active Plugins

+

Active Plugins Add New


-To load and unload plugins, see the plugins section of your config.php
+Your available plugins.