diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-03 16:15:40 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-03 16:15:40 +0000 |
commit | 5228c0019ce9dc5f8e01d5d4ef1daa99669f82d6 (patch) | |
tree | 9fd807b0a90559f57ee698505f8accb83899c3e2 | |
parent | 3607a98952564aad7a4370da58d083365fbd7c76 (diff) |
Cleaning up scripts/menu.pl slightly.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1694 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | scripts/menu.pl | 9 | ||||
-rw-r--r-- | sql/Pg-database.sql | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/menu.pl b/scripts/menu.pl index 81628db6..f873398f 100644 --- a/scripts/menu.pl +++ b/scripts/menu.pl @@ -71,8 +71,10 @@ sub root_doc { $request->{title} = "LedgerSMB $request->{VERSION} -- ". "$request->{login} -- $request->{_user}->{dbname}"; - $request->call_procedure(procname => ); - if (!$request->{menubar}){ + if ($request->{menubar}){ + drilldown_menu($request); + return; + } else { $request->{main} = "splash.html" if $request->{main} eq 'company_logo'; $request->{main} = "am.pl?action=recurring_transactions" if $request->{main} eq 'recurring_transactions'; @@ -83,9 +85,6 @@ sub root_doc { template => 'frameset', format => 'HTML' ); - } else { - drilldown_menu($request); - return; } $template->render($request); } diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql index 76b22079..c4f4b630 100644 --- a/sql/Pg-database.sql +++ b/sql/Pg-database.sql @@ -149,7 +149,8 @@ token VARCHAR(32) CHECK(length(token) = 32), last_used TIMESTAMP default now(), ttl int default 3600 not null, users_id INTEGER NOT NULL references users(id), -transaction_id INTEGER NOT NULL +transaction_id INTEGER NOT NULL, +javascript_auth BOOL DEFAULT FALSE ); -- |