File/nasmail/functions/display_messages.php

Description

This contains all messages, including information, error, and just about any other message you can think of.

  • version: $Id: display_messages.php 1454 2009-10-28 11:46:14Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007,2009 The NaSMail Project
  • license: GNU Public License
Includes
 include_once (SM_PATH.'functions/plugin.php') (line 16)

including plugin functions

Functions
error_box (line 136)

Prints error message

Function call is not fatal and generated html is not closed. Function executes error_box hook.

void error_box ( $string, array $color, string $message)
  • string $message
  • array $color
  • $string
error_message (line 31)

Prints error message and link to mailbox listing

Message text must be html sanitized. Mailbox name, sorting and start message arguments are used in link to src/right_main.php. Color theme is standard color array.

void error_message (string $message, string $mailbox, integer $sort, integer $startMessage, array $color)
  • string $message: message text
  • string $mailbox: mailbox name
  • integer $sort: sorting
  • integer $startMessage: start message
  • array $color: color theme
error_option_save (line 176)

Adds message that informs about non fatal error that can happen while saving preferences

void error_option_save (string $message)
  • string $message: error message
logout_error (line 61)

Prints error message and link to login page

logout_error hook

void logout_error (string $errString, [string $errTitle = ''])
  • string $errString
  • string $errTitle
nsm_message_log (line 195)

Logs messages

Function itself does not do logging. It depends on plugins attached to 'message_log' hook. Function is included in core scripts in order to make sure that function is available to plugins that want to log some messages.

void nsm_message_log (string $message, string $category)
  • string $message: message text
  • string $category: message type
plain_error_message (line 49)

Prints error message

  • deprecated: see error_box() function.
void plain_error_message (string $message, array $color)
  • string $message
  • array $color

Documentation generated on Sun, 22 Nov 2009 17:36:27 +0200 by phpDocumentor 1.4.3