ACP redirect

Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets

ACP redirect

Post by cisco007 »

This will instantly redirect you to your ACP after logging into your ACP
AUTHOR: EY

open includes/functions.php

Find:

Code: Select all

meta_refresh(3, $redirect);
      trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
Add before:

Code: Select all

  if ($admin)
      {
      redirect($redirect);
      }

Re: ACP redirection

Post by Stoker »

Thanks, I hate to wait when hitting ACP

Re: ACP redirection

Post by cisco007 »

yeah, this is just about the first thing i add to a new board!

Re: ACP redirection

Post by Fire-Fox »

Thanks..

Very handy :)

Re: ACP redirection

Post by Inner Circle »

Thanks for the snippet!

Saves a lot of time!

Re: ACP redirection

Post by cisco007 »

yeah, all these redirection snippets save a lot of time!

Re: ACP redirection

Post by Huchinotte »

Yeah wonderfull .......... thanks for this snippet

Huch

Re: ACP redirection

Post by neptune »

the 1st edit by one of my boards looks so, can i make the edit?

Code: Select all

$redirect = meta_refresh(3, $redirect);
			trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
thx
Last edited by neptune on 22 Apr 2010, 10:16, edited 1 time in total.

Re: ACP redirection

Post by Inner Circle »

neptune » 22 Apr 2010, 09:54 wrote:the 1st edit by one of my boards looks so, can i make the edit?

Code: Select all

$redirect = meta_refresh(3, $redirect);
			trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
thx
it works too ( have the same code and tested it )

Re: ACP redirection

Post by cisco007 »

yes, it will work, i have two redirects before that code and they work great!