mirror of
https://github.com/LdesignMedia/moodle-availability_ipaddress.git
synced 2026-05-17 05:48:41 +02:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d65fd40621 | ||
|
|
4632008dfb | ||
|
|
c91646df81 | ||
|
|
d2c231e657 | ||
|
|
700820480d | ||
|
|
cccebb6c15 | ||
|
|
af275d1699 |
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 5.1.1 (2026031800)
|
||||||
|
* Fixed PHP 7.3 compatibility issue that broke Moodle 4.0.x servers ([#13](https://github.com/LdesignMedia/moodle-availability_ipaddress/issues/13))
|
||||||
|
* Removed typed properties (PHP 7.4+) to support PHP 7.3+
|
||||||
|
* Lowered environment.xml PHP requirement from 7.4 to 7.3
|
||||||
|
|
||||||
## 5.1.0 (2026030300)
|
## 5.1.0 (2026030300)
|
||||||
- Tested and verified on Moodle 5.1
|
- Tested and verified on Moodle 5.1
|
||||||
|
|
||||||
@@ -21,5 +26,5 @@
|
|||||||
## 4.0.2 (2022052800)
|
## 4.0.2 (2022052800)
|
||||||
- Fixed the [issue 6](https://github.com/ldesignmediaNL/moodle-availability_ipaddress/issues/6) @[hamzatamyachte](https://github.com/hamzatamyachte)
|
- Fixed the [issue 6](https://github.com/ldesignmediaNL/moodle-availability_ipaddress/issues/6) @[hamzatamyachte](https://github.com/hamzatamyachte)
|
||||||
|
|
||||||
## 4.0.1 (2022021100)
|
## 3.9.0 (2022021100)
|
||||||
- Thanks for adding ip-range support @[juacas](https://github.com/juacas)
|
- Thanks for adding ip-range support @[juacas](https://github.com/juacas)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ activity, making it accessible only to users from specified IP addresses.
|
|||||||
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
||||||
* Author: Vincent Cornelis, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
* Author: Vincent Cornelis, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
||||||
* Min. required: Moodle 4.0
|
* Min. required: Moodle 4.0
|
||||||
* Supports PHP: 7.4
|
* Supports PHP: 7.3+
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
@@ -22,6 +22,7 @@ activity, making it accessible only to users from specified IP addresses.
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
@@ -63,6 +64,6 @@ The GNU GENERAL PUBLIC LICENSE. Please see [License File](LICENSE) for more info
|
|||||||
|
|
||||||
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
|
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
|
||||||
|
|
||||||
## Changelog
|
### Changelog
|
||||||
|
|
||||||
See [CHANGELOG.md](CHANGELOG.md) for a full list of changes.
|
See [CHANGELOG.md](CHANGELOG.md) for a full list of changes.
|
||||||
|
|||||||
@@ -41,14 +41,14 @@ class condition extends \core_availability\condition {
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected string $ipaddresses = '';
|
protected $ipaddresses = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Predefined IP address ranges.
|
* Predefined IP address ranges.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected array $predefinedranges = [];
|
protected $predefinedranges = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* condition constructor.
|
* condition constructor.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<COMPATIBILITY_MATRIX>
|
<COMPATIBILITY_MATRIX>
|
||||||
<PLUGIN name="availability_ipaddress">
|
<PLUGIN name="availability_ipaddress">
|
||||||
<PHP version="7.4" level="required"/>
|
<PHP version="7.3" level="required"/>
|
||||||
</PLUGIN>
|
</PLUGIN>
|
||||||
</COMPATIBILITY_MATRIX>
|
</COMPATIBILITY_MATRIX>
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
$plugin->component = 'availability_ipaddress';
|
$plugin->component = 'availability_ipaddress';
|
||||||
$plugin->version = 2026030300;
|
$plugin->version = 2026031800;
|
||||||
$plugin->release = '5.1.0';
|
$plugin->release = '5.1.1';
|
||||||
$plugin->requires = 2016120500;
|
$plugin->requires = 2016120500;
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
$plugin->supported = [400, 501];
|
$plugin->supported = [400, 501];
|
||||||
|
|||||||
Reference in New Issue
Block a user