Both aggregates/groups will be accessing the same database, right?
Well, what you could try doing is the following:
1) Make copies of the following files and directory:
a) /auth/
b) auth.pl
c) default.pass
d) default.log
to the following names:
a) /empauth/
b) empauth.pl
c) emp.pass
d) emp.log
2) Then create the following variables in your
default.cfg file:
Code:
# Full path and file name of the employer authorization directory.
$emp_auth_dir = $db_script_path . "/empauth";
Code:
# Full path and file name of the employer password file.
$auth_emp_pw_file = $db_script_path . "/emp.pass";
Code:
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/emp.log";
3) Then you would have to add the following codes to your
db.cgi:
Code:
require "empauth.pl"; # Authorization Routines
4) Then you would have to copy the
sub admin_display routine in the
db.cgi to something like
sub emp_admin_display. You would have to change the variables in this new sub-routine to the variables you created in the
default.cfg.
5) Add the following codes to your
db.cgi file in the
sub main routine:
Code:
elsif ($in{'emp_admin_display'}) { if ($per_admin) { &emp_admin_display; } else { &html_unauth; } }
6) Then in your
html.pl file, copy the
sub html_admin_display and create a new sub-routine,
sub html_admin_emp_display. (Make sure that you change the
&html_admin_display references in the
sub emp_admin_display to this new sub-routine.)
Hope this makes sense. I know it may seem confusing. If you need help with the new sub-routines in html.pl and db.cgi, let me know.
Regards,
------------------
Eliot Lee Anthro TECH,L.L.C
www.anthrotech.com ----------------------
[This message has been edited by Eliot (edited November 05, 1999).]