squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

setup.php
Go to the documentation of this file.
1 <?php
2 
25 
26  $squirrelmail_plugin_hooks['mailbox_index_before']['fortune'] = 'fortune';
27  $squirrelmail_plugin_hooks['optpage_loadhook_display']['fortune'] = 'fortune_optpage_loadhook_display';
28 }
29 
34 function fortune() {
35  global $fortune_visible, $username, $data_dir;
36  $fortune_visible = getPref($data_dir, $username, 'fortune_visible');
37 
38  // Don't show fortune if not enabled
39  if (empty($fortune_visible)) {
40  return;
41  }
42 
43  include_once(SM_PATH . 'plugins/fortune/fortune_functions.php');
44  fortune_show();
45 }
46 
52  include_once(SM_PATH . 'plugins/fortune/fortune_functions.php');
54 }
55 
getPref
getPref($data_dir, $username, $string, $default='')
Definition: db_prefs.php:316
fortune_show_options
fortune_show_options()
Definition: fortune_functions.php:53
fortune_show
fortune_show()
Definition: fortune_functions.php:23
$data_dir
$data_dir
Definition: config_default.php:499
$username
global $username
Definition: validate.php:55
fortune_optpage_loadhook_display
fortune_optpage_loadhook_display()
Definition: setup.php:51
squirrelmail_plugin_init_fortune
squirrelmail_plugin_init_fortune()
Definition: setup.php:23
$squirrelmail_plugin_hooks
global $squirrelmail_plugin_hooks
Definition: plugin.php:17
SM_PATH
const SM_PATH
Definition: decrypt_headers.php:16
fortune
fortune()
Definition: setup.php:34