FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Protector Scrit - use FUDForum as Central Login Manager
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Protector Scrit - use FUDForum as Central Login Manager [message #25098] Wed, 25 May 2005 14:28 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Hi,

If possible, I would like to write a "protector" script, that can be included into other PHP programs, that will prevent unauthenticated users from accessing these programs. It should do the following:

1. Check if the user is already logged in. If so, do nothing and allow the non-FUDForum program to continue.

2. If the user is NOT logged in, present the login template and allow the user to authenticate or register. When the user is authenticated, return to the calling (non-FUDForum) program.

A typical call should look something like this.

<?php include("../FUDForum/data/scripts/protector.php"?>


Any ideas or assistance in writing such a protector would be greatly appreciated!

Best regards.

Frank
[Message index]
 
Read Message
Read Message
Previous Topic: Admin Members List
Next Topic: simple mail wrapper for qmail+mailman+fudforum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 08:13:28 GMT 2024

Total time taken to generate the page: 0.05402 seconds