define('IN_PHPBB', true);
$phpbb_root_path = '../../community/phpbb2/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_VIEWMEMBERS);
init_userprefs($userdata);
//
// session id check
//
if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))
{
$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];
}
else
{
$sid = '';
}
// Require user to be logged in to view the page
// Borrowed code from another file, not really a mod
if ( ! ($userdata['session_logged_in'] ))
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("/login/login.$phpEx?redirect=/admins/affilates/pending_affiliate_list.$phpEx", true));
exit;
}
// end user logged in mod
Return to [2.0.x] MOD Requests
Users browsing this forum: No registered users and 1 guest