#!/usr/bin/perl
# opensrs client conf file for antispam services
                                                                                                                                                             
use vars qw(%ANTISPAM %DEFAULT_VALUES);

%ANTISPAM = (
                                                                                                                                                            
	# boolean: 1 is true, 0 is false
	debug => 0,
	process_immediate => 1,
	reseller_email => 'reseller@email.com',
	ed_portal_url => '',
	MAX_USERS => 5, # max number of accounts a user can add at a time.
	NUM_ITEMS_PER_PAGE => 20, # max num of domains displayed on a page.
	NUM_PAGE_LINKS => 10, # max num of page links displayed on a page.
	F_VERIFY_CC => 0, # verify credit card info.
	F_SHOW_CC_FIELDS => 0, # show credit card fields to get credit card info.
	PROTOCOL_VERSION => '1.4',
);

# Values that are fed as hardcoded input into the application.
%DEFAULT_VALUES = (

	dflt_domain_name => '',

	#either none or both must be present!
	#dflt_username => '',
	#dflt_password => '',

	# If you wish to restrict users to certain roles, comment out the undesirable ones here.
	dflt_user_roles => {
		'end_user' => 'End User',
		'domain_admin' => 'Domain Administrator',
		'quarantine_manager' => 'Quarantine Manager',
		'report_manager' => 'Report Manager',
	},

	# This role appears on the drop down menu as default.
	dflt_html_user_role => 'end_user',
	
	# This is a default role for all users. If it has a value, then html page for user roles is skipped.
	# If it has a value, then password is empty and also skipped.
	dflt_user_role => '',

	# If it is false, accounts are registered through quarantine file,
	# and end user is not asked for a password.
	dflt_allow_passwd_assgnmt => 0,

	dflt_server_1 => "", # string consisting of host server, port and preference number.

        dflt_server_2 => "", # Ex.: "tucows.com,1234,1".
                                                                                                                            
	dflt_contact_id => '', # if default contact id is specified, end user has to use it, and contact page is skipped.

	dflt_manage_one_domain => 0,# user can manage only one domain at a time.
);
# Verify credit card only if credit card fields are shown for informaion gathering
$ANTISPAM{F_VERIFY_CC} = $ANTISPAM{F_VERIFY_CC} && $ANTISPAM{F_SHOW_CC_FIELDS};
$DEFAULT_VALUES{dflt_allow_passwd_assgnmt} = $DEFAULT_VALUES{dflt_allow_passwd_assgnmt} && not $DEFAULT_VALUES{dflt_user_role};
1;
