-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathext.php
More file actions
36 lines (33 loc) · 781 Bytes
/
Copy pathext.php
File metadata and controls
36 lines (33 loc) · 781 Bytes
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
<?php
/**
*
* AnubisBB. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2025, NeoDev
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace neodev\anubisbb;
use phpbb\extension\base;
/**
*
* AnubisBB Extension base
*
*/
class ext extends base
{
/**
* Indicate whether or not the extension can be enabled.
*
* @return bool|array True if extension is enableable, array of reasons
* if not, false for generic reason.
*/
public function is_enableable()
{
if (!extension_loaded('sodium') || !defined('SODIUM_CRYPTO_SIGN_SECRETKEYBYTES') || !function_exists('sodium_crypto_sign_keypair'))
{
return ['Missing requirement: Sodium php extension not loaded'];
}
return true;
}
}