Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Ok, this should be very simple.. I just don't quite have the php knowledge (or time to try to figure it out) to finish the task.

Anyway.. I have an external script that I only want a particular group or groups to access. So really, all I have to add to this script is this authenticate logic to test whether or not they should have access to the page.

So, I know this is needed:

Code
	$threadspath= "/home/mydomain/public_html/forums";<br /><br />   require ("$threadspath/main.inc.php");<br /><br />   $userob = new user;<br />   $user = $userob -> authenticate();<br />


So... with that, what would come next? I basically just need it to check to see if they are in group X. If they are... run/display the script as intended.

If they are not in group X, then they are re-directed to another page, or a simple message is displaying telling them why they can't access it.

It is probably just a simple query to U_Group or whatever, and then an if statement to check... but, it would take me 3 weeks to figure it out

So any help would be great

Sponsored Links
Entire Thread
Subject Posted By Posted
select group authentication in generic script msula 07/03/2003 5:03 AM
Re: select group authentication in generic script JoshPet 07/03/2003 5:14 AM
Re: select group authentication in generic script msula 07/03/2003 5:37 AM
Re: select group authentication in generic script JoshPet 07/03/2003 5:41 AM
Re: select group authentication in generic script msula 07/03/2003 5:52 AM
Re: select group authentication in generic script msula 07/03/2003 3:24 PM
Re: select group authentication in generic script JoshPet 07/03/2003 8:04 PM
Re: select group authentication in generic script msula 07/04/2003 1:46 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
hatter
hatter
USA
Posts: 69
Joined: January 2001
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)