|
Joined: Feb 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 26 |
Hi... I got a UBB, which is in perl. I got a website which is in php. I got a cookie the ubb makes that I wanna exploit in php. I got a big problem  Does anyone have any idea how I could use the cookie set by UBB to get info from their profile? I dont even know what name it is or how to call it  I think its called ubber then a few numbers... Its value is like UserName&Pass&MemberNumber&1000 So, If I knew how to get the cookie to a var, I could use explode to get each into an array by using the ampersand as the explode char...? Can ANYONE help? Cheers 
|
|
|
|
Joined: Mar 2000
Posts: 615
Member
|
Member
Joined: Mar 2000
Posts: 615 |
list($username,$password,$membernumber,$other) = explode('&', $HTTP_COOKIE_VARS['ubber']);
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
more specifically, ubber$vars_config{Cookie_Number}, or better yet, $cookie. 
|
|
|
|
Joined: Feb 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 26 |
Hmmm.... It doesnt work, the variables are empty  I changed the ubber to ubber than the number in the config file and sill no luck, and $cookie doesnt work either  Any ideas?
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Experement with more inside ultimatebb. We might be using the wrong examples.
|
|
|
|
Joined: Feb 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 26 |
Still cant get it to work  Maybe I could put in a piece of perl code where the cookie is created to create another cookie, that can be used by the whole site and its value be their member number? Would that be possible? Would anyone of you know the code to do it? [ June 19, 2001 02:25 AM: Message edited by: MHB ]
|
|
|
|
Joined: Feb 2001
Posts: 26
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 26 |
Actuallt nevermind, It seems my cookie number has a space in, and spaces turn into underscores, so I tried it with the underscore and it worked! Thanks alot for your help 
|
|
|
|
Joined: Jan 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 12 |
Hi.
I have a UBB board, and memebrs log in, making a cookie.
Now, I'm making a website in Macromedia UltraDev and I have a database for the users details and preferences on content.
I'd really like a login page that logs them into the site and also simultaneously logs then into UBB.
How do I do this?
PS. I'm familiar with HTML, but am NO wizard with this stuff, I'm just leaner. Please be simple.
Cheers.
|
|
|
|
Joined: Aug 2001
Posts: 155
Member
|
Member
Joined: Aug 2001
Posts: 155 |
I also am trying to do this, grabbing info from the ubb cookie and displaying and intergrating it in php on the rest of the site.
I'm new to php, been reading around trying to find out what to do, and besides whats been posted here I haven't found much (or understood) that could help me. So.. anyone wanna kinda guide me along here?
Thanx in advance.
I'm not really back. I went away again.
|
|
|
|
Joined: Aug 2001
Posts: 155
Member
|
Member
Joined: Aug 2001
Posts: 155 |
I'm not really back. I went away again.
|
|
|
|
Joined: Nov 2001
Posts: 10
Junior Member
|
Junior Member
Joined: Nov 2001
Posts: 10 |
I'm sort of in the same boat. Outside the UBB the site will be ASP and there will be some user functions there that will require being logged in. I would like some way to utilize the cookie that UBB writes.
|
|
|
|
Joined: Nov 2001
Posts: 10
Junior Member
|
Junior Member
Joined: Nov 2001
Posts: 10 |
Should I assume that because there are no responses that no one knows how to do this?
|
|
|
|
Joined: Aug 2001
Posts: 155
Member
|
Member
Joined: Aug 2001
Posts: 155 |
https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=14;t=000566 
I'm not really back. I went away again.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|