$tag_val) { if (in_array($tag, $NotEmpty) && empty($tag_val)) { $e_acct[$tag.'_R']=TRUE; } } if (!empty($acct['NAME'])) { if (strpos($acct['NAME'], '@') !== FALSE) { $e_acct['NAME_1']=TRUE; } elseif (strcasecmp($acct['NAME'], 'hbc') == 0) { $e_acct['NAME_3']=TRUE; } else { $query='select count(*) from accts where name="'.$acct['NAME'].'"'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); if ($cnt_row[0] != 0) { $e_acct['NAME_2']=TRUE; } } } if ($acct['HIDDEN1'] != $acct['VALUE1'] || $acct['VALUE1'] != $acct['HIDDEN2'] || $acct['HIDDEN2'] != $acct['VALUE2']) { $e_acct['MATCH']=TRUE; } if (count($e_acct) == 0) { $NewKey=gen_key(); $query='insert into accts values(null, "'.$acct['NAME'].'", "'.$acct['HIDDEN1'].'", "A", "'.$NewKey.'", null, null, now())'; if (!mysqli_query($db, $query)) { $e_note['INSERT']=TRUE; } else { $query='insert into changelog values(null, null, "'.$Key.'", "accts", "A", "", "'.$acct['NAME'].'", "", "")'; mysqli_query($db, $query); if ($Setup) { $query='update accts set acct_type="D" where name="'.$AcctName.'"'; mysqli_query($db, $query); $query='insert into changelog values (null, null, "'.$Key.'", "accts", "C", "acct_type", "'.$AcctName.'", "A", "D")'; mysqli_query($db, $query); $query='insert into access values (null, "'.$acct['NAME'].'", "", "A", "A", "'.$_SERVER['REMOTE_ADDR'].'")'; mysqli_query($db, $query); } } } if (count($e_acct) != 0) { $Page='ctrl_add.php?k='.$Key; } else { $Page='amenu.php?k='.($Setup ? $NewKey : $Key); } ?>

Validating Admin Access

'."\n"; } } else { echo '

'."\n"; echo 'Admin Access Created'."\n"; echo '

'."\n"; echo ''."\n"; } ?>
'."\n"; echo '