]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - Classes/class-hook.php
Logs: show search pane (on desktop)
[irc/unrealircd/unrealircd-webpanel.git] / Classes / class-hook.php
index 8efb26b123c1bf04a8d98a97fbb8ccf3b1f7e360..c26bff2fa082fea6bad16f0323e0a9a829ab36f1 100644 (file)
@@ -25,7 +25,7 @@ define('HOOKTYPE_NAVBAR', 100);
  * This doesn't receive anything, however you must still specify an
  * parameter for your hook function, because it's referring to memory. Sorry =]
  * 
- * Currently this is only used by the "sql_auth" plugin by Valware in order to
+ * Currently this is only used by the "sql_db" plugin by Valware in order to
  * redirect users immediately to the login page.
  * 
  * Putting HTML in this hook is not a good idea.
@@ -128,6 +128,27 @@ define('HOOKTYPE_USER_DELETE', 113);
 define('HOOKTYPE_USER_LOGIN', 114);
 
 define('HOOKTYPE_USER_LOGIN_FAIL', 115);
+
+define('HOOKTYPE_USER_PERMISSION_LIST', 116);
+
+define('HOOKTYPE_EDIT_USER', 117);
+
+define('HOOKTYPE_USER_ROLE_LIST', 118);
+
+define('HOOKTYPE_EDIT_ROLE', 119);
+
+define('HOOKTYPE_ADD_ROLE', 120);
+
+define('HOOKTYPE_DEL_ROLE', 121);
+
+define('HOOKTYPE_AUTH_MOD', 200);
+
+/** An upgrade has been detected.
+ * @param array        $versioninfo[]
+ * Array contains: "old_version" and "new_version"
+ */
+define('HOOKTYPE_UPGRADE', 201);
+
 /** 
  *  Class for "Hook"
  * This is the main function which gets called whenever you want to use a Hook.