wtf fux0r
This commit is contained in:
parent
d324af6984
commit
85e41c8c79
@ -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";
|
||||
|
||||
@ -162,7 +162,7 @@ sub add_kwote {
|
||||
$sth->execute() or return undef;
|
||||
|
||||
# return the id
|
||||
return $dbh->{insertid};
|
||||
return $sth->{insertid};
|
||||
}
|
||||
|
||||
##
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user