Source for file auth.php
Documentation is available at auth.php
* Administrator plugin - Authentication routines
* This function tell other modules what users have access
* @version $Id: auth.php,v 1.10.2.9 2006/02/03 22:27:51 jervfors Exp $
* @copyright (c) 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @subpackage administrator
* Check if user has access to administrative functions
global $PHP_SELF, $plugins;
require_once(SM_PATH .
'functions/global.php');
if ( !in_array('administrator', $plugins) ) {
/* This needs to be first, for all non_options pages */
if (strpos('options.php', $PHP_SELF)) {
$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 Sat, 07 Oct 2006 16:29:55 +0300 by phpDocumentor 1.3.0RC6