summaryrefslogtreecommitdiff
path: root/lib/VNDB.pm
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-04-24 17:48:59 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-04-24 17:48:59 +0000
commitd2efb163c11a11e02abd7251fdfde3cb54c710ef (patch)
tree848de5db61c434d38adc8871f4999ea344b196fe /lib/VNDB.pm
parent491d871612f7e4d351d533d30fe942332132ea41 (diff)
See the diff for lib/ChangeLog...
git-svn-id: svn://vndb.org/vndb@4 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib/VNDB.pm')
-rw-r--r--lib/VNDB.pm13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/VNDB.pm b/lib/VNDB.pm
index 9779d571..6cd0f6ff 100644
--- a/lib/VNDB.pm
+++ b/lib/VNDB.pm
@@ -3,6 +3,8 @@ package VNDB;
use strict;
use warnings;
+require 'global.pl';
+
our($VERSION, $DEBUG, %VNDBopts, @WARN);
$DEBUG = 1;
@@ -12,11 +14,6 @@ $VERSION = '1.14';
root_url => $DEBUG ? 'http://beta.vndb.org' : 'http://vndb.org',
static_url => $DEBUG ? 'http://static.beta.vndb.org' : 'http://static.vndb.org',
debug => $DEBUG,
- sqlopts => {
- user => 'vndb',
- passwd => 'passwd',
- database => 'vndb',
- },
tplopts => {
filename => 'main',
searchdir => '/www/vndb/data/tpl',
@@ -37,13 +34,9 @@ $VERSION = '1.14';
],
imgpath => '/www/vndb/static/cv',
mappath => '/www/vndb/data/rg',
- grapher => '/www/vndb/util/relgraph.pl',
);
$VNDBopts{ranks}[0][1] = { (map{$_,1} map { keys %{$VNDBopts{ranks}[$_]} } 1..5) };
-
-require 'global.pl';
-
require Time::HiRes if $DEBUG;
require Data::Dumper if $DEBUG;
use VNDB::Util::Template;
@@ -168,7 +161,7 @@ sub new {
my $me = bless {
%args,
- _DB => VNDB::Util::DB->new(%{$args{sqlopts}}),
+ _DB => VNDB::Util::DB->new(@VNDB::DBLOGIN),
_TPL => VNDB::Util::Template->new(%{$args{tplopts}}),
}, $type;