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.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting