login.php -- simple login screen

This a simple login screen. Some housekeeping is done to clean cookies and find language.

include ($theme[$theme_default]['PATH']) (line 148)

Allow administrators to define custom session handlers for SquirrelMail without needing to change anything in php.ini (application-level).

In config_local.php, admin needs to put:

$custom_session_handlers = array( 'my_open_handler', 'my_close_handler', 'my_read_handler', 'my_write_handler', 'my_destroy_handler', 'my_gc_handler', ); session_module_name('user'); session_set_save_handler( $custom_session_handlers[0], $custom_session_handlers[1], $custom_session_handlers[2], $custom_session_handlers[3], $custom_session_handlers[4], $custom_session_handlers[5] );

We need to replicate that code once here because PHP has long had a bug that resets the session handler mechanism when the session data is also destroyed. Because of this bug, even administrators who define custom session handlers via a PHP pre-load defined in php.ini (auto_prepend_file) will still need to define the $custom_session_handlers array in config_local.php.

require_once (SM_PATH.'functions/plugin.php') (line 27)
require_once (SM_PATH.'functions/global.php') (line 25)
require_once (SM_PATH.'functions/i18n.php') (line 26)
require_once (SM_PATH.'functions/page_header.php') (line 29)
require_once (SM_PATH.'functions/html.php') (line 30)
require_once (SM_PATH.'functions/forms.php') (line 31)
require_once (SM_PATH.'functions/constants.php') (line 28)

Documentation generated on Tue, 17 Apr 2018 04:26:17 +0200 by phpDocumentor 1.4.3