-
Notifications
You must be signed in to change notification settings - Fork 9
/
ext.php
44 lines (41 loc) · 983 Bytes
/
ext.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
*
* Team Security Measures extension for the phpBB Forum Software package.
*
* @copyright (c) 2015 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace phpbb\teamsecurity;
/**
* Extension class for custom enable/disable/purge actions
*/
class ext extends \phpbb\extension\base
{
/**
* Check whether the extension can be enabled.
* The current phpBB version should meet or exceed
* the minimum version required by this extension:
*
* Requires phpBB 3.2.0.
*
* @return bool
* @access public
*/
public function is_enableable()
{
return phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=');
}
/**
* Error and prevent attempts to disable this extension
*
* @param mixed $old_state State returned by previous call of this method
* @return void
* @access public
*/
public function disable_step($old_state)
{
trigger_error('TEAM_SECURITY_DISABLE_MESSAGE', E_USER_WARNING);
}
}