.... si cand ma inregistrez pe site sa ma inregistreze automat si pe forum

Cod: Selectaţi tot
<?php
$phpbb_root_path = 'forum/';
define ('IN_PHPBB', true);
if (!file_exists($phpbb_root_path . 'extension.inc'))
{
die ('<tt><b>phpBB Fetch All:</b>
$phpbb_root_path is wrong and does not point to your forum.</tt>');
}
//
// phpBB related files
//
include_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.' . $phpEx);
include_once ($phpbb_root_path . 'includes/bbcode.' . $phpEx);
//
// start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// since we are demonstrating span pages we need to set the page offset
//
if (isset($HTTP_GET_VARS['start']) or isset($HTTP_POST_VARS['start']))
{
$CFG['posts_span_pages_offset'] = isset($HTTP_GET_VARS['start'])
? $HTTP_GET_VARS['start'] : $HTTP_POST_VARS['start'];
if (!intval($CFG['posts_span_pages_offset']))
{
$CFG['posts_span_pages_offset'] = 0;
}
if (!is_numeric($CFG['posts_span_pages_offset']))
{
$CFG['posts_span_pages_offset'] = 0;
}
if ($CFG['posts_span_pages_offset'] <0>
Cod: Selectaţi tot
if ($userdata['session_logged_in'] { echo 'salut esti logat'; } else { echo 'nu esti logat'; }
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 8 vizitatori