summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
882acf9)
used only by this plugin
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7085
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/**
* plugins/fortune/setup.php
*
/**
* plugins/fortune/setup.php
*
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* Original code contributed by paulm@spider.org
*
* Simple SquirrelMail WebMail Plugin that displays the output of
* fortune above the message listing.
*
* Original code contributed by paulm@spider.org
*
* Simple SquirrelMail WebMail Plugin that displays the output of
* fortune above the message listing.
*
+ * @copyright (c) 1999-2004 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
* @package plugins
* @subpackage fortune
*/
/**
* @package plugins
* @subpackage fortune
*/
/**
+ * Init plugin
+ * @access private
+ */
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['loading_prefs']['fortune'] = 'fortune_load';
}
$squirrelmail_plugin_hooks['loading_prefs']['fortune'] = 'fortune_load';
}
+/**
+ * Show fortune
+ * @access private
+ */
function fortune() {
global $fortune_visible, $color;
function fortune() {
global $fortune_visible, $color;
echo '</pre></TD></TR></TABLE></td></tr></table></td></tr></table></center>';
}
echo '</pre></TD></TR></TABLE></td></tr></table></td></tr></table></center>';
}
+/**
+ * Get fortune prefs
+ * @access private
+ */
function fortune_load() {
global $username, $data_dir, $fortune_visible;
$fortune_visible = getPref($data_dir, $username, 'fortune_visible');
}
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;
function fortune_options() {
global $fortune_visible;
echo '<td><input name="fortune_fortune_visible" type=CHECKBOX';
if ($fortune_visible)
echo ' CHECKED';
echo '<td><input name="fortune_fortune_visible" type=CHECKBOX';
if ($fortune_visible)
echo ' CHECKED';
- echo "> " . _("Show fortunes at top of mailbox") . "</td></tr>\n";
+ echo " /> " . _("Show fortunes at top of mailbox") . "</td></tr>\n";
+/**
+ * Save fortune prefs
+ * @access private
+ */
function fortune_save() {
global $username,$data_dir;
function fortune_save() {
global $username,$data_dir;
+?>
\ No newline at end of file