|
Joined: Sep 2002
Posts: 10
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 10 |
Hope ive posted this in the right place.......
Ive often wondered if it would be at all possible to make it so to access a page, external from the ubb it is required that you be registered and logged in.
I assumed that a good start would be to make the board only viewable by registered members and view source - and insert the cookie script into the external pages.
Well this idea failed And I gave up...But looking on here I see that you guys can make a UBB do anything! - and my proplem seems like a walk in the park in comparasin.
So I wonder if anyone would share with me on how to make asp pages check the cookie from the ubb and act accordingly?
Thanx in advance guys.
|
|
|
|
Joined: Sep 2002
Posts: 10
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 10 |
lol that really isnt how I want to do it tho. Thanks tho matey!
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Mmmm... do you have PHP on your server? Take a peek at the Accelerator, it contains methods you can use to determine if a user is logged in and to check his profile to make sure the user is legit.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Sep 2002
Posts: 10
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 10 |
only ASP im afraid Isnt there just some code I can pull from the ubb templates that check for the log in cookie?
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
The cookie will be named "ubber", followed by a Julian date as listed in vars_config as Cookie_Number.
There will be a number of arguments, split by ampersands - the user number, password , usernum, pdn, and others that you can ignore.
If the cookie exists and the usernum file exists, open it and compare the username & password to ensure a match.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Sep 2002
Posts: 10
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 10 |
swoooshhhhhhhhhh, well over my head! Lets change direction.
I have an imagefolio Gallery which I wish to restrict to registered members. The register base is the UBB.
Can I pull code from the ubbs cgi that checks for membership and put it into the imagefolio cgi ?
If so, what code will I need and where do I put it?
<~~~Absolute Noob!
|
|
|
|
Joined: Sep 2002
Posts: 10
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 10 |
If no one knows that, can someone tell me which part of the ubb checks for regisration? is it ultimate.cgi itself or the templates, or..or..or?
Then I shall have a starting point on where to begin playing around
cheers
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
The verify_id_num subroutine in ubb_lib is responsible for most of the authentication in the UBB. It does what I outlined above. 
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Sep 2002
Posts: 10
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 10 |
Spot on m8, thanx alot One satified member 
|
|
|
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: 808
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|