Gossamer Forum
Home : Products : DBMan : Customization :

Multiple Html.pl's/.cfg's and admin only functions

Quote Reply
Multiple Html.pl's/.cfg's and admin only functions
I'm expanding and separating a DBMan application into multiple HTML.pl's (with matching .cfg's) they all use one database but options change as to what are required fields between the different html.pl's

I used a JPDeni suggestion and created a DEFAULT html.pl (htmDEF.pl) with matching cfg. (def.cfg) and there are to be 4 other html.pl and matching .cfg's each for different data. Anyway, the problem is with permissions between various html.pl's.

For each client there is one .pass file, one auth.pl and /auth directory, one db.cgi, one .db, .count, and .log file but there are 5 .cfg files and 5 html.pl files (with different matched names)

Each htm**.pl contains only those sub's pertainent to that database (no user admin sections except in htmdef.pl for instance) I'm trying not to carry alot of duplication between the various html.pl's to lessen problems and maintenance issues (I hope!)

sub html_footer is different depending on which database is used.

example: htmdef.pl has a footer that links to each of the other 4 databases, as well as user admin, change password, change email, and logoff links.

then the htmfa.pl (one of the other 4 databases) links to the default (as HOME) and to search, add/modify/delete records, browse (have to have right to browse) and record verification (for admin only) within that database and then logoff takes them out of the databases.

What is happening is that the Admin only functions within the htmfa.pl (the second database) footer are showing up no matter who the login is from -- even as guest. I'm assuming the permission checking is not being passed or checked when the second database is invoked.

How can I fix this? I hope this makes sense to someone!

Thanks for your help!

Lynette
Lynette
Hollister, Ca
Quote Reply
Re: [ltillner] Multiple Html.pl's/.cfg's and admin only functions In reply to
Still testing and now I find that even moving between items within the same .cfg/html.pl (not changing between databases) I end up with the permissions changed (if I click on change password and back to home permissions change) So must be something wrong in db.cgi or auth.pl or .pass files???????

BUT WHAT????????

A little more testing gives me the following results as I log in and move between databases. Note in the following that when I go to the Fixed Asset Database (or to any other database actually) that my permissions change to those listed --- and stay that way for whatever user (even when going back to the default main menu). The permissions are right ONLY on initial login.

What could be the issue? Where would I find it to fix it??? Since there is ONLY ONE db.cgi, auth.pl, .pass, .db, .count, and .log file it has to be in the html.pl files? or the .cfg files?

Initial Login as user:
Permissions: user.10498407799098 --
View/Search Records
Fixed Assets (Inventory)
Structures
Improvements to Land
Land Parcels
Browse

Click on link to Fixed Assets (Inventory:
Permissions: user.10498407799098 --
View/Search Records
Fixed Assets (Inventory)
Structures
Users
AVS Admin

Click on Main Menu (go back to default):
Permissions: user.10498407799098 --
View/Search Records
Fixed Assets (Inventory)
Structures
Users
AVS Admin

Thanks for any help!

Lynette
Lynette
Hollister, Ca

Last edited by:

ltillner: Apr 8, 2003, 4:30 PM
Quote Reply
Re: [ltillner] Multiple Html.pl's/.cfg's and admin only functions In reply to
Cool I finally figured this out by searching for "foreach" in auth.pl -- there was a permissions string that left out the new permissions I had added. I swore I went through this file 10 times yesterday looking for the same thing. Just shows what a good night's sleep will do for you!

Thanks!

Lynette
Lynette
Hollister, Ca