Source for file setup.php
Documentation is available at setup.php
* plugins/fortune/setup.php
* Simple SquirrelMail WebMail Plugin that displays the output of
* fortune above the message listing.
* @copyright (c) 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php 14840 2020-01-07 07:42:38Z pdontthink $
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['mailbox_index_before']['fortune'] =
'fortune';
$squirrelmail_plugin_hooks['optpage_loadhook_display']['fortune'] =
'fortune_optpage_loadhook_display';
global $fortune_visible, $username, $data_dir;
$fortune_visible =
getPref($data_dir, $username, 'fortune_visible');
// Don't show fortune if not enabled
if (empty($fortune_visible)) {
include_once(SM_PATH .
'plugins/fortune/fortune_functions.php');
function fortune_optpage_loadhook_display() {
include_once(SM_PATH .
'plugins/fortune/fortune_functions.php');
Documentation generated on Mon, 13 Jan 2020 04:25:18 +0100 by phpDocumentor 1.4.3