17 lines
398 B
PHP
Executable file
17 lines
398 B
PHP
Executable file
<?php
|
|
|
|
namespace pedodev\linkprotection;
|
|
|
|
class ext extends \phpbb\extension\base
|
|
{
|
|
public function is_enableable(): bool
|
|
{
|
|
global $config;
|
|
|
|
return extension_loaded('openssl')
|
|
&& in_array('aes-128-cbc', openssl_get_cipher_methods(), true)
|
|
&& version_compare(phpversion(), '8.0.0', '>=')
|
|
&& phpbb_version_compare($config['version'], '3.3.0', '>=')
|
|
&& parent::is_enableable();
|
|
}
|
|
}
|