芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/fluentform/app/Services/ConditionAssesor.php
': return $inputValue > $conditional['value']; break; case '<': return $inputValue < $conditional['value']; break; case '>=': return $inputValue >= $conditional['value']; break; case '<=': return $inputValue <= $conditional['value']; break; case 'startsWith': return Str::startsWith($inputValue, $conditional['value']); break; case 'endsWith': return Str::endsWith($inputValue, $conditional['value']); break; case 'contains': return Str::contains($inputValue, $conditional['value']); break; case 'doNotContains': return !Str::contains($inputValue, $conditional['value']); break; case 'length_equal': if(is_array($inputValue)) { return count($inputValue) == $conditional['value']; } $inputValue = strval($inputValue); return strlen($inputValue) == $conditional['value']; break; case 'length_less_than': if(is_array($inputValue)) { return count($inputValue) < $conditional['value']; } $inputValue = strval($inputValue); return strlen($inputValue) < $conditional['value']; break; case 'length_greater_than': if(is_array($inputValue)) { return count($inputValue) > $conditional['value']; } $inputValue = strval($inputValue); return strlen($inputValue) > $conditional['value']; break; case 'test_regex': if(is_array($inputValue)) { $inputValue = implode(' ', $inputValue); } $result = preg_match('/'.$conditional['value'].'/', $inputValue); return !!$result; break; } } return false; } }