I am starting a new post for this the other was getting very long.
I have implemented the code for verifying that a record exists for every account within the .pass file - and if not it returns a listing of those ID's to the screen.
However, when I run this the listing returned indicates that all 1149 userID's in the database do NOT have a record associated with the ID.
Here is the code I used from http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000617.html :
sub html_verify_accounts {
# --------------------------------------------------------
&html_print_headers;
$page_title = "Accounts Without Records";
&html_page_top;
open (PASSWD, "<$auth_pw_file") or &cgierr("unable to open password file. Reason: $!\n");
@passwds = <PASSWD>;
close PASSWD;
foreach $pass (@passwds) {
@data = split ":",$pass;
print $data[0];
undef %rec;
%rec = &get_record($data[0]);
if (!%rec) {
push (@list,$data[0]);
}
}
unless ($list[0]) {
print "All users have records in the database";
}
else {
print "The following users do not have records in the database:<BR>";
foreach $user (@list) {
print "$user<BR>";
}
}
&html_footer
&html_page_bottom;
}
I have implemented the code for verifying that a record exists for every account within the .pass file - and if not it returns a listing of those ID's to the screen.
However, when I run this the listing returned indicates that all 1149 userID's in the database do NOT have a record associated with the ID.
Here is the code I used from http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000617.html :
sub html_verify_accounts {
# --------------------------------------------------------
&html_print_headers;
$page_title = "Accounts Without Records";
&html_page_top;
open (PASSWD, "<$auth_pw_file") or &cgierr("unable to open password file. Reason: $!\n");
@passwds = <PASSWD>;
close PASSWD;
foreach $pass (@passwds) {
@data = split ":",$pass;
print $data[0];
undef %rec;
%rec = &get_record($data[0]);
if (!%rec) {
push (@list,$data[0]);
}
}
unless ($list[0]) {
print "All users have records in the database";
}
else {
print "The following users do not have records in the database:<BR>";
foreach $user (@list) {
print "$user<BR>";
}
}
&html_footer
&html_page_bottom;
}