rendered paste body<?php/** ** @package events* @version $Id: condition_int.php,v 1.9 2005/12/24 05:14:32 davidmj Exp $* @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License **//*** Returns a list of available comparing operators*/function &evc_int_operators(){ static $operators; if (empty($operators)) { global $user; $operators = array( array($user->lang['CONDITION_COMPARE']['EQUALS'], '=='), array($user->lang['CONDITION_COMPARE']['LESS_THAN'], '<'), array($user->lang['CONDITION_COMPARE']['LESS_EQUAL'], '<='), array($user->lang['CONDITION_COMPARE']['GREATER_THAN'], '>'), array($user->lang['CONDITION_COMPARE']['GREATER_EQUAL'], '>=')); } return $operators;}/*** Check whether the condition is met*/function evc_int_check(&$options, &$int, &$info){ $operator = $options[0]; $operators = &evc_int_operators(); eval('$matches = ($int' . $operators[$operator][1] . $options[1] . ');'); return $matches;}?>