dynamic / silverstripe-maintenance-mode

Maintainance/Offline Mode Module for SilverStripe
BSD 2-Clause "Simplified" License
21 stars 18 forks source link

Added the ability to allow IP addreses pass the maintenance page. #6

Closed mediabeastnz closed 9 years ago

mediabeastnz commented 9 years ago

I've added in the ability to have an array of allowed IP addresses. They can be configured using YML, I have added instructions into the README file.

There are a couple new functions, one gets the IP based on a few $_SERVER checks and then another that checks if the current IP is in the array off allowed IP's.

This has been a common requirement when using this module as sometimes being logged in as someone other than full admin was necessary for testing or deployment.

dljoseph commented 9 years ago

Fantastic. Thank you for your contribution.

mediabeastnz commented 9 years ago

No problem at all :)