Jump to content
DevFuse Forums
Sign in to follow this  

[IPB 3.0.x] Bypass Admin CP Login


This is a little edit to get into the Admin CP without loggin in, extremely useful for development boards, where logging in can be a pain. Open admin/sources/base/ipsRegistry.php
Find:
[code] if ( ( ipsRegistry::$request['module'] != 'login' ) AND ( ! $validationStatus ) )[/code]

Replace With:
[code] $memberData['member_id'] = "1";
$memberData['members_display_name'] = "Admin";

if ( $nothing )[/code]

Save admin/sources/base/ipsRegistry.php and your done.
[color="#ff0000"][b]Please Note: This tip is mainly for localhost development boards, and is a extreme risk when used on live boards, use at your own risk. [/b][/color]


Recommended Comments

There are no comments to display.

×