daddelkopp
edit: Now both use the same subdomain everything works fine A small suggestion. Is it possible automatic jump back to guildroster site after login?
edit2: I found it
Insert in every file (at the top) you want to be login protected:
- Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if (!$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=./roster/guildinfo.$phpEx", true));
}
//
// End page access based on logged in
//
Just edit the redirect stuff for every file. The example is for guildinfo.php. Roster was installed in /phpBB2/roster