$OKflag = 1 if ($_ eq $ENV{'QUERY_STRING'} || $_ eq $amp || $_ eq $amp2);
if(strstr($ENV{'QUERY_STRING, $_) != "" || ...)
Guest tpk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
sub php_strstr { my $haystack = shift; my $needle = shift; my $before_needle = shift; my $i = index( $haystack, $needle ); # needle not found if ( $i == -1 ) { return undef; # or maybe ''; it's FALSE in php } # return substring before needle elsif ( $before_needle ) { return substr( $haystack, 0, $i ); } # return substring beginning with first found needle till end of string else { return substr( $haystack, $i ); } }