summaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@wirdorange.org>2011-01-15 20:12:15 +0000
committerOthmar Gsenger <otti@wirdorange.org>2011-01-15 20:12:15 +0000
commit14722a2e4de3cbc1e2c99b2a736c7facd2c37169 (patch)
tree89358010d8ea993ed8876e06b89cd251d0763acc /local
parentadded db structure (diff)
added config, fixed nobr issiue on lenny
Diffstat (limited to 'local')
-rw-r--r--local/db.pm3
-rw-r--r--local/menu.pm3
2 files changed, 4 insertions, 2 deletions
diff --git a/local/db.pm b/local/db.pm
index 94c5941..9ae4793 100644
--- a/local/db.pm
+++ b/local/db.pm
@@ -1,6 +1,7 @@
package local::db::dbi;
use base 'Class::DBI';
-local::db::dbi->connection('dbi:SQLite:/srv/nzbget/datenbank.sqlite', '', '');
+use config;
+local::db::dbi->connection(@{$config::config{db}});
package local::db::download;
use base 'local::db::dbi';
diff --git a/local/menu.pm b/local/menu.pm
index 6c63c89..62d5947 100644
--- a/local/menu.pm
+++ b/local/menu.pm
@@ -4,6 +4,7 @@ use CGI qw(:standard);
use strict;
use base "Exporter";
use local::user;
+use config;
my %menus =
(
@@ -31,7 +32,7 @@ sub start_html
my $active = $self->{REQUEST_URI};
my $html= CGI::start_html(-style=>{'src'=>'/style.css'},-title=>$title);
my $user = new local::user($ENV{REMOTE_USER});
- $html.= table({class=>'nohigh'},Tr({class=>'nohigh'},td({style=>'font-weight: bold'},[qw/ share.ffgraz.net / ]),td({class=>'login',align=>'right'},[nobr(b('Angemeldet&nbsp;als:&nbsp;').$user->get_name)])));
+ $html.= table({class=>'nohigh'},Tr({class=>'nohigh'},td({style=>'font-weight: bold'},[$config::config{page_name} ]),td({class=>'login',align=>'right'},['<nobr>'.b('Angemeldet&nbsp;als:&nbsp;').$user->get_name.'</nobr>'])));
$html.= CGI::start_div({class=>'bodydiv'});
my @elements;
foreach my $url (sort {$menus{$a}->[0] <=> $menus{$b}->[0] } keys %menus)