From 85e41c8c793ea4eb43192b652a5c7480f5e2fb7e Mon Sep 17 00:00:00 2001 From: briandilley Date: Sat, 16 Oct 2004 01:07:09 +0000 Subject: [PATCH] wtf fux0r --- kwotes-lib.pl | 8 ++++---- kwotes.conf.pl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kwotes-lib.pl b/kwotes-lib.pl index b7f1c6f..b9904cb 100755 --- a/kwotes-lib.pl +++ b/kwotes-lib.pl @@ -50,7 +50,7 @@ sub cleanup { "INSERT INTO kwote_backup SELECT * FROM kwote WHERE ". "(now()-submit_dt)>? AND rating<=?" ); - $sth->bind_param(1, $NEGATIVE_KWOTE_TTL); + $sth->bind_param(1, $KWOTE_TTL); $sth->bind_param(2, $KWOTE_DEATH_RATING); $sth->execute() or die "Couldn't backup kwotes"; @@ -58,7 +58,7 @@ sub cleanup { $sth = $dbh->prepare( "DELETE FROM kwote WHERE (now()-submit_dt)>? AND rating<=?" ); - $sth->bind_param(1, $NEGATIVE_KWOTE_TTL); + $sth->bind_param(1, $KWOTE_TTL); $sth->bind_param(2, $KWOTE_DEATH_RATING); $sth->execute() or die "Couldn't delete kwotes"; @@ -126,7 +126,7 @@ sub vote { # adds a kwote to the database sub add_kwote { my ($dbh, $kwote_text, $ip_address) = @_; - my ($addr, $kid, $amt) = @_; + my ($addr, $kid, $amt) = @_; # make sure the kwote is ok return undef if (!defined($kwote_text) || $kwote_text eq ""); @@ -162,7 +162,7 @@ sub add_kwote { $sth->execute() or return undef; # return the id - return $dbh->{insertid}; + return $sth->{insertid}; } ## diff --git a/kwotes.conf.pl b/kwotes.conf.pl index 9bf6f6f..f49c14c 100755 --- a/kwotes.conf.pl +++ b/kwotes.conf.pl @@ -14,7 +14,7 @@ $DB_HOST = "mysql"; $DB_USER = "kwotes"; # database user -$DB_PASS = "kwotes"; +$DB_PASS = "kw0t3s"; # database password $SECS_BETWEEN_KWOTES = 60*60;