initial vars and absolute R_ things in sh/node sh/lockout and sh/isolate
[spider.git] / cmd / show / lockout.pl
index 8c9c488c7399bc9b31943b99805ecaea6853a39f..04d1ef12fca5529f62e447b032e0e2b82d7407cd 100644 (file)
@@ -15,8 +15,8 @@ my @out;
 
 use DB_File;
 
-my ($action, $count, $key, $data);
-for ($action = R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = R_NEXT) {
+my ($action, $count, $key, $data) = (0,0,0,0);
+for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
        if ($data =~ m{lockout =>}) {
                my $u = DXUser->get_current($key);
                if ($u && $u->lockout) {