\n"); define('SBR', "
\n"); define('SPACE', ' '); define('RARR', '⇒'); define('ZBX_EREG_SPACES', '([[:space:]]+){0,1}'); // affects multibyte strings [in mb_ereg char "-" must be backslashed]!!! if((ini_get('mbstring.func_overload') > 5)){ define('ZBX_MBSTRINGS_OVERLOADED',1); define('ZBX_EREG_SPACE_SYMB','\-'); } else{ define('ZBX_EREG_SPACE_SYMB','-'); } define('ZBX_EREG_INTERNAL_NAMES', '([0-9a-zA-Z_.[:space:][.'.ZBX_EREG_SPACE_SYMB.'.]$]+)'); define('ZBX_EREG_KEY_NAME', '([0-9a-zA-Z_.,[.:.][:space:][.'.ZBX_EREG_SPACE_SYMB.'.]$]+)'); define('ZBX_EREG_PARAMS', '([[:print:]]+){0,1}'); define('ZBX_EREG_SIGN', '([&|><=+*/#[.'.ZBX_EREG_SPACE_SYMB.'.]])'); define('ZBX_EREG_NUMBER', '([[.'.ZBX_EREG_SPACE_SYMB.'.]+]*[0-9]+[.]{0,1}[0-9]*[A-Z]{0,1})'); //------- /* Character '-' must be last in the list of symbols, otherwise it won't be accepted */ define('ZBX_EREG_DNS_FORMAT', '([0-9a-zA-Z\_\.\$[.'.ZBX_EREG_SPACE_SYMB.'.]]+)'); define('ZBX_EREG_HOST_FORMAT', ZBX_EREG_INTERNAL_NAMES); define('ZBX_EREG_NODE_FORMAT', ZBX_EREG_INTERNAL_NAMES); define('ZBX_EREG_ITEM_KEY_FORMAT', '('.ZBX_EREG_KEY_NAME.'(\['.ZBX_EREG_PARAMS.'\]){0,1})'); define('ZBX_KEY_ID', 1); define('ZBX_KEY_NAME_ID', 2); define('ZBX_KEY_PARAM_ID', 4); define('ZBX_EREG_FUNCTION_FORMAT', '('.ZBX_EREG_INTERNAL_NAMES.'(\('.ZBX_EREG_PARAMS.'\)))'); define('ZBX_EREG_SIMPLE_EXPRESSION_FORMAT','(\{'.ZBX_EREG_HOST_FORMAT.'\:'.ZBX_EREG_ITEM_KEY_FORMAT.'\.'.ZBX_EREG_FUNCTION_FORMAT.'\})'); define('ZBX_EREG_MACRO_NAME_FORMAT', '(\{[A-Z\.]+\})'); define('ZBX_SIMPLE_EXPRESSION_HOST_ID', 2); define('ZBX_SIMPLE_EXPRESSION_KEY_ID', 2 + ZBX_KEY_ID); define('ZBX_SIMPLE_EXPRESSION_KEY_NAME_ID', 2 + ZBX_KEY_NAME_ID); define('ZBX_SIMPLE_EXPRESSION_KEY_PARAM_ID', 2 + ZBX_KEY_PARAM_ID); define('ZBX_SIMPLE_EXPRESSION_FUNCTION_ID', 7); define('ZBX_SIMPLE_EXPRESSION_FUNCTION_NAME_ID', 8); define('ZBX_SIMPLE_EXPRESSION_FUNCTION_PARAM_ID', 10); define('ZBX_EREG_EXPRESSION_TOKEN_FORMAT', '^([[:print:]]*)('.ZBX_EREG_SIMPLE_EXPRESSION_FORMAT.'|'.ZBX_EREG_MACRO_NAME_FORMAT.')([[:print:]]*)$'); define('ZBX_EXPRESSION_LEFT_ID', 1); define('ZBX_EXPRESSION_SIMPLE_EXPRESSION_ID', 2); define('ZBX_EXPRESSION_MACRO_ID', 13); define('ZBX_EXPRESSION_RIGHT_ID', 14); define('ZBX_MIN_PERIOD', 3600); // ~1 hour define('ZBX_MAX_PERIOD', 12*31*24*3600); // ~1 year define('ZBX_PERIOD_DEFAULT', ZBX_MIN_PERIOD); define('ZBX_HISTORY_COUNT',5); define('ZBX_USER_ONLINE_TIME',600); // 10min define('ZBX_GUEST_USER','guest'); define('ZBX_DEFAULT_CSS','default.css'); define('ZBX_FAVORITES_ALL', -1); // Allow for testing define('ZBX_ALLOW_UNICODE',1); /* Define if your logs are in non-standard format */ /* define('ZBX_LOG_ENCODING_DEFAULT', 'Shift_JIS');*/ define('ZBX_HAVE_IPV6', 1); define('XML_TAG_ZABBIX_EXPORT', 'zabbix_export'); define('XML_TAG_HOSTS', 'hosts'); define('XML_TAG_HOST', 'host'); define('XML_TAG_HOSTPROFILE', 'host_profile'); define('XML_TAG_GROUPS', 'groups'); define('XML_TAG_GROUP', 'group'); define('XML_TAG_APPLICATIONS', 'applications'); define('XML_TAG_APPLICATION', 'application'); define('XML_TAG_ITEMS', 'items'); define('XML_TAG_ITEM', 'item'); define('XML_TAG_TEMPLATES', 'templates'); define('XML_TAG_TEMPLATE', 'template'); define('XML_TAG_TRIGGERS', 'triggers'); define('XML_TAG_TRIGGER', 'trigger'); define('XML_TAG_GRAPHS', 'graphs'); define('XML_TAG_GRAPH', 'graph'); define('XML_TAG_GRAPH_ELEMENT', 'graph_element'); define('XML_TAG_GRAPH_ELEMENTS', 'graph_elements'); define('XML_TAG_SCREENS', 'screens'); define('XML_TAG_SCREEN', 'screen'); define('XML_TAG_SCREEN_ELEMENT', 'screen_element'); define('XML_TAG_SCREEN_ELEMENTS', 'screen_elements'); define('XML_TAG_DEPENDENCIES', 'dependencies'); define('XML_TAG_DEPENDENCY', 'dependency'); define('XML_TAG_DEPENDS', 'depends'); /* Support for PHP5. PHP5 does not have $HTTP_..._VARS */ if (!function_exists('version_compare')) { $_GET = $HTTP_GET_VARS; $_POST = $HTTP_POST_VARS; $_COOKIE = $HTTP_COOKIE_VARS; } /* if magic quotes on then get rid of them */ if (get_magic_quotes_gpc()) { $_GET = zbx_stripslashes($_GET); $_POST = zbx_stripslashes($_POST); $_COOKIE = zbx_stripslashes($_COOKIE); } /* init $_REQUEST */ ini_set('variables_order', 'GP'); $_REQUEST = $_POST + $_GET; ?>