init.php -- initialisation file
File should be loaded in every file in src/ or plugins that occupate an entire frame
Include Compatibility plugin if available.
includes from classes stored in the session
SquirrelMail internal version number -- DO NOT CHANGE
$sm_internal_version = array (release, major, minor)
Detect SSL connections
Do something special for some pages. This is based on the PAGE_NAME constant set at the top of every page.
Make sure icon variables are setup for the login page.
initializing user settings
This theme as a failsafe if no themes were found, or if we error out before anything could be initialised.
Plugin authors note that the "config_override" hook used to be executed here, but please adapt your plugin to use this "prefs_backend" hook instead, making sure that it does NOT return anything, since doing so will interfere with proper prefs system functionality.
Of course, otherwise, this hook may be used to do any configuration overrides as needed, as well as set up a custom preferences backend.
We'll need this to later have a noframes version
Check if the user has a language preference, but no cookie. Send him a cookie with his language preference, if there is such discrepancy.
Check if we are logged in and does optional referrer check
MAIN PLUGIN LOADING CODE HERE On init, we no longer need to load all plugin setup files.
Now, we load the statically generated hook registrations here and let the hook calls include only the plugins needed.
Documentation generated on Mon, 13 Jan 2020 04:22:50 +0100 by phpDocumentor 1.4.3