epdefault.c

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