17 require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition.inc';
44 parent::__construct($assetid);
60 if (!isset($condition_data[
'user_agent'])) {
63 if (!isset($_SERVER[
'HTTP_USER_AGENT'])) {
68 $condition_data[
'user_agent'] = str_replace(
'/',
'\/', $condition_data[
'user_agent']);
69 $matches = preg_match(
'/'.$condition_data[
'user_agent'].
'/i', $_SERVER[
'HTTP_USER_AGENT']);
70 return ($matches > 0);