1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
/*###################################################################################
#
# Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
# Embperl - Copyright (c) 2008-2014 Gerald Richter
#
# You may distribute under the terms of either the GNU General Public
# License or the Artistic License, as specified in the Perl README file.
# For use with Apache httpd and mod_perl, see also Apache copyright.
#
# THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id: epdefault.c 1578075 2014-03-16 14:01:14Z richter $
#
###################################################################################*/
/*---------------------------------------------------------------------------
* embperl_DefaultAppConfig
*/
/*!
*
* \_en
* initialze Config defaults
* \endif
*
* \_de
* Initialisiert Config Defaults
* \endif
*
* ------------------------------------------------------------------------ */
static void embperl_DefaultAppConfig (/*in*/ tAppConfig *pCfg)
{
pCfg -> sAppName = "Embperl" ;
pCfg -> sCookieName = "EMBPERL_UID" ;
pCfg -> sSessionHandlerClass = "Apache::SessionX" ;
#ifdef WIN32
pCfg -> sLog = "\\embperl.log" ;
#else
pCfg -> sLog = "/tmp/embperl.log" ;
#endif
pCfg -> bDebug = dbgNone ;
pCfg -> nMailErrorsResetTime = 60 ;
pCfg -> nMailErrorsResendTime = 60 * 15 ;
}
/*---------------------------------------------------------------------------
* embperl_DefaultReqConfig
*/
/*!
*
* \_en
* initialze ReqConfig defaults
* \endif
*
* \_de
* Initialisiert ReqConfig Defaults
* \endif
*
* ------------------------------------------------------------------------ */
static void embperl_DefaultReqConfig (/*in*/ tReqConfig *pCfg)
{
pCfg -> cMultFieldSep = '\t' ;
pCfg -> nSessionMode = smodeUDatCookie ;
pCfg -> nOutputEscCharset = ocharsetLatin1 ;
}
/*---------------------------------------------------------------------------
* embperl_DefaultComponentConfig
*/
/*!
*
* \_en
* initialze Config defaults
* \endif
*
* \_de
* Initialisiert Config Defaults
* \endif
*
* ------------------------------------------------------------------------ */
static void embperl_DefaultComponentConfig (/*in*/ tComponentConfig *pCfg)
{
pCfg -> bDebug = dbgNone ;
/* pCfg -> bOptions = optRawInput | optAllFormData ; */
pCfg -> nEscMode = escStd ;
pCfg -> bCacheKeyOptions = ckoptDefault ;
pCfg -> sSyntax = "Embperl" ;
pCfg -> sInputCharset = "iso-8859-1" ;
#ifdef LIBXSLT
pCfg -> sXsltproc = "libxslt" ;
#else
#ifdef XALAN
pCfg -> sXsltproc = "xalan" ;
#endif
#endif
}
|