"Tools" => [
"IP WHOIS" => "tools/ip-whois.php",
],
- "Settings" => "settings",
+ "Settings" => [
+ "Panel Users" => "settings",
+ "Plugins" => "settings/plugins.php",
+ ],
"News" => "news.php",
);
public $version;
public $description;
public $handle;
+ public $email;
public $error = NULL;
function __construct($handle)
$this->error = "Plugin version not defined";
elseif (!isset($plugin->description))
$this->error = "Plugin description not defined";
+ elseif (!isset($plugin->email))
+ $this->error = "Plugin email not defined";
else
{
$this->handle = $handle;
$this->author = $plugin->author;
$this->version = $plugin->version;
$this->description = $plugin->description;
+ $this->email = $plugin->email;
}
}
}
public $author = "Valware";
public $version = "1.0";
public $description = "An example plugin to show how to make stuff";
+ public $email = "v.a.pond@outlook.com";
function __construct()
{
public $author = "Valware";
public $version = "1.0";
public $description = "Send mail using PHPMailer()";
+ public $email = "v.a.pond@outlook.com";
function __construct()
{
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
$mail->send();
- echo 'Message has been sent';
} catch (Exception $e) {
- echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
+ die("Could not send mail:". $e);
}
}
public $author = "Valware";
public $version = "1.0";
public $description = "Provides a User Auth and Management Panel with an SQL backend";
+ public $email = "v.a.pond@outlook.com";
function __construct()
{
--- /dev/null
+<?php
+
+require_once "../common.php";
+require_once "../header.php";
+
+
+?>
+
+<h2>Active Plugins</h2>
+<br>
+To load and unload plugins, see the <code>PLUGINS</code> section of your <code>config.php</code><br>
+<br>
+<table class="container-xxl table table-sm table-responsive caption-top table-striped">
+ <thead class="table-primary">
+ <form method="post">
+ <th scope="col">Plugin Name</th>
+ <th scope="col">Handle</th>
+ <th scope="col">Version</th>
+ <th scope="col">Description</th>
+ <th scope="col">Author</th>
+ <th scope="col">Contact</th>
+
+ </thead>
+ <tbody>
+ <?php
+ foreach(Plugins::$list as $plugin)
+ {
+ echo "<tr>";
+ echo "<td scope=\"col\">".$plugin->name."</td>";
+ echo "<td scope=\"col\"><code>".$plugin->handle."</code></td>";
+ echo "<td scope=\"col\"><code>".$plugin->version."</code></td>";
+ echo "<td scope=\"col\">".$plugin->description."</td>";
+ echo "<td scope=\"col\">".$plugin->author."</td>";
+ echo "<td scope=\"col\"><a href='mailto:$plugin->email'>".$plugin->email."</a></td>";
+ echo "</tr>";
+ }
+ ?>
+ </tbody>
+</table>
\ No newline at end of file