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
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

