2004-10-14 22:20:03 +00:00
|
|
|
#!/usr/bin/perl
|
2006-10-23 22:14:15 +00:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
package Conf;
|
|
|
|
|
2004-10-28 06:29:35 +00:00
|
|
|
############################
|
|
|
|
## LOOK N FEEL ##
|
|
|
|
############################
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::SITE_NAME = "Kwotes";
|
2004-10-28 06:29:35 +00:00
|
|
|
# the name of the site
|
2004-10-14 22:20:03 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
@Conf::TAG_LINES = (
|
2004-10-28 06:29:35 +00:00
|
|
|
"For happy goodness!",
|
|
|
|
"The better kwote database.",
|
|
|
|
"It blows goats!"
|
|
|
|
);
|
|
|
|
# tag lines to be randomly displayed
|
|
|
|
# in the header
|
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::DEFAULT_TEMPLATE = "default";
|
2004-11-02 01:38:42 +00:00
|
|
|
# name of the default template
|
|
|
|
|
2004-10-28 06:29:35 +00:00
|
|
|
############################
|
|
|
|
## DATABASE CONFIGURATION ##
|
|
|
|
############################
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::DB_TYPE = "mysql";
|
2004-10-15 19:35:43 +00:00
|
|
|
# dbi database type (only MySQL is
|
|
|
|
# supported currently, due to the
|
2004-10-27 01:12:22 +00:00
|
|
|
# fact that "LIMIT X,X", and "RAND()"
|
|
|
|
# is used
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::DB_NAME = "kwotes";
|
2004-10-15 19:35:43 +00:00
|
|
|
# database name
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::DB_HOST = "localhost";
|
2004-10-15 19:35:43 +00:00
|
|
|
# database host
|
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::DB_USER = "root";
|
2004-10-15 19:35:43 +00:00
|
|
|
# database user
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::DB_PASS = "bejane";
|
2004-10-15 19:35:43 +00:00
|
|
|
# database password
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2004-10-28 06:29:35 +00:00
|
|
|
############################
|
|
|
|
## GENERAL STUFF ##
|
|
|
|
############################
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::CAPTCHA_SALT = "Kw0t3zCapTchASal7";
|
|
|
|
# The "Salt" to add to the captcha
|
|
|
|
# md5s that are sent to the user,
|
|
|
|
# It's a good idea to change this
|
|
|
|
|
|
|
|
$Conf::SECS_BETWEEN_KWOTES = 60*60;
|
2004-10-15 19:35:43 +00:00
|
|
|
# seconds a user must wait after
|
|
|
|
# submitting MAX_KWOTES_PER_IP
|
|
|
|
# kwotes to the system before they
|
|
|
|
# are allowed to submit another
|
|
|
|
# kwote
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::KWOTE_DEATH_RATING = -1;
|
2004-10-15 19:35:43 +00:00
|
|
|
# lowest rating a quote can be
|
|
|
|
# before it's deleted. A kwote is
|
|
|
|
# only deleted if it's been this
|
|
|
|
# number (or lower) for longer than
|
|
|
|
# the KWOTE_TTL
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::MAX_KWOTES_PER_IP = 5;
|
|
|
|
# maximum kwotes allowed per ip
|
|
|
|
# in SECS_BETWEEN_KWOTES
|
|
|
|
|
|
|
|
$Conf::KWOTE_TTL = (60*60)*24;
|
2004-10-15 19:35:43 +00:00
|
|
|
# seconds before a "dead"
|
|
|
|
# quote is moved to the kwote
|
|
|
|
# backup table and deleted
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::MAX_VOTES_PER_IP = 4;
|
2004-10-15 19:35:43 +00:00
|
|
|
# maximum votes per ip address per
|
|
|
|
# VOTE_TTL seconds.
|
2004-10-15 20:46:47 +00:00
|
|
|
|
2006-10-23 22:14:15 +00:00
|
|
|
$Conf::SECS_BETWEEN_VOTES = 60*60;
|
|
|
|
# seconds a user must wait after
|
|
|
|
# submiting MAX_VOTES_PER_IP
|
|
|
|
# votes to a single kwote before
|
|
|
|
# they are allowed to submit
|
|
|
|
# another vote for it
|
2004-10-14 22:20:03 +00:00
|
|
|
1;
|