package Massmailer::Config;

# -- Accounting & Hosting System
# (C) 2002 Dir.bg AD
# (C) 2002 Eugene Jerusalimov, mailto:Eugene@jerusalimov.ru


use strict;
use warnings;
#use lib $ENV{'CF_SYSTEM_ROOT'}.'/lib/massmailer/perl';

use Exporter;

use constant SYSTEM_LOG_DIR => $ENV{'CF_SYSTEM_STATICS'}.'/log/massmailer';
use constant SYSTEM_SUPPORT_DIR => $ENV{'CF_SYSTEM_ROOT'}.'/support/massmailer';

use constant SYSTEM_LOG_FNAME => SYSTEM_LOG_DIR.'/system.log';
use constant SYSTEM_DEBUG_LOG_FNAME => SYSTEM_LOG_DIR.'/system_debug.log';

use constant DEFAULT_DB_NAME => 'massmailer';

our $CFG = {};

our $CFG_DB  =  {};
$CFG_DB->{'MASSMAILER'}->{'M'}->{'dbhost'} = '10.0.20.5';
$CFG_DB->{'MASSMAILER'}->{'M'}->{'dbuser'} = 'massmailer';
$CFG_DB->{'MASSMAILER'}->{'M'}->{'dbpasswd'} = 'massmailer';
$CFG_DB->{'MASSMAILER'}->{'M'}->{'dbname'} = 'massmailer';
$CFG_DB->{'MASSMAILER'}->{'S'} = $CFG_DB->{'MASSMAILER'}->{'M'};

our $CFG_CGP = {
	#server	=> '10.0.20.10',
	server	=> '10.0.20.16',
	port	=> 106,
	login	=> 'postmaster',
	#passwd	=> 'YXxeEH6s',
	passwd	=> 'yXP3Ghym'
};


our @ISA = qw(Exporter);
our @EXPORT = qw(
	SYSTEM_LOG_DIR SYSTEM_SUPPORT_DIR SYSTEM_LOG_FNAME SYSTEM_DEBUG_LOG_FNAME
	DEFAULT_DB_NAME
	$CFG_DB	$CFG $CFG_CGP
);


1;
