View Single Post
  #52  
Old 11th October 2011, 17:37
cooly's Avatar
cooly cooly is offline
Senior Member
 
Join Date: Jun 2011
United Kingdom
Posts: 26
Default
Quote:
Originally Posted by Optix View Post
Nice try, but be careful : in stripos() , parameters of this function are inverted. Over that, it's perfect ;)
yeh a bit too sensitive but this is good.

Code:
//Access Security check
function instr($haystack, $needle) {
  $pos = strpos($haystack, $needle, 0);
  if ($pos != 0) return true;
  return false;
} 
if (instr($_SERVER['PHP_SELF'],"mysql")) {
    die("fishy");
}
Reply With Quote