17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition.inc';
44 parent::__construct($assetid);
60 if (!isset($condition_data[
'server_variable']) || !isset($condition_data[
'server_variable_match'])) {
63 $server_var_index = $condition_data[
'server_variable'];
64 $server_var_match = $condition_data[
'server_variable_match'];
65 $matches = preg_match(
'/'.$server_var_match.
'/i', array_get_index($_SERVER, $server_var_index,
''));
66 return ($matches > 0);