~siretart/+junk/bug.306536

« back to all changes in this revision

Viewing changes to plugins/test/setup.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-11-01 06:28:05 UTC
  • mfrom: (1.1.8 squirrelmail-hardy-upstream)
  • Revision ID: jamesw@ubuntu.com-20081101062805-jchpfgv115igvhmh
Tags: ubuntu-2:1.4.11-2
Fix broken attachment handling in PHP4 by applying patch
from upstream.
NOTE: this is only a courtesy to PHP4 users, it must be noted
that Debian does not support PHP4 in current unstable anymore.
(Closes: #444970)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
  * SquirrelMail Test Plugin
 
5
  * @copyright &copy; 2006 The SquirrelMail Project Team
 
6
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 
7
  * @version $Id$
 
8
  * @package plugins
 
9
  * @subpackage test
 
10
  */
 
11
 
 
12
/**
 
13
  * Register this plugin with SquirrelMail
 
14
  * 
 
15
  * @return void
 
16
  *
 
17
  */
 
18
function squirrelmail_plugin_init_test() {
 
19
 
 
20
    global $squirrelmail_plugin_hooks;
 
21
 
 
22
    $squirrelmail_plugin_hooks['menuline']['test'] 
 
23
        = 'test_menuline';
 
24
 
 
25
}
 
26
 
 
27
 
 
28
/**
 
29
  * Add link to menu at top of content pane
 
30
  *
 
31
  * @return void
 
32
  *
 
33
  */
 
34
function test_menuline() {
 
35
 
 
36
    include_once(SM_PATH . 'plugins/test/functions.php');
 
37
    return test_menuline_do();
 
38
 
 
39
}
 
40
 
 
41
 
 
42
/**
 
43
  * Returns info about this plugin
 
44
  *
 
45
  * @return array An array of plugin information.
 
46
  *
 
47
  */
 
48
function test_info()
 
49
{
 
50
 
 
51
   return array(
 
52
             'english_name' => 'Test',
 
53
             'version' => 'CORE',
 
54
             'summary' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
 
55
             'details' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
 
56
             'requires_configuration' => 0,
 
57
             'requires_source_patch' => 0,
 
58
          );
 
59
 
 
60
}
 
61
 
 
62
 
 
63
/**
 
64
  * Returns version info about this plugin
 
65
  *
 
66
  */
 
67
function test_version()
 
68
{
 
69
 
 
70
   $info = test_info();
 
71
   return $info['version'];
 
72
 
 
73
}
 
74
 
 
75