Source for file functions.php
Documentation is available at functions.php
* functions for bug_report plugin
* @copyright © 2004-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: functions.php,v 1.10 2006/07/15 12:01:08 tokul Exp $
* do not allow to call this file directly
if ((isset
($_SERVER['SCRIPT_FILENAME']) &&
$_SERVER['SCRIPT_FILENAME'] == __FILE__
) ||
(isset
($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) &&
$HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__
) ) {
header("Location: ../../src/login.php");
/** Declare plugin configuration vars */
global $bug_report_admin_email, $bug_report_allow_users;
/** Load default config */
include_once (SM_PATH .
'plugins/bug_report/config_default.php');
// default config was removed.
$bug_report_admin_email =
'';
$bug_report_allow_users =
false;
include_once (SM_PATH .
'config/bug_report_config.php');
include_once (SM_PATH .
'plugins/bug_report/config.php');
* Checks if user can use bug_report plugin
$auth =
($username ==
$adm['name']);
if (! empty($bug_report_admin_email) &&
$bug_report_allow_users) {
* Removes whitespace from array values
* @param string $value array value that has to be trimmed
* @param string $key array key
* @todo code reuse. create generic sm function.
function bug_report_array_trim(&$value,$key) {
Documentation generated on Sat, 07 Oct 2006 16:11:08 +0300 by phpDocumentor 1.3.0RC6