Browse Source

allow connecting to another database, update version

git-svn-id: file:///home/pjones/src/tmp/b2-svn/prepos/trunk@285 637e2b85-2e0a-0410-84ac-bd785500051d
master
pjones 13 years ago
parent
commit
164d93b8b3
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      bin/about.pl
  2. 2
    1
      lib/prepos.pm

+ 1
- 1
bin/about.pl View File

@@ -72,7 +72,7 @@ sub draw_callback {
$curses->attrset(0);

$curses->attrset(COLOR_PAIR(select_color('red', 'black')));
$curses->addstr(8, 1, "Copyright 2001-2002 Peter J Jones <pjones\@pmade.org>");
$curses->addstr(8, 1, "Copyright 2001-2006 Peter J Jones <pjones\@pmade.org>");
$curses->addstr(9, 1, "All Rights Reserved");
$curses->attrset(0);


+ 2
- 1
lib/prepos.pm View File

@@ -6,7 +6,8 @@ use DBI;
use vars qw($VERSION);
$VERSION = "1.0";

my $dsn = "dbi:mysql:prepos";
$ENV{'PREPOS_DB'} ||= 'prepos'
my $dsn = "dbi:mysql:$ENV{PREPOS_DB}";
my $username = "root";
my $password = undef;
my %attrs = (

Loading…
Cancel
Save