Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Tutorial info Visit support topic

  • Added on: Jan 08 2009 06:20 PM
  • Views: 3065
 


[IPB 2.3.x] Bypass Admin CP Login

Useful tip to remove admin cp login on development boards.

Posted by Michael on Jan 08 2009 06:20 PM
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/index.php file (if this is a live board you might want to rename it first just incase.)
Find:

if ( ( $ipsclass->input['act'] != 'login' ) AND ( ! $ipsclass->admin_session['_session_validated'] ) )

Add Above:

/*

Find:

//------------------------------------------------------
// Fix up board url
//------------------------------------------------------

Add Above:

*/
$ipsclass->member['mgroup'] = $ipsclass->vars['admin_group'];

Save admin/index.php and your done.
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.

Powered by Tutorials 1.4.1 © 2012, by Michael McCune