Pagina 1 din 1
register pe site si forum
Scris: 24-Sep-2006, 17:09:21
de Gatz
cum sa bag pe site o chestie de login ceva de genu cum e pe
cstrike.ro da sa-mi apara username si password.. iar desupt un buton register
.... si cand ma inregistrez pe site sa ma inregistreze automat si pe forum

Scris: 24-Sep-2006, 17:19:34
de Aliniuz
Scris: 24-Sep-2006, 17:23:21
de evo_vii
ceea ce vrei tu presupune cunostinte php cam de nivel mediu si ceva imaginatie ! cauta un cms !este mult mai usor cu asa ceva ...
Scris: 08-Oct-2006, 02:14:34
de lucky
evo_vii scrie:ceea ce vrei tu presupune cunostinte php cam de nivel mediu si ceva imaginatie ! cauta un cms !este mult mai usor cu asa ceva ...
eu cred k vrea ceva gen lx.ro cu logare autentificare pe freewebs sau neogen

Scris: 09-Oct-2006, 19:33:23
de mfk
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>
asta pui sus la inceputul paginii.
ca sa verifici daca e logat sau nu faci simplu:
Cod: Selectaţi tot
if ($userdata['session_logged_in'] { echo 'salut esti logat'; } else { echo 'nu esti logat'; }