Source for file fortune_functions.php
Documentation is available at fortune_functions.php
* plugins/fortune/fortune_functions.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: fortune_functions.php 14840 2020-01-07 07:42:38Z pdontthink $
* Function to show fortune
function fortune_show() {
$fortune_location =
'/usr/bin/fortune';
$sMsg =
sprintf(_("%s is not found."),$fortune_location);
echo
"<center><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$color[10]\">\n".
"<tr><td><table width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" bgcolor=\"$color[5]\">\n".
"<tr><td align=\"center\">\n";
echo
'<center><em>' .
_("Today's Fortune") .
'</em></center><br /><pre>' .
echo
'</td></tr></table></td></tr></table></td></tr></table></center>';
function fortune_show_options() {
global $optpage_data, $username, $data_dir, $fortune_visible;
$fortune_visible =
getPref($data_dir, $username, 'fortune_visible');
'name' =>
'fortune_visible',
'caption' =>
_("Show fortunes at top of mailbox"),
$optpage_data['grps']['fortune'] =
$optgrp;
$optpage_data['vals']['fortune'] =
$optvals;
Documentation generated on Mon, 13 Jan 2020 04:24:39 +0100 by phpDocumentor 1.4.3