Welcome Guest, Not a member yet? Register   Sign In
securing the functions in the controller
#4

[eluser]cahva[/eluser]
So actually you need to check if its an ajax call. Then use something like this(or create a helper from it if you need it more than once Smile )

Code:
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']=="XMLHttpRequest")
{
    // ajax headers sent.. proceed
}
else
{
    // not an ajax request so stop
    return FALSE;
}


Messages In This Thread
securing the functions in the controller - by El Forum - 06-24-2010, 04:04 PM
securing the functions in the controller - by El Forum - 06-24-2010, 05:36 PM
securing the functions in the controller - by El Forum - 06-24-2010, 06:25 PM
securing the functions in the controller - by El Forum - 06-24-2010, 07:00 PM
securing the functions in the controller - by El Forum - 06-24-2010, 08:11 PM
securing the functions in the controller - by El Forum - 06-24-2010, 08:13 PM
securing the functions in the controller - by El Forum - 06-25-2010, 03:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB