2010-09-13 08:25:27 +00:00
|
|
|
module Msf
|
|
|
|
class DBManager
|
|
|
|
|
|
|
|
class Campaign < ActiveRecord::Base
|
|
|
|
has_one :email_template
|
|
|
|
has_one :web_template
|
|
|
|
has_many :email_addresses
|
2010-10-08 17:20:57 +00:00
|
|
|
has_many :clients
|
2010-09-13 08:25:27 +00:00
|
|
|
|
|
|
|
extend SerializedPrefs
|
|
|
|
|
|
|
|
serialize :prefs
|
|
|
|
|
|
|
|
# Email settings
|
|
|
|
serialized_prefs_attr_accessor :smtp_server, :smtp_port, :smtp_ssl
|
|
|
|
serialized_prefs_attr_accessor :smtp_user, :smtp_pass
|
|
|
|
serialized_prefs_attr_accessor :mailfrom
|
|
|
|
|
|
|
|
# Web settings
|
|
|
|
serialized_prefs_attr_accessor :web_uripath, :web_srvport, :web_srvhost
|
|
|
|
serialized_prefs_attr_accessor :web_ssl
|
|
|
|
|
2010-10-01 13:36:32 +00:00
|
|
|
serialized_prefs_attr_accessor :do_web
|
|
|
|
serialized_prefs_attr_accessor :do_email
|
|
|
|
|
2010-09-13 08:25:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|