2002-11-18 21:39:47 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
2007-12-24 14:57:53 +01:00
|
|
|
%%%
|
2008-01-15 18:02:57 +01:00
|
|
|
%%% ejabberd, Copyright (C) 2002-2008 Process-one
|
2007-12-24 14:57:53 +01:00
|
|
|
%%%
|
|
|
|
%%% This program is free software; you can redistribute it and/or
|
|
|
|
%%% modify it under the terms of the GNU General Public License as
|
|
|
|
%%% published by the Free Software Foundation; either version 2 of the
|
|
|
|
%%% License, or (at your option) any later version.
|
|
|
|
%%%
|
|
|
|
%%% This program is distributed in the hope that it will be useful,
|
|
|
|
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
%%% General Public License for more details.
|
|
|
|
%%%
|
|
|
|
%%% You should have received a copy of the GNU General Public License
|
|
|
|
%%% along with this program; if not, write to the Free Software
|
|
|
|
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
|
%%% 02111-1307 USA
|
|
|
|
%%%
|
2002-11-18 21:39:47 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
2007-12-24 14:57:53 +01:00
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
%-define(ejabberd_debug, true).
|
|
|
|
%-define(DBGFSM, true).
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2008-02-04 17:44:42 +01:00
|
|
|
-define(VERSION, "2.1.0-alpha").
|
2006-12-04 17:07:44 +01:00
|
|
|
|
|
|
|
%% ---------------------------------
|
|
|
|
%% Logging mechanism
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2006-12-04 17:07:44 +01:00
|
|
|
-define(DEBUG(Format, Args),
|
|
|
|
ejabberd_logger:debug_msg(?MODULE,?LINE,Format, Args)).
|
2003-05-09 21:32:59 +02:00
|
|
|
|
|
|
|
-define(INFO_MSG(Format, Args),
|
2006-12-04 17:07:44 +01:00
|
|
|
ejabberd_logger:info_msg(?MODULE,?LINE,Format, Args)).
|
|
|
|
|
|
|
|
-define(WARNING_MSG(Format, Args),
|
|
|
|
ejabberd_logger:warning_msg(?MODULE,?LINE,Format, Args)).
|
|
|
|
|
|
|
|
-define(ERROR_MSG(Format, Args),
|
|
|
|
ejabberd_logger:error_msg(?MODULE,?LINE,Format, Args)).
|
2003-01-15 20:54:44 +01:00
|
|
|
|
2006-12-04 17:07:44 +01:00
|
|
|
-define(CRITICAL_MSG(Format, Args),
|
|
|
|
ejabberd_logger:critical_msg(?MODULE,?LINE,Format, Args)).
|
2002-12-07 21:27:26 +01:00
|
|
|
|
2005-04-17 20:08:34 +02:00
|
|
|
-define(MYHOSTS, ejabberd_config:get_global_option(hosts)).
|
|
|
|
-define(MYNAME, hd(ejabberd_config:get_global_option(hosts))).
|
2003-01-28 20:45:13 +01:00
|
|
|
-define(S2STIMEOUT, 600000).
|
2004-07-10 00:34:26 +02:00
|
|
|
-define(MYLANG, ejabberd_config:get_global_option(language)).
|
2002-12-07 21:27:26 +01:00
|
|
|
|
2003-01-06 20:57:05 +01:00
|
|
|
-define(MSGS_DIR, "msgs").
|
2003-01-07 20:10:35 +01:00
|
|
|
-define(CONFIG_PATH, "ejabberd.cfg").
|
2003-05-09 21:32:59 +02:00
|
|
|
-define(LOG_PATH, "ejabberd.log").
|
2003-01-06 20:57:05 +01:00
|
|
|
|
2003-08-18 21:17:28 +02:00
|
|
|
-define(PRIVACY_SUPPORT, true).
|
|
|
|
|
2007-11-28 00:35:26 +01:00
|
|
|
-define(EJABBERD_URI, "http://www.process-one.net/en/ejabberd/").
|