MyBB Community Forums

Full Version: class_core Hacking Attempt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What this protection do inserted in the __construct of the class_core?

$protected = array("_GET", "_POST", "_SERVER", "_COOKIE", "_FILES", "_ENV", "GLOBALS");
		foreach($protected as $var)
		{
			if(isset($_POST[$var]) || isset($_GET[$var]) || isset($_COOKIE[$var]) || isset($_FILES[$var]))
			{
				die("Hacking attempt");
			}
		}

What types of attacks prevents?