phpBB pagina [PHP]
Dit script zet je bovenaan de pagina waarin je de sessies van phpBB wilt gebruiken.Gegevens over ingelogde user staan in $user->data, zie commentaarregels in script.
<?php
define('IN_PHPBB', true);
$phpbb_root_path = $_SERVER['DOCUMENT_ROOT'].'/forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
#$auth->login('user','pass');
#echo '<pre>';
#print_r($user);
#echo '</pre>';Reacties (3)
werkt dit ook voor moodle!
xvilo schreef:werkt dit ook voor moodle!
Het is voor phpBB dus nee.
En krijg je dan hetzelfde lekke systeem als jij eerst gemaakt had voor DP? 
Plaats reactie
Alleen leden kunnen reacties plaatsen. Ga naar de inlogpagina of word gratis lid van DigitalPlace.nl.
Details
Jouw mening
Updates
Opties




xvilo