File/plugins/autoresponder/functions.php

Description

NaSMail Autoresponder plugin functions.

Copyright (c) 2005 The SquirrelMail Project Team Copyright (c) 2006-2007 The NaSMail Project

This file is part of Autoresponder plugin designed for NaSMail webmail interface.

NaSMail Autoresponder plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

NaSMail Autoresponder plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with NaSMail Autoresponder plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions.php 606 2007-08-15 17:42:00Z tokul $
Includes
 include_once (SM_PATH.'plugins/autoresponder/backend/'.$arp_backend.'.php') (line 62)

load backend functions and initialize backend hooks

 include_once (SM_PATH.'plugins/autoresponder/config_default.php') (line 38)

load default config

 include_once (SM_PATH.'plugins/autoresponder/config.php') (line 54)
 include_once (SM_PATH.'config/autoresponder_config.php') (line 52)

load site config

Functions
arp_error_box (line 166)

Display error_box() for error messages stored in array

void arp_error_box (array $aError, array $color)
  • array $aError: array with error messages
  • array $color: color theme
autoresponder_form_default (line 148)

Default autoresponder function Creates form with checkbox to enable autoresponder (arp_enable), subject field (arp_subject) and message textbox (arp_message).

Uses boolean $arp_autorespond_enabled, string $arp_message_subject and string $arp_message_body globals.

void autoresponder_form_default ()
autoresponder_init_default (line 108)

Bogus init function.

displays configuration error message

void autoresponder_init_default ()
autoresponder_loadinfo_do (line 89)

Adds loadinfo data

void autoresponder_loadinfo_do ()
autoresponder_optpage_do (line 70)

Adds optpage block

void autoresponder_optpage_do ()
autoresponder_save_default (line 121)

Bogus save function

Sets errors message with data submitted in form

array autoresponder_save_default ()

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