Page 1 of 3
ACP redirect
Posted: 21 Apr 2010, 20:03
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
Posted: 21 Apr 2010, 20:37
by Stoker
Thanks, I hate to wait when hitting ACP
Re: ACP redirection
Posted: 21 Apr 2010, 20:41
by cisco007
yeah, this is just about the first thing i add to a new board!
Re: ACP redirection
Posted: 21 Apr 2010, 22:16
by Fire-Fox
Thanks..
Very handy
Re: ACP redirection
Posted: 22 Apr 2010, 01:17
by Inner Circle
Thanks for the snippet!
Saves a lot of time!
Re: ACP redirection
Posted: 22 Apr 2010, 02:17
by cisco007
yeah, all these redirection snippets save a lot of time!
Re: ACP redirection
Posted: 22 Apr 2010, 07:29
by Huchinotte
Yeah wonderfull .......... thanks for this snippet
Huch
Re: ACP redirection
Posted: 22 Apr 2010, 09:54
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
Re: ACP redirection
Posted: 22 Apr 2010, 15:03
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
Posted: 22 Apr 2010, 18:56
by cisco007
yes, it will work, i have two redirects before that code and they work great!