Hi to all,
and excuse me for my english.
I need of a great help.
I've created one page in php, added to my phpnuke as a module. Now, I want that anly registered can have th access too this page.
In my personal page, I use this query, becouse I've integrated the all site in phpBB mods:
|
Code:
|
$phpbb_root_path = './forum/';
define ('IN_PHPBB', true);
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.' . $phpEx);
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if (!$userdata['session_logged_in'])
{
$querystring = '';
if (isset($_SERVER['QUERY_STRING']))
{
$querystring = '&' . $_SERVER['QUERY_STRING'];
}
redirect(append_sid('login.' . $phpEx . '?redirect=../against.php' . $PHP_SELF . $querystring , false));
} |
How can I create one similar query for my phpnuke?
Please answer to me.
Thanks :wink: