config.php
4.42 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?php
// $__PATH_to_mcClasses;
if(!isset($__BASEPATH_EX)) {
$__BASEPATH_EX = '';
}
if(!isset($_LOSP_DEV)) {
/**
* @var boolean -- activate the dev modus
*/
$_LOSP_DEV = true;
}
if($_LOSP_DEV) {
$__THIS_SCRIPT_INFO = pathinfo($_SERVER['SCRIPT_FILENAME']);
// echo $__THIS_SCRIPT_INFO['filename'];
if(!isset($__mc_D_LOGFILE_HTML)) {
$__mc_D_LOGFILE_HTML = $__mc_LOGDIR.'mcClasses.'.$__THIS_SCRIPT_INFO['filename'].'.'.$string.'.DEV_D.html';
}
if(!isset($__mc_D_LOGFILE_HTML_RESET)) {
/**
* @var bool
* remove every time the file and start a new file
* @author f@mensch.coop @since 20120301
*/
$__mc_D_LOGFILE_HTML_RESET = true;
}
}
/**
* @todo @since 20110325 die vars müssen eigentlich hier aus __mc raus ... da sie freeSN abhängig sind @author f@mensch.coop
*/
if(isset($_TREE) && $_TREE) {
$string = $_TREE;
} else if(isset($_PAGE_NAME) && $_PAGE_NAME) {
$string = $_PAGE_NAME;
} else {
$string = 'no';
}
if(!isset($__mc_LOGDIR)) {
$__mc_LOGDIR = '';
}
if(!isset($__mc_D_LOGFILE)) {
/**
* @var string -- file for the D Output
*/
$__mc_D_LOGFILE = $__mc_LOGDIR.'mcClasses.'.$__THIS_SCRIPT_INFO['filename'].'.'.$string.'.DEV_D.log';
if(!isset($__mc_D_LOGFILE_RESET)) {
/**
* @var bool
* remove every time the file and start a new file
* @author f@mensch.coop @since 20120301
*/
$__mc_D_LOGFILE_RESET = true;
}
if(!isset($__mc_D_LOGFILE_ONLY_USER)) {
$__mc_D_LOGFILE_ONLY_USER = true;
}
}
if(!isset($__mc_D_SCREENOUTPUT)) {
/**
* @var boolean -- activate the D Output on screen
*/
$__mc_D_SCREENOUTPUT = false;
}
if(!isset($__mc_INPUT_LOGFILE)) {
/**
* @var string -- file for the D Output
*/
$__mc_INPUT_LOGFILE = $__mc_LOGDIR.'mcClasses.'.$__THIS_SCRIPT_INFO['filename'].'.'.$string.'.DEV_INPUT.log';
if(!isset($__mc_INPUT_LOGFILE_RESET)) {
/**
* @var bool
* remove every time the file and start a new file
* @author f@mensch.coop @since 20120301
*/
$__mc_INPUT_LOGFILE_RESET = true;
}
}
if(!isset($__mc_PDO_LOGFILE)) {
/**
* @var string -- file for the D Output
*/
$__mc_PDO_LOGFILE = $__mc_LOGDIR.'mcClasses.'.$__THIS_SCRIPT_INFO['filename'].'.'.$string.'.DEV_PDO.sql';
if(!isset($__mc_PDO_LOGFILE_RESET)) {
/**
* @var bool
* remove every time the file and start a new file
* @author f@mensch.coop @since 20120301
*/
$__mc_PDO_LOGFILE_RESET = true;
}
}
if(!isset($__mcPerformance_backtrace)) {
/**
* @var boolean -- activate the D Output on screen
*/
$__mcPerformance_backtrace = true;
}
if(!isset($__mc_ERRORHANDLER)) {
/**
* @var boolean -- is true use the mcErrorHandler
*/
$__mc_ERRORHANDLER = true;
}
if(!isset($__mc_DEPRECATED)) {
/**
* @var int
* if you want @deprecated functions since a date (format: yyyymmdd)
*/
$__mc_DEPRECATED = 20110201;
}
if(!isset($__mc_Report)) {
/**
* @var array -- configuration of the report (mcNoticeEvent, mcErrorEvent, Error)
*/
$__mc_Report = array(
'mcNoticeEvent' => array(
'toScreen' => array(),
'toFile' => array('file' => $__mc_LOGDIR.'mcClasses_NoticeEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log')
),
'mcErrorEvent' => array(
'toScreen' => array(),
'toFile' => array(
'file' => $__mc_LOGDIR.'mcClasses_ErrorEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'writemode' => 'a',
'reset' => false,
),
// 'toMail' => array(
// 'mail' => 'mail@localhost.tld',
// 'subject' => 'Error:'
// )
),
'mcXSLErrorEvent' => array(
'toScreen' => array(),
'toFile' => array(
'file' => $__mc_LOGDIR.'mcClasses_XSLErrorEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'writemode' => 'a',
'reset' => false,
),
// 'toMail' => array(
// 'mail' => 'mail@localhost.tld',
// 'subject' => 'Error:'
// )
),
'mcException' => array(
'toScreen' => array(),
'toFile' => array(
'file' => $__mc_LOGDIR.'mcClasses_Exception.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'writemode' => 'a',
'reset' => false,
),
// 'toMail' => array(
// 'mail' => 'mail@localhost.tld',
// 'subject' => 'Error:'
// )
),
'Error' => array(
'toScreen' => array('text' => 'ERROR Error ERROR Error ERROR'),
'toFile' => array(
'file' => $__mc_LOGDIR.'mcClasses_Error.'.$__THIS_SCRIPT_INFO['filename'].'.config.log',
'writemode' => 'a',
'reset' => false,
),
// 'toMail' => array(
// 'mail' => 'mail@localhost.tld',
// 'subject' => 'Error:'
// )
),
);
}
?>