Source for file setup.php
Documentation is available at setup.php
* Fortune plugin setup script
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php 14845 2020-01-07 08:09:34Z pdontthink $
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['template_construct_message_list.tpl']['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');
return fortune_function();
* 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 Mon, 13 Jan 2020 04:23:32 +0100 by phpDocumentor 1.4.3