PHP Class SpoofPlugin, addons

Inheritance: implements Gdn_IPlugin
Show file Open project: vanilla/addons

Public Methods

Method Description
Base_GetAppSettingsMenuItems_Handler ( $Sender ) Add the spoof admin screen to the dashboard menu.
EntryController_Spoof_Create ( $Sender ) Creates a spoof login page.
ManageController_SiteListOptions_Handler ( $Sender ) Adds a "Spoof" link to the site management list.
ProfileController_AfterAddSideMenu_Handler ( $Sender )
Setup ( )
UserController_AutoSpoof_Create ( $Sender ) Validates the current user's permissions & transientkey and then spoofs the userid passed as the first arg and redirects to profile.
UserController_Spoof_Create ( $Sender ) Admin screen for spoofing a user.
UserController_UserListOptions_Handler ( $Sender ) Adds a "Spoof" link to the user management list.

Private Methods

Method Description
_SpoofMethod ( $Sender ) Standard method for authenticating an admin and allowing them to spoof a user.

Method Details

Base_GetAppSettingsMenuItems_Handler() public method

Add the spoof admin screen to the dashboard menu.

EntryController_Spoof_Create() public method

Creates a spoof login page.
public EntryController_Spoof_Create ( $Sender )

ManageController_SiteListOptions_Handler() public method

Adds a "Spoof" link to the site management list.

ProfileController_AfterAddSideMenu_Handler() public method

Setup() public method

public Setup ( )

UserController_AutoSpoof_Create() public method

Validates the current user's permissions & transientkey and then spoofs the userid passed as the first arg and redirects to profile.
public UserController_AutoSpoof_Create ( $Sender )

UserController_Spoof_Create() public method

Admin screen for spoofing a user.
public UserController_Spoof_Create ( $Sender )

UserController_UserListOptions_Handler() public method

Adds a "Spoof" link to the user management list.