Changeset 948 for trunk/cgi-bin


Ignore:
Timestamp:
08/02/24 11:08:31 (3 months ago)
Author:
Kris Deugau
Message:

/trunk

Minor style fiddles with interpolation and whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/access-pwd-update.pl

    r932 r948  
    7171open HTPASS, "<$passfile";
    7272
    73 my $sth = $ip_dbh->prepare("SELECT count(*) FROM users WHERE username = ?");
     73my $sth         = $ip_dbh->prepare("SELECT count(*) FROM users WHERE username = ?");
    7474my $insert_user = $ip_dbh->prepare("INSERT INTO users (username) VALUES (?)");
    75 my $del_user = $ip_dbh->prepare("DELETE FROM users WHERE username = ?");
     75my $del_user    = $ip_dbh->prepare("DELETE FROM users WHERE username = ?");
    7676
    7777while (<HTPASS>) {
     
    8282  if ($data[0] == 0) {
    8383    if ($doadd) {
    84       $insert_user->execute($user) or print "error inserting $user: ".$DBI::errstr."\n";
     84      $insert_user->execute($user) or print "error inserting $user: $DBI::errstr\n";
    8585      print "new user: $user\n";
    8686    } else {
     
    102102    }
    103103    if ($dodel) {
    104       $del_user->execute($data[0]) or print "error deleting $data[0]: ".$DBI::errstr."\n";
     104      $del_user->execute($data[0]) or print "error deleting $data[0]: $DBI::errstr\n";
    105105      print "deleting $data[0] (acl $data[1])\n";
    106106    } else {
Note: See TracChangeset for help on using the changeset viewer.