/includes/protection.php

Description

Santizes all $_GET dataand prevent XSS Attacks

  • author: Abdul Al-Hasany
  • version: 2010
  • copyright: Abdul Al-hasany (c) 2010
  • access: public
Functions
array_func (line 49)

Check if $_GET is an array or not, then apply the appropiate function

  • return: Santized data
array|string array_func (mixed $func, mixed $array)
  • mixed $func: Function
  • mixed $array: Array to be santized
blockhack (line 214)

Block hacking attempt throught url

  • return: Script will exit, writes error to a file and displays an error message
null blockhack ()
prevenet_xss_attacks (line 68)

Prevent XSS attacks

  • return: Santized value
string prevenet_xss_attacks (mixed $val)
  • mixed $val: Value to be santized

Documentation generated on Fri, 16 Apr 2010 12:54:46 +1000 by phpDocumentor 1.4.1