X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/c44f6efadb3d0054dd25bca8e719dfb0e37f12a0..99eb79c42a9a0fe3b6ffedd3e2e3c611018072da:/Classes/class-hook.php diff --git a/Classes/class-hook.php b/Classes/class-hook.php index 8efb26b..c26bff2 100644 --- a/Classes/class-hook.php +++ b/Classes/class-hook.php @@ -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.