beatify code
This commit is contained in:
parent
04bdfc1ed0
commit
f562ab8fa1
@ -38,7 +38,6 @@ class AuthmgrCapability {
|
|||||||
const ViewStats = 'ViewStats';
|
const ViewStats = 'ViewStats';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/********** Add hooks to intercept functionality in CORE ********/
|
/********** Add hooks to intercept functionality in CORE ********/
|
||||||
|
|
||||||
yourls_add_action( 'load_template_infos', 'authmgr_intercept_stats' );
|
yourls_add_action( 'load_template_infos', 'authmgr_intercept_stats' );
|
||||||
@ -382,8 +381,7 @@ function authmgr_environment_check() {
|
|||||||
* Borrowed from:
|
* Borrowed from:
|
||||||
* http://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php5
|
* http://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php5
|
||||||
*/
|
*/
|
||||||
function authmgr_cidr_match($ip, $range)
|
function authmgr_cidr_match($ip, $range) {
|
||||||
{
|
|
||||||
list ($subnet, $bits) = split('/', $range);
|
list ($subnet, $bits) = split('/', $range);
|
||||||
$ip = ip2long($ip);
|
$ip = ip2long($ip);
|
||||||
$subnet = ip2long($subnet);
|
$subnet = ip2long($subnet);
|
||||||
|
Loading…
Reference in New Issue
Block a user