PHP Класс New_Device_Notification, vip-mu-plugins-public

************************************************************************* Plugin Name: New Device Notification Description: Uses a cookie to identify new devices that are used to log in. On new device detection, an e-mail is sent. This provides some basic improved security against compromised accounts. Author: Automattic VIP Team Author URI: http://vip.wordpress.com/ Version: 2.0 License: GPLv2 ************************************************************************
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$cookie_hash
$cookie_name 1 week
$grace_period This is to get all of the normal users into the logs and avoid spamming inboxes.

Открытые методы

Метод Описание
__construct ( )
get_standard_message ( $user_obj, $args )
is_user_from_valid_ip ( $ip )
maybe_send_email ( $send_email, $user_info )
notify_of_new_device ( )
set_cookie ( )
start ( )
verify_cookie ( )

Описание методов

__construct() публичный Метод

public __construct ( )

get_standard_message() публичный Метод

public get_standard_message ( $user_obj, $args )

is_user_from_valid_ip() публичный Метод

public is_user_from_valid_ip ( $ip )

maybe_send_email() публичный Метод

public maybe_send_email ( $send_email, $user_info )

notify_of_new_device() публичный Метод

start() публичный Метод

public start ( )

Описание свойств

$grace_period публичное свойство

This is to get all of the normal users into the logs and avoid spamming inboxes.
public $grace_period