I'm sorry, but that security comment is just not correct. If you browse the source for both showcat and showproduct, you will see intval is only used the once, it is NOT used on the users zip they input in the forum:
$query = "SELECT lon,lat FROM zipData WHERE zipcode = '$zipcode'"; (showproduct, line 505)
The datatypes also do not match up, in the zipcodes table it uses varchar, products int.
And the error on line 510 of showproduct IS an error:
Code:
Content visible to verified customers only.
So only if both values are above 0 will it be ok, well, here in the UK, my long lat position is 51.453 / -0.16 ... which automatically fails that logic (obviously -0.16 is not higher than 0

).
The correct coding is used when doing long2 and lat2 (line 526) which makes sure they dont equal 0...
Code:
Content visible to verified customers only.