Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\IP_Restrictions

s2member\includes\classes\ip-restrictions.inc.php at line #28

Class c_ws_plugin__s2member_ip_restrictions

c_ws_plugin__s2member_ip_restrictions

public class c_ws_plugin__s2member_ip_restrictions

IP Restrictions.

Since:

3.5


( 7 Methods )
Method Summary
public static bool

delete_reset_all_ip_restrictions()

Resets/deletes all IP Restrictions.

public static null

delete_reset_all_ip_restrictions_via_ajax()

Resets/deletes all IP Restrictions via AJAX.

public static bool

delete_reset_specific_ip_restrictions(str $restriction)

Resets/deletes specific IP Restrictions.

public static null

delete_reset_specific_ip_restrictions_via_ajax()

Resets/deletes specific IP Restrictions via AJAX.

public static bool

ip_restrictions_ok(str $ip, str $restriction)

Handles IP Restrictions.

public static bool

specific_ip_restriction_at_or_above_max(str $restriction)

Queries Transients for specific IP Restrictions at or above max allowable.

public static bool

specific_ip_restriction_breached_security(str $restriction)

Queries Transients for specific IP Restrictions associated with a security breach.

( 7 Methods )
Method Detail

s2member\includes\classes\ip-restrictions.inc.php at line #248

delete_reset_all_ip_restrictions()

public static bool delete_reset_all_ip_restrictions()

Resets/deletes all IP Restrictions.

Since:

3.5

Returns:

bool - Always returns a true value.

Todo:

Make return value conditional, based on success.

[ back to top ]

s2member\includes\classes\ip-restrictions.inc.php at line #271

delete_reset_all_ip_restrictions_via_ajax()

public static null delete_reset_all_ip_restrictions_via_ajax()

Resets/deletes all IP Restrictions via AJAX.

Since:

3.5

Attaches-to:

add_action("wp_ajax_ws_plugin__s2member_delete_reset_all_ip_restrictions_via_ajax");

Returns:

null - Exits script execution after returning data for AJAX caller.

[ back to top ]

s2member\includes\classes\ip-restrictions.inc.php at line #188

delete_reset_specific_ip_restrictions()

public static bool delete_reset_specific_ip_restrictions(str $restriction)

Resets/deletes specific IP Restrictions.

Since:

3.5

Parameters:

str $restriction - Unique IP Restriction name/identifier. Such as a Username, or a unique access code.

Returns:

bool - Always returns a true value.

Todo:

Make return value conditional, based on success.

[ back to top ]

s2member\includes\classes\ip-restrictions.inc.php at line #215

delete_reset_specific_ip_restrictions_via_ajax()

public static null delete_reset_specific_ip_restrictions_via_ajax()

Resets/deletes specific IP Restrictions via AJAX.

Since:

3.5

Attaches-to:

add_action("wp_ajax_ws_plugin__s2member_delete_reset_specific_ip_restrictions_via_ajax");

Returns:

null - Exits script execution after returning data for AJAX caller.

[ back to top ]

s2member\includes\classes\ip-restrictions.inc.php at line #42

ip_restrictions_ok()

public static bool ip_restrictions_ok(str $ip, str $restriction)

Handles IP Restrictions.

IP address details are stored as Transients.

Since:

3.5

Parameters:

str $ip - IP Address.

str $restriction - Unique IP Restriction name/identifier. Such as a Username, or a unique access code.

Returns:

bool - True if IP Restrictions are OK, otherwise this function will exit script execution after issuing a warning.

[ back to top ]

s2member\includes\classes\ip-restrictions.inc.php at line #133

specific_ip_restriction_at_or_above_max()

public static bool specific_ip_restriction_at_or_above_max(str $restriction)

Queries Transients for specific IP Restrictions at or above max allowable.

Since:

130407

Parameters:

str $restriction - Unique IP Restriction name/identifier. Such as Username, or a unique access code.

Returns:

bool - TRUE if at or above max allowable IPs; else FALSE.

[ back to top ]

s2member\includes\classes\ip-restrictions.inc.php at line #167

specific_ip_restriction_breached_security()

public static bool specific_ip_restriction_breached_security(str $restriction)

Queries Transients for specific IP Restrictions associated with a security breach.

Since:

3.5

Parameters:

str $restriction - Unique IP Restriction name/identifier. Such as a Username, or a unique access code.

Returns:

bool - True if the specific IP Restriction is associated with a security breach, else false.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail