Replacing deprecated HTML "center" element (second try).
[squirrelmail.git] / plugins / fortune / setup.php
1 <?php
2
3 /**
4 * Fortune plugin setup script
5 *
6 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * @version $Id$
9 * @package plugins
10 * @subpackage fortune
11 */
12
13 /**
14 * If SM_PATH isn't defined, define it.
15 * @ignore
16 */
17 if (!defined('SM_PATH')) {
18 define('SM_PATH','../../');
19 }
20
21 /**
22 * Init plugin
23 * @access private
24 */
25 function squirrelmail_plugin_init_fortune() {
26 global $squirrelmail_plugin_hooks;
27
28 $squirrelmail_plugin_hooks['mailbox_index_before']['fortune'] = 'fortune';
29 $squirrelmail_plugin_hooks['loading_prefs']['fortune'] = 'fortune_load';
30 $squirrelmail_plugin_hooks['optpage_loadhook_display']['fortune'] = 'fortune_options';
31 }
32
33 /**
34 * Call fortune display function
35 * @access private
36 */
37 function fortune() {
38 include_once(SM_PATH . 'plugins/fortune/functions.php');
39 fortune_function();
40 }
41
42 /**
43 * Call fortune option display function
44 * @access private
45 */
46 function fortune_options() {
47 include_once(SM_PATH . 'plugins/fortune/functions.php');
48 fortune_function_options();
49 }
50
51 /**
52 * Call fortune prefs load function
53 * @access private
54 */
55 function fortune_load() {
56 include_once(SM_PATH . 'plugins/fortune/functions.php');
57 fortune_function_load();
58 }
59 ?>