User authentication in linked pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
telmaw
New Member
New Member
Posts: 9
Joined: Sat Mar 11, 2006 5:25 pm

User authentication in linked pages

Post by telmaw »

Hi, I have a problem with user authentication and I would really appreciate any help on this.

I'm running CMS Made Simple 1.1.4.1, using PHP 5.2.4, and MySQL 5.0.45.

I’ve recently upgraded from CMSMS version 0.13 “Canary” and changed to a new host.  I did not have the problem prior to the changes.

I have a link to a page within the same domain which uses a PHP / MySQL database to manage a club membership system.  These pages are protected and I have used the CMSMS admin login to perform the user authentication.  Each page of this application has this code inserted:



The page starts with the standard Admin login screen and the loads the first page of the application after the user has logged in.  I should point out these pages load outside of CMSMS, in a new window and in a frame to maintain the left hand menu.

What now happens is the Admin screen loads into the frame after the user logs in and not the referring page.  I assume some variable needs to be passed to the check_login() function but I can’t work out how to do this.

Another option would be to utilise FrontEndUser and CustomContent but this would require a lot of work to write user defined tags containing the many pages of PHP code and then creating new pages within CMSMS.  Again I’m not sure how users would be authenticated on each page.  Thanks.
alby

Re: User authentication in linked pages

Post by alby »

telmaw wrote: .................
Another option would be to utilise FrontEndUser and CustomContent but this would require a lot of work to write user defined tags containing the many pages of PHP code and then creating new pages within CMSMS.  Again I’m not sure how users would be authenticated on each page.  Thanks.
This is better  ;)

There are 2 visual tutorials for this:
1
2

Alby
telmaw
New Member
New Member
Posts: 9
Joined: Sat Mar 11, 2006 5:25 pm

Re: User authentication in linked pages

Post by telmaw »

Thanks alby, the tutorials are a great help for the custom content option.  My problem now is that the pages in this application have php code intersperced with html.  Presumably the PHP will have to be inserted as UDTs and the html as it is.  Although I agree it's a more elegant  solution, it's still a lot of work to re-write pages and UDTs.  Can anyone throw light on why it worked under version 0.13 but not now?  Thanks.
Post Reply

Return to “CMSMS Core”