=")'; $Conditions['gt'] = $Conditions['gti'] = 'ArithCondition($condname, $condparm, ">")'; if(!$Conditions['equal']) $Conditions['equal'] = $Conditions['equali'] = $Conditions['eq']; function ArithCondition($condname, $condparm, $op) { $args = ParseArgs($condparm); $args = $args['']; $cs = (substr($condname, -1, 1) == 'i') ? 'strtolower' : ''; return @eval("return (boolean)($cs('$args[0]') $op $cs('$args[1]'));"); } $Conditions['regmatch'] = 'RegMatchArgs($condparm)'; function RegMatchArgs($args) { $args = ParseArgs($args); return preg_match(@$args[''][0], @$args[''][1]); } global $VersionNum; if($VersionNum < 2000933) { $Conditions['expr'] = $Conditions['('] = $Conditions['['] = 'ExprCondition($pagename, $condname, $condparm)'; function ExprCondition($pagename, $condname, $condparm) { global $ExprConditionOps, $KeepToken, $KPV; SDV($ExprConditionOps, 'and|x?or|&&|\\|\\||[!()]'); if($condname == '(' || $condname == '[') $condparm = preg_replace('/[\\]\\)]\\s*$/', '', $condparm); for($condparm = str_replace('&&', '&&', $condparm); ($x = preg_replace('/("[^"]*"|\'[^\']*\')/e', "Keep(PSS('$1'))", $condparm)) != $condparm; $condparm = $x); $terms = preg_split("/(? $t) { $t = trim($t); if (preg_match("/^($ExprConditionOps)$/i", $t)) continue; if($t) { $t = preg_replace("/$KeepToken(\\d.*?)$KeepToken/e", "\$KPV['$1']", $t); $terms[$i] = CondText($pagename, "if $t", 'TRUE') ? '1' : '0'; } } return @eval('return(' . implode(' ', $terms) . ');'); } }