summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Burschka2012-10-31 23:57:55 +0100
committerChristoph Burschka2012-10-31 23:57:55 +0100
commit82059dd246f979b783bd5b14972595d1660b91e3 (patch)
tree6ca9cfcdf7d46b448a5f31b1f5b4fb18c4663f66
parentAdd phpbb4 plugin (for trunk of phpBB) (diff)
downloadejabberd-auth-php-82059dd246f979b783bd5b14972595d1660b91e3.tar.gz
Huge overhaul to deal with the global variables more cleanly. Avoid globals wherever possible, to avoid collisions with CMS systems.
-rw-r--r--core/EjabberdAuth.php (renamed from core/JabberAuth.php)0
-rw-r--r--core/EjabberdAuthBridge.php12
2 files changed, 12 insertions, 0 deletions
diff --git a/core/JabberAuth.php b/core/EjabberdAuth.php
index 3e9d4df..3e9d4df 100644
--- a/core/JabberAuth.php
+++ b/core/EjabberdAuth.php
diff --git a/core/EjabberdAuthBridge.php b/core/EjabberdAuthBridge.php
new file mode 100644
index 0000000..68a9a25
--- /dev/null
+++ b/core/EjabberdAuthBridge.php
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * Must be implemented by every plugin.
+ */
+abstract class EjabberdAuthBridge {
+ abstract function isuser($username, $server);
+ abstract function auth($username, $server, $password);
+ abstract function setpass($username, $server, $password);
+ abstract function tryregister($username, $server, $password);
+ abstract function removeuser($username, $server);
+}