]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - plugins.php
Disable permission checks when no auth plugin exists
[irc/unrealircd/unrealircd-webpanel.git] / plugins.php
index 6d521eb87b6424c2d46778286095018c5a4d6d82..3bf8b9a816b20e56f42e1a04f8bc4ff975f8bb9e 100644 (file)
@@ -121,4 +121,17 @@ function require_plugin($name, $version)
 {
        if (!Plugins::plugin_exists($name,$version))
                die("Missing plugin: $name v$version");
+}
+
+
+
+/* I'm not a fan of globals */
+class AuthModLoaded
+{
+       public static $status = 0;
+}
+
+function is_auth_provided()
+{
+       return AuthModLoaded::$status;
 }
\ No newline at end of file