17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition.inc';
18 require_once dirname(__FILE__).
'/condition_user_ip_edit_fns.inc';
47 parent::__construct($assetid);
63 if (!isset($condition_data[
'user_ip_ranges'])) {
66 if (!isset($_SERVER[
'REMOTE_ADDR'])) {
70 $remote_ip = $_SERVER[
'REMOTE_ADDR'];
71 $grant = array_get_index($condition_data,
'default_grant', FALSE);
76 foreach ($ip_ranges as $ip_range) {
78 $grant = $ip_range[
'grant'];
102 $match_options = Array(
103 '1' => translate($type_code.
'_true'),
106 return $match_options;