📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 12:38:57
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
ip-location-block
/
includes
/
IP
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/ip-location-block/includes/IP
🔄 Refresh
✏️
Editing: IPv4.php
Writable
<?php /** * Class to provide IPv4 calculations * * PHP versions 4, 5 and 7 * * @link https://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php-5#answer-594134 */ class Net_IPv4 { public static function ipInNetwork( $ip, $cidr ) { list( $subnet, $bitmask ) = explode( '/', $cidr ); $bitmask = -1 << ( 32 - $bitmask ); return ( ip2long( $ip ) & $bitmask ) === ( ip2long( $subnet ) & $bitmask ); } }
💾 Save Changes
❌ Cancel