Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

ajax_unauthorized()

Description

Returns a standard AJAX response for unauthorised access with a 401 HTTP status code

Parameters

This function accepts no parameters.

Return

void

Location

include/ajax_functions.php lines 120 to 124

Definition

 
function ajax_unauthorized()
    {
    global 
$lang;
    return 
ajax_send_response(401ajax_response_fail(ajax_build_message($lang['error-permissiondenied'])));
    }

This article was last updated 5th July 2020 03:35 Europe/London time based on the source file dated 18th May 2020 11:26 Europe/London time.