X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/e8b225fd0d606166c953be789f930e594ddf8bb1..452b8eada34a0857aee8b5ea2a1dcb0a550626d3:/Classes/class-hook.php diff --git a/Classes/class-hook.php b/Classes/class-hook.php index e9ba379..1f6878f 100644 --- a/Classes/class-hook.php +++ b/Classes/class-hook.php @@ -25,13 +25,16 @@ 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_db" plugin by Valware in order to - * redirect users immediately to the login page. - * * Putting HTML in this hook is not a good idea. */ define('HOOKTYPE_PRE_HEADER', 101); +/** HOOKTYPE_HEADER + * + * This is run after/during the header is sent. You can call your global scripts, global css or whatnot from here. + */ +define('HOOKTYPE_HEADER', 119); + /** HOOKTYPE_PRE_OVERVIEW_CARD * * @param object $stats @@ -138,6 +141,16 @@ define('HOOKTYPE_EDIT_USER', 117); define('HOOKTYPE_RIGHTCLICK_MENU', 118); +/* 119 = HOOKTYPE_HEADER (See under HOOKTYPE_PRE_HEADER) */ + +define('HOOKTYPE_GENERAL_SETTINGS', 120); + +/* Array passed is $_POST[] */ +define('HOOKTYPE_GENERAL_SETTINGS_POST', 121); + + + +/** Send out a request to ask if there are any plugins which provide authentication */ define('HOOKTYPE_AUTH_MOD', 200); /** An upgrade has been detected.