public function act_admin_ajax()
{
header('Content-Type: text/javascript;charset=utf-8');
$context = $this->handler_vars['context'];
if (method_exists($this, 'ajax_' . $context)) {
$type = isset($this->handler_vars['content_type']) && !empty($this->handler_vars['content_type']) ? $this->handler_vars['content_type'] : '';
// Access check to see if the user is allowed the requested page
if ($this->access_allowed('ajax_' . $context, $type)) {
call_user_func(array($this, 'ajax_' . $context), $this->handler_vars);
}
} else {
header('HTTP/1.1 403 Forbidden', true, 403);
die;
}
}