Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 114
Content Kidman
Content Kidman
Offline
Joined: Oct 2001
Posts: 114
On my previous design I blocked access to pages so I used to check for the login, if not logged in use the PHP header function to redirect to "login.php?referred=pictures.php"

The login.php script would then accept the username/password, test them against the UBB member files and if correct, set the UBB cookies and then use the $referred value to redirect the user back to the page they came from. The login.php script still has code in to set the "Ell" cookie but this was used by the Who's Online Hack I had on v6.05. You don't need to set this cookie for v6.3.

With the site redesign I chose not to block pages, just particular features so there is now code in the pages that presents an invitation to login if the cookie isn't present. This popups the login.php page, if all is correct it sets the cookie and reloads the opening page. All the login stages are reported into an access log. It was useful for debugging but it still runs today but it means I can see how many people login outside the forums.

Here's login.zip which contains login.php and common.php that it includes which has got a few site-wide variables and functions defined in it. Login.php is identical to the one on the site, common.php is just a cut down version.

Sponsored Links
Entire Thread
Subject Posted By Posted
Log-in Sequence for Other Areas of a Site stupidboy.com 05/24/2002 1:47 PM
Re: Log-in Sequence for Other Areas of a Site Chopped Onions 06/03/2002 12:02 AM
Re: Log-in Sequence for Other Areas of a Site Michael J 06/03/2002 5:51 PM
Re: Log-in Sequence for Other Areas of a Site ScottRoberts 06/03/2002 9:47 PM
Re: Log-in Sequence for Other Areas of a Site LK 06/03/2002 9:55 PM
Re: Log-in Sequence for Other Areas of a Site Michael J 06/03/2002 10:43 PM
Re: Log-in Sequence for Other Areas of a Site ScottRoberts 06/03/2002 10:59 PM
Re: Log-in Sequence for Other Areas of a Site Michael J 06/03/2002 11:33 PM
Re: Log-in Sequence for Other Areas of a Site LK 06/04/2002 9:05 PM
Re: Log-in Sequence for Other Areas of a Site ScottRoberts 06/07/2002 4:20 PM
Re: Log-in Sequence for Other Areas of a Site stupidboy.com 07/13/2002 7:51 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/15/2002 12:08 PM
Re: Log-in Sequence for Other Areas of a Site yosaid 07/17/2002 7:04 AM
Re: Log-in Sequence for Other Areas of a Site Michael J 07/19/2002 3:35 AM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/23/2002 1:47 AM
Re: Log-in Sequence for Other Areas of a Site yosaid 07/23/2002 7:38 PM
Re: Log-in Sequence for Other Areas of a Site CaCoffin 07/24/2002 7:59 AM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/24/2002 4:03 PM
Re: Log-in Sequence for Other Areas of a Site CaCoffin 07/24/2002 4:37 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/24/2002 11:44 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 12:37 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/25/2002 1:39 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 1:58 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 2:33 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 3:51 PM
Re: Log-in Sequence for Other Areas of a Site yosaid 07/25/2002 4:31 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/25/2002 8:16 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 9:43 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/25/2002 10:55 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 11:01 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 11:09 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/25/2002 11:16 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/25/2002 11:17 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 11:27 PM
Re: Log-in Sequence for Other Areas of a Site Paulus Magnus 07/25/2002 11:43 PM
Re: Log-in Sequence for Other Areas of a Site maurice 07/25/2002 11:50 PM
Re: Log-in Sequence for Other Areas of a Site yosaid 07/26/2002 9:23 PM
Re: Log-in Sequence for Other Areas of a Site rabriar 07/29/2002 1:57 AM
Re: Log-in Sequence for Other Areas of a Site yosaid 07/30/2002 2:32 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)