\n".
"\n".
"\n";
echo '';
if (!$exist) {
printf(_("%s is not found."),$fortune_location);
} else {
echo "" . _("Today's Fortune") . "
";
htmlspecialchars(system($fortune_location));
}
echo ' |
| |
';
}
/**
* Get fortune prefs
* @access private
*/
function fortune_load() {
global $username, $data_dir, $fortune_visible;
$fortune_visible = getPref($data_dir, $username, 'fortune_visible');
}
/**
* Add fortune options
* @access private
*/
function fortune_options() {
global $fortune_visible;
echo "" . html_tag('td',_("Fortunes:"),'right','','nowrap') . "\n";
echo ' " . _("Show fortunes at top of mailbox") . " |
\n";
}
/**
* Save fortune prefs
* @access private
*/
function fortune_save() {
global $username,$data_dir;
if (sqgetGlobalVar('fortune_fortune_visible',$fortune_fortune_visible,SQ_POST)) {
setPref($data_dir, $username, 'fortune_visible', '1');
} else {
setPref($data_dir, $username, 'fortune_visible', '');
}
}
?>