2005-01-15 21:26:54 +01:00
|
|
|
Dependencies.mechanism = :require
|
|
|
|
ActionController::Base.consider_all_requests_local = false
|
2005-03-25 20:11:41 +01:00
|
|
|
ActionController::Base.perform_caching = false
|
|
|
|
|
2005-08-09 03:58:16 +02:00
|
|
|
|
|
|
|
spam_patterns_filename = RAILS_ROOT + '/config/spam_patterns.txt'
|
|
|
|
if File.exists? spam_patterns_filename
|
2005-08-09 04:28:37 +02:00
|
|
|
SPAM_PATTERNS = File.readlines(spam_patterns_filename).delete_if { |line| line.strip.empty? }.map {
|
|
|
|
|line| Regexp.new(line.strip) }
|
2005-08-09 03:58:16 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
blocked_ips_filename = RAILS_ROOT + '/config/blocked_ips.txt'
|
|
|
|
if File.exists? blocked_ips_filename
|
2005-08-09 04:28:37 +02:00
|
|
|
BLOCKED_IPS = File.readlines(blocked_ips_filename).delete_if { |line| line.strip.empty? }.map {
|
|
|
|
|line| line.strip }
|
2005-08-09 03:58:16 +02:00
|
|
|
end
|