Source for file setup.php
Documentation is available at setup.php
* Fortune plugin setup script
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php,v 1.20 2006/07/07 12:53:50 tokul Exp $
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['mailbox_index_before']['fortune'] =
'fortune';
$squirrelmail_plugin_hooks['loading_prefs']['fortune'] =
'fortune_load';
$squirrelmail_plugin_hooks['optpage_loadhook_display']['fortune'] =
'fortune_options';
* Call fortune display function
include_once(SM_PATH .
'plugins/fortune/functions.php');
* Call fortune option display function
function fortune_options() {
include_once(SM_PATH .
'plugins/fortune/functions.php');
fortune_function_options();
* Call fortune prefs load function
function fortune_load() {
include_once(SM_PATH .
'plugins/fortune/functions.php');
Documentation generated on Sat, 07 Oct 2006 16:13:31 +0300 by phpDocumentor 1.3.0RC6