Source for file auth.php
Documentation is available at auth.php
* Administrator plugin - Authentication routines
* This function tell other modules what users have access
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: auth.php 14845 2020-01-07 08:09:34Z pdontthink $
* @subpackage administrator
* Check if user has access to administrative functions
/* fail if the plugin is not enabled */
if ( !in_array('administrator', $plugins) ) {
/* This needs to be first, for all non_options pages */
//if (!defined('PAGE_NAME') || strpos(PAGE_NAME, 'options') === FALSE) {
$auths =
file(SM_PATH .
'plugins/administrator/admins');
$auth =
($username ==
$adm['name']);
* Removes whitespace from array values
* @param string $value array value that has to be trimmed
* @param string $key array key
function adm_array_trim(&$value,$key) {
Documentation generated on Mon, 13 Jan 2020 04:22:01 +0100 by phpDocumentor 1.4.3