";
echo '';
if (!$exist) {
echo "$fortune_location not found.";
} else {
echo "Today's Fortune
";
system($fortune_location);
}
echo ' |
|
|
';
}
function fortune_load() {
global $username, $data_dir, $fortune_visible;
$fortune_visible = getPref($data_dir, $username, 'fortune_visible');
}
function fortune_options() {
global $fortune_visible;
echo "Fortunes: | \n";
echo ' Show fortunes at top of mailbox |
\n";
}
function fortune_save() {
global $username,$data_dir;
global $fortune_fortune_visible;
if (isset($fortune_fortune_visible)) {
setPref($data_dir, $username, 'fortune_visible', '1');
} else {
setPref($data_dir, $username, 'fortune_visible', '');
}
}
?>