https://www.icyphoenix.com/viewtopic.php?f=26&t=5023&p=34263#p34263
-----------------------------------
Mighty Gorgon
Mon 01 Dec, 2008 23:37

Re: Application Integration -- Help Would Be Appreciated.
-----------------------------------
The new version of Icy Phoenix already does that. :wink:

Integrating it into the old version is quite difficult, but I can show how to apply it to a specific file, so you can then apply wherever you wish.

For example open [b]faq.php[/b]

FIND
[codeblock]	if ( ($auth_level_req == AUTH_REG) && (!$userdata['session_logged_in']) )
	{
		message_die(GENERAL_MESSAGE, $lang['Not_Auth_View']);
	}[/codeblock]

REPLACE WITH
[codeblock]	if ( ($auth_level_req == AUTH_REG) && (!$userdata['session_logged_in']) )
	{
				$page_array = array();
				$page_array = extract_current_page(IP_ROOT_PATH);
				redirect(append_sid($phpbb_root_path . LOGIN_MG . '?redirect=' . str_replace(('.' . $phpEx . '?'), ('.' . $phpEx . '&'), $page_array['page']), true));
	}[/codeblock]

Let me know.


