Loading...
 
Development

Development


Re: User login integration question...

posts: 63 United Kingdom

I think using

Copy to clipboard
require_once(relative/path/to/tiki-setup.php);

should do the trick.

Then, assuming the user is logged on to tiki, $user will contain their username, otherwise it'll be "";

Then you could use an HTML page to include your address book application inside the Tiki application layout using an IFRAME SRC="YourApplication",

You could also tweak the login for your address book to either not check for login if Tiki's $user is supplied
OR
require that they confirm thier password before they can veiw the address book, which you should be able to verify against tiki's...
although the method alludes me at this precise moment.

Also, you can add a clause like

Copy to clipboard
if (!$user) { header("Location: tiki-error.php?error=You must be logged in to use the address book"); };

Assuming headers have not already been sent, of course. Or something similar to throw out errors through tiki as well.

There are no comments at this time.