|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||||
|
|||||
|
phpBB2 userdata
Hi I need the information in the $userdata array. I can get it by using the folowing code.
php Code:
But this will only work from my phpbb root directory otherwise it says hacking attempt. I would like to run somthing likethis from a different location. I dont need the whole user array all i really need is $userdata["session_logged_in"] and $userdata["username"] thanks -Smoker |
|
#2
|
|||
|
|||
|
RE: phpBB2 userdata
my quick solution (being too lazy to figure it out why) would be:
1) put that script in phpbb folder. 2) when you need that data from php, chdir() to that foler (from your php script) 3) include('zbb.php') that file 4) chdir() back 5) use $userdata however you like i would do this, because i don't like reading other's ppl code, and figuring out what the programmer whanted to say ;) |
|
#3
|
|||
|
|||
|
RE: phpBB2 userdata
I had the same problem, look this line in the header: $userdata = session_pagestart($user_ip, PAGE_INDEX); Change PAGE_INDEX for your webside directory or the directory where this file is. $userdata = session_pagestart($user_ip, "./"); Hope this can help you. Sorry for my bad english. Vassagus. vassagus@gmail.com |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > phpBB2 userdata |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|