-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Crizz0/update-for-php8_4
Add change for PHP 8.4 compatibility and bump requirement to PHP7.1.3
- Loading branch information
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
"IP anonymised" extension for phpBB 3.2 & 3.3 | ||
"IP anonymised" extension for phpBB 3.3 | ||
====== | ||
This phpBB extension will anonymise the user's IP in posts, logs, sessions etc. after a defined time span e.g. it overwrites all IPs which are older than 180 days. | ||
|
||
You should use at least phpBB 3.3.1 and PHP 7.1.3 to use this extension. | ||
|
||
Author: Christian Schnegelberger | ||
|
||
URL: https://www.crizzo.de |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* | ||
* IP anonymised extension for the phpBB Forum Software package. | ||
* | ||
* @copyright (c) 2024 Crizzo <https://www.crizzo.de> | ||
* @license GNU General Public License, version 2 (GPL-2.0) | ||
* | ||
*/ | ||
|
||
namespace crizzo\ipanonym; | ||
|
||
class ext extends \phpbb\extension\base | ||
{ | ||
public function is_enableable() | ||
{ | ||
$valid_phpbb = phpbb_version_compare(PHPBB_VERSION, '3.3.1', '>=') && phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<'); | ||
$valid_php = phpbb_version_compare(PHP_VERSION, '7.1.3', '>='); | ||
|
||
return ($valid_phpbb && $valid_php); | ||
} | ||
} |