Skip to content

Commit

Permalink
Removing executable bit from bin/*.pl
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/ledger-smb/code/trunk@1000 4979c152-3d1c-0410-bac9-87ea11338e46
  • Loading branch information
einhverfr committed Mar 24, 2007
1 parent 778fffe commit 0ba15b2
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 34 deletions.
Empty file modified bin/aa.pl
100755 → 100644
Empty file.
Empty file modified bin/admin.pl
100755 → 100644
Empty file.
Empty file modified bin/am.pl
100755 → 100644
Empty file.
Empty file modified bin/ap.pl
100755 → 100644
Empty file.
Empty file modified bin/ar.pl
100755 → 100644
Empty file.
Empty file modified bin/arap.pl
100755 → 100644
Empty file.
Empty file modified bin/arapprn.pl
100755 → 100644
Empty file.
Empty file modified bin/bp.pl
100755 → 100644
Empty file.
Empty file modified bin/ca.pl
100755 → 100644
Empty file.
Empty file modified bin/cp.pl
100755 → 100644
Empty file.
Empty file modified bin/ct.pl
100755 → 100644
Empty file.
Empty file modified bin/gl.pl
100755 → 100644
Empty file.
Empty file modified bin/hr.pl
100755 → 100644
Empty file.
Empty file modified bin/ic.pl
100755 → 100644
Empty file.
Empty file modified bin/io.pl
100755 → 100644
Empty file.
Empty file modified bin/ir.pl
100755 → 100644
Empty file.
Empty file modified bin/is.pl
100755 → 100644
Empty file.
Empty file modified bin/jc.pl
100755 → 100644
Empty file.
39 changes: 5 additions & 34 deletions bin/login.pl
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -236,41 +236,12 @@ sub login {

$form->error(__FILE__.':'.__LINE__.': '.$locale->text('You did not enter a name!')) unless ($form->{login});

#this needs to be done via db
#if (! $form->{beenthere}) {
# open(FH, '<', "${LedgerSMB::Sysconfig::memberfile}") or $form->error(__FILE__.':'.__LINE__.": $memberfile : $!");
# @a = <FH>;
# close(FH);
#
# foreach $item (@a) {
#
# if ($item =~ /^\[(.*?)\]/) {
# $login = $1;
# $found = 1;
# }
#
# if ($item =~ /^company=/) {
# if ($login =~ /$form->{login}\@/ && $found) {
# ($null, $name) = split /=/, $item, 2;
# $login{$login} = $name;
# }
# $found = 0;
# }
# }
#
# if (keys %login > 1) {
# &selectdataset(\%login);
# exit;
# }
#}


if (!${LedgerSMB::Sysconfig::GLOBALDBH}){
$locale->text("No GlobalDBH Configured or Could not Connect");
}
$user = LedgerSMB::User->new($form->{login});

# if we get an error back, bale out
if (($errno = $user->login(\%$form)) <= -1) {

$errno *= -1;
Expand All @@ -280,9 +251,11 @@ sub login {

if ($errno == 4) {
# upgrade dataset and log in again

#locking needs to be done via db function
#open FH, '>', "${LedgerSMB::Sysconfig::userspath}/nologin" or $form->error($!);
if (!$LedgerSMB::Sysconfig::db_autoupdate){
$form->error(
$locale->text("Dabase Version too Old")
);
}

for (qw(dbname dbhost dbport dbdriver dbuser dbpasswd)) { $form->{$_} = $user->{$_} }

Expand All @@ -295,8 +268,6 @@ sub login {
print qq|<body>|;
print $locale->text('Upgrading to Version [_1] ...', $form->{version});

# required for Oracle
$form->{dbdefault} = $sid;

$user->dbupdate(\%$form);

Expand Down
Empty file modified bin/menu.pl
100755 → 100644
Empty file.
Empty file modified bin/oe.pl
100755 → 100644
Empty file.
Empty file modified bin/pe.pl
100755 → 100644
Empty file.
Empty file modified bin/pos.pl
100755 → 100644
Empty file.
Empty file modified bin/ps.pl
100755 → 100644
Empty file.
Empty file modified bin/pw.pl
100755 → 100644
Empty file.
Empty file modified bin/rc.pl
100755 → 100644
Empty file.
Empty file modified bin/rp.pl
100755 → 100644
Empty file.

0 comments on commit 0ba15b2

Please sign in to comment.