Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Ip.php
Go to the documentation of this file.
1<?php
2
4
5class Ip {
6 const V4 = '4';
7 const V6 = '6';
8 const ALL = 'all';
9 // adds FILTER_FLAG_NO_PRIV_RANGE flag (skip private ranges)
10 const V4_NO_PRIV = '4_no_priv';
11 const V6_NO_PRIV = '6_no_priv';
12 const ALL_NO_PRIV = 'all_no_priv';
13 // adds FILTER_FLAG_NO_RES_RANGE flag (skip reserved ranges)
14 const V4_NO_RES = '4_no_res';
15 const V6_NO_RES = '6_no_res';
16 const ALL_NO_RES = 'all_no_res';
17 // adds FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE flags (skip both)
18 const V4_ONLY_PUBLIC = '4_public';
19 const V6_ONLY_PUBLIC = '6_public';
20 const ALL_ONLY_PUBLIC = 'all_public';
21}
22