Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 86d5667a
authored
Nov 22, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kleinigkeiten
1 parent
697639dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
23 deletions
D/class_D.inc.php
ReportHandling/class_mcEvent.inc.php
config.php
include.php
D/class_D.inc.php
View file @
86d5667
...
@@ -327,10 +327,14 @@ class D {
...
@@ -327,10 +327,14 @@ class D {
$var_string
.=
$array
[
$i
][
"function"
]
.
"(...) "
;
$var_string
.=
$array
[
$i
][
"function"
]
.
"(...) "
;
// $var_string .=
// "</b> Funktion wird aufgerufen in der Zeile ".$array[$i]["line"]." " .
// "in der Datei <a href=\"".substr($array[$i]["file"],strpos($array[$i]["file"],"httpdocs")+8)."\">".basename($array[$i]["file"])."</a>" .
// "</strong></li>".$ul_end;
$var_string
.=
$var_string
.=
"</b> Funktion wird aufgerufen in der Zeile "
.
$array
[
$i
][
"line"
]
.
" "
.
"</b> Funktion wird aufgerufen in der Zeile "
.
$array
[
$i
][
"line"
]
.
" "
.
"in der Datei <
a href=
\"
"
.
substr
(
$array
[
$i
][
"file"
],
strpos
(
$array
[
$i
][
"file"
],
"httpdocs"
)
+
8
)
.
"
\"
>"
.
basename
(
$array
[
$i
][
"file"
])
.
"</a
>"
.
"in der Datei <
i title=
\"
"
.
substr
(
$array
[
$i
][
"file"
],
strpos
(
$array
[
$i
][
"file"
],
"httpdocs"
)
+
8
)
.
"
\"
>"
.
basename
(
$array
[
$i
][
"file"
])
.
"</i
>"
.
"</strong></li>"
.
$ul_end
;
"</strong></li>"
.
$ul_end
;
// echo($var_string);
// echo($var_string);
self
::
new_echo
(
$var_string
,
$param_print
,
$param_force
);
self
::
new_echo
(
$var_string
,
$param_print
,
$param_force
);
...
@@ -519,14 +523,21 @@ class D {
...
@@ -519,14 +523,21 @@ class D {
public
static
function
showStats
(
array
$__mc_Report
,
$__BASEPATH_EX
,
$__mc_D_LOGFILE
)
{
public
static
function
showStats
(
array
$__mc_Report
,
$__BASEPATH_EX
,
$__mc_D_LOGFILE
)
{
$var_ErrorWarnString
=
date
(
'd. m. Y G:i:s'
)
.
': '
;
$var_ErrorWarnString
=
date
(
'd. m. Y G:i:s'
)
.
': '
;
$a_start
=
'<a href="'
.
$__mc_D_LOGFILE
.
'" >'
;
if
(
array_key_exists
(
'REMOTE_HOST'
,
$_SERVER
))
{
$HOST
=
$_SERVER
[
'REMOTE_HOST'
];
}
else
{
$HOST
=
''
;
}
$a_start
=
'<a href="'
.
$HOST
.
'/'
.
$__mc_D_LOGFILE
.
'" >'
;
$a_end
=
'</a>'
;
$a_end
=
'</a>'
;
$var_ErrorWarnString
.=
' '
.
$a_start
.
'D('
.
count
(
self
::
$echo_lines
)
.
')'
.
$a_end
.
' '
;
$var_ErrorWarnString
.=
' '
.
$a_start
.
'D('
.
count
(
self
::
$echo_lines
)
.
')'
.
$a_end
.
' '
;
if
(
mcNoticeEvent
::
$count
)
{
if
(
mcNoticeEvent
::
$count
)
{
if
(
array_key_exists
(
'mcNoticeEvent'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'mcNoticeEvent'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'mcNoticeEvent'
])
&&
is_array
(
$__mc_Report
[
'mcNoticeEvent'
][
'toFile'
]))
{
if
(
array_key_exists
(
'mcNoticeEvent'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'mcNoticeEvent'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'mcNoticeEvent'
])
&&
is_array
(
$__mc_Report
[
'mcNoticeEvent'
][
'toFile'
]))
{
$a_start
=
'<a href="'
.
$
__BASEPATH_EX
.
$__mc_Report
[
'mcNoticeEvent'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:orange;\">'
;
$a_start
=
'<a href="'
.
$
HOST
.
'/'
.
$__mc_Report
[
'mcNoticeEvent'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:orange;\">'
;
$a_end
=
'</a>'
;
$a_end
=
'</a>'
;
}
else
{
}
else
{
$a_start
=
$a_end
=
''
;
$a_start
=
$a_end
=
''
;
...
@@ -538,7 +549,7 @@ class D {
...
@@ -538,7 +549,7 @@ class D {
if
(
Error
::
$Quantity
)
{
if
(
Error
::
$Quantity
)
{
if
(
array_key_exists
(
'Error'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'Error'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'Error'
])
&&
is_array
(
$__mc_Report
[
'Error'
][
'toFile'
]))
{
if
(
array_key_exists
(
'Error'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'Error'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'Error'
])
&&
is_array
(
$__mc_Report
[
'Error'
][
'toFile'
]))
{
$a_start
=
'<a href="'
.
$
__BASEPATH_EX
.
$__mc_Report
[
'Error'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:red;\">'
;
$a_start
=
'<a href="'
.
$
HOST
.
'/'
.
$__mc_Report
[
'Error'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:red;\">'
;
$a_end
=
'</a>'
;
$a_end
=
'</a>'
;
}
else
{
}
else
{
$a_start
=
$a_end
=
''
;
$a_start
=
$a_end
=
''
;
...
@@ -550,7 +561,7 @@ class D {
...
@@ -550,7 +561,7 @@ class D {
if
(
mcException
::
$count
)
{
if
(
mcException
::
$count
)
{
if
(
array_key_exists
(
'mcException'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'mcException'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'mcException'
])
&&
is_array
(
$__mc_Report
[
'mcException'
][
'toFile'
]))
{
if
(
array_key_exists
(
'mcException'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'mcException'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'mcException'
])
&&
is_array
(
$__mc_Report
[
'mcException'
][
'toFile'
]))
{
$a_start
=
'<a href="'
.
$
__BASEPATH_EX
.
$__mc_Report
[
'mcException'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:red;\">'
;
$a_start
=
'<a href="'
.
$
HOST
.
'/'
.
$__mc_Report
[
'mcException'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:red;\">'
;
$a_end
=
'</a>'
;
$a_end
=
'</a>'
;
}
else
{
}
else
{
$a_start
=
$a_end
=
''
;
$a_start
=
$a_end
=
''
;
...
@@ -563,7 +574,7 @@ class D {
...
@@ -563,7 +574,7 @@ class D {
if
(
mcErrorEvent
::
$count
)
{
if
(
mcErrorEvent
::
$count
)
{
if
(
array_key_exists
(
'mcErrorEvent'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'mcErrorEvent'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'mcErrorEvent'
])
&&
is_array
(
$__mc_Report
[
'mcErrorEvent'
][
'toFile'
]))
{
if
(
array_key_exists
(
'mcErrorEvent'
,
$__mc_Report
)
&&
is_array
(
$__mc_Report
[
'mcErrorEvent'
])
&&
array_key_exists
(
'toFile'
,
$__mc_Report
[
'mcErrorEvent'
])
&&
is_array
(
$__mc_Report
[
'mcErrorEvent'
][
'toFile'
]))
{
$a_start
=
'<a href="'
.
$
__BASEPATH_EX
.
$__mc_Report
[
'mcErrorEvent'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:red;\">'
;
$a_start
=
'<a href="'
.
$
HOST
.
'/'
.
$__mc_Report
[
'mcErrorEvent'
][
'toFile'
][
'file'
]
.
'" style=\"font-size:15;color:red;\">'
;
$a_end
=
'</a>'
;
$a_end
=
'</a>'
;
}
else
{
}
else
{
$a_start
=
$a_end
=
''
;
$a_start
=
$a_end
=
''
;
...
...
ReportHandling/class_mcEvent.inc.php
View file @
86d5667
...
@@ -72,7 +72,13 @@ class mcEvent extends mcReport {
...
@@ -72,7 +72,13 @@ class mcEvent extends mcReport {
// $var_message .= mcCONST::LINEBREAK;
// $var_message .= mcCONST::LINEBREAK;
$var_message
.=
self
::
getCodeFromRow
(
$param_errfile
,
$param_errline
,
$param_offset
);
$var_message
.=
self
::
getCodeFromRow
(
$param_errfile
,
$param_errline
,
$param_offset
);
$var_message
.=
mcCONST
::
LINEBREAK
.
$param_errcontext
.
mcCONST
::
LINEBREAK
;
if
(
is_array
(
$param_errcontext
))
{
// $var_message .= mcCONST::LINEBREAK.'<pre>'.print_r($param_errcontext).'</pre>'.mcCONST::LINEBREAK;
// weiß gerade nicht wann das hier auf tritt
$var_message
.=
mcCONST
::
LINEBREAK
.
'<b>@ARRAY</b>'
.
mcCONST
::
LINEBREAK
;
}
else
{
$var_message
.=
mcCONST
::
LINEBREAK
.
$param_errcontext
.
mcCONST
::
LINEBREAK
;
}
return
$var_message
;
return
$var_message
;
}
}
...
...
config.php
View file @
86d5667
...
@@ -2,14 +2,15 @@
...
@@ -2,14 +2,15 @@
// $__PATH_to_mcClasses;
// $__PATH_to_mcClasses;
if
(
!
isset
(
$__BASEPATH_EX
))
{
$__BASEPATH_EX
=
''
;
}
if
(
!
isset
(
$_LOSP_DEV
))
{
if
(
!
isset
(
$_LOSP_DEV
))
{
/**
/**
* @var boolean -- activate the dev modus
* @var boolean -- activate the dev modus
*/
*/
$_LOSP_DEV
=
true
;
$_LOSP_DEV
=
true
;
}
}
if
(
$_LOSP_DEV
)
{
if
(
$_LOSP_DEV
)
{
$__THIS_SCRIPT_INFO
=
pathinfo
(
$_SERVER
[
'SCRIPT_FILENAME'
]);
$__THIS_SCRIPT_INFO
=
pathinfo
(
$_SERVER
[
'SCRIPT_FILENAME'
]);
...
@@ -26,11 +27,15 @@ if(isset($_TREE) && $_TREE) {
...
@@ -26,11 +27,15 @@ if(isset($_TREE) && $_TREE) {
$string
=
'no'
;
$string
=
'no'
;
}
}
if
(
!
isset
(
$__mc_LOGDIR
))
{
$__mc_LOGDIR
=
''
;
}
if
(
!
isset
(
$__mc_D_LOGFILE
))
{
if
(
!
isset
(
$__mc_D_LOGFILE
))
{
/**
/**
* @var string -- file for the D Output
* @var string -- file for the D Output
*/
*/
$__mc_D_LOGFILE
=
$__
BASEPATH_EX
.
'log/mc
.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.'
.
$string
.
'.DEV_D.log'
;
$__mc_D_LOGFILE
=
$__
mc_LOGDIR
.
'mcClasses
.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.'
.
$string
.
'.DEV_D.log'
;
if
(
!
isset
(
$__mc_D_LOGFILE_RESET
))
{
if
(
!
isset
(
$__mc_D_LOGFILE_RESET
))
{
/**
/**
...
@@ -58,7 +63,7 @@ if(!isset($__mc_INPUT_LOGFILE)) {
...
@@ -58,7 +63,7 @@ if(!isset($__mc_INPUT_LOGFILE)) {
/**
/**
* @var string -- file for the D Output
* @var string -- file for the D Output
*/
*/
$__mc_INPUT_LOGFILE
=
$__
BASEPATH_EX
.
'log/mc
.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.'
.
$string
.
'.DEV_INPUT.log'
;
$__mc_INPUT_LOGFILE
=
$__
mc_LOGDIR
.
'mcClasses
.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.'
.
$string
.
'.DEV_INPUT.log'
;
if
(
!
isset
(
$__mc_INPUT_LOGFILE_RESET
))
{
if
(
!
isset
(
$__mc_INPUT_LOGFILE_RESET
))
{
/**
/**
...
@@ -74,7 +79,7 @@ if(!isset($__mc_PDO_LOGFILE)) {
...
@@ -74,7 +79,7 @@ if(!isset($__mc_PDO_LOGFILE)) {
/**
/**
* @var string -- file for the D Output
* @var string -- file for the D Output
*/
*/
$__mc_PDO_LOGFILE
=
$__
BASEPATH_EX
.
'log/mc
.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.'
.
$string
.
'.DEV_PDO.sql'
;
$__mc_PDO_LOGFILE
=
$__
mc_LOGDIR
.
'mcClasses
.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.'
.
$string
.
'.DEV_PDO.sql'
;
if
(
!
isset
(
$__mc_PDO_LOGFILE_RESET
))
{
if
(
!
isset
(
$__mc_PDO_LOGFILE_RESET
))
{
/**
/**
...
@@ -120,12 +125,12 @@ if(!isset($__mc_Report)) {
...
@@ -120,12 +125,12 @@ if(!isset($__mc_Report)) {
$__mc_Report
=
array
(
$__mc_Report
=
array
(
'mcNoticeEvent'
=>
array
(
'mcNoticeEvent'
=>
array
(
'toScreen'
=>
array
(),
'toScreen'
=>
array
(),
'toFile'
=>
array
(
'file'
=>
'log/
NoticeEvent.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
)
'toFile'
=>
array
(
'file'
=>
$__mc_LOGDIR
.
'mcClasses_
NoticeEvent.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
)
),
),
'mcErrorEvent'
=>
array
(
'mcErrorEvent'
=>
array
(
'toScreen'
=>
array
(),
'toScreen'
=>
array
(),
'toFile'
=>
array
(
'toFile'
=>
array
(
'file'
=>
'log/
ErrorEvent.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
,
'file'
=>
$__mc_LOGDIR
.
'mcClasses_
ErrorEvent.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
,
'writemode'
=>
'a'
,
'writemode'
=>
'a'
,
'reset'
=>
false
,
'reset'
=>
false
,
),
),
...
@@ -137,7 +142,7 @@ if(!isset($__mc_Report)) {
...
@@ -137,7 +142,7 @@ if(!isset($__mc_Report)) {
'mcXSLErrorEvent'
=>
array
(
'mcXSLErrorEvent'
=>
array
(
'toScreen'
=>
array
(),
'toScreen'
=>
array
(),
'toFile'
=>
array
(
'toFile'
=>
array
(
'file'
=>
'log/
XSLErrorEvent.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
,
'file'
=>
$__mc_LOGDIR
.
'mcClasses_
XSLErrorEvent.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
,
'writemode'
=>
'a'
,
'writemode'
=>
'a'
,
'reset'
=>
false
,
'reset'
=>
false
,
),
),
...
@@ -149,7 +154,7 @@ if(!isset($__mc_Report)) {
...
@@ -149,7 +154,7 @@ if(!isset($__mc_Report)) {
'mcException'
=>
array
(
'mcException'
=>
array
(
'toScreen'
=>
array
(),
'toScreen'
=>
array
(),
'toFile'
=>
array
(
'toFile'
=>
array
(
'file'
=>
'log/
Exception.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
,
'file'
=>
$__mc_LOGDIR
.
'mcClasses_
Exception.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.log'
,
'writemode'
=>
'a'
,
'writemode'
=>
'a'
,
'reset'
=>
false
,
'reset'
=>
false
,
),
),
...
@@ -161,7 +166,7 @@ if(!isset($__mc_Report)) {
...
@@ -161,7 +166,7 @@ if(!isset($__mc_Report)) {
'Error'
=>
array
(
'Error'
=>
array
(
'toScreen'
=>
array
(
'text'
=>
'ERROR Error ERROR Error ERROR'
),
'toScreen'
=>
array
(
'text'
=>
'ERROR Error ERROR Error ERROR'
),
'toFile'
=>
array
(
'toFile'
=>
array
(
'file'
=>
'log/
Error.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.config.log'
,
'file'
=>
$__mc_LOGDIR
.
'mcClasses_
Error.'
.
$__THIS_SCRIPT_INFO
[
'filename'
]
.
'.config.log'
,
'writemode'
=>
'a'
,
'writemode'
=>
'a'
,
'reset'
=>
false
,
'reset'
=>
false
,
),
),
...
...
include.php
View file @
86d5667
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
//require_once("basepath.inc.php");
//require_once("basepath.inc.php");
if
(
!
class_exists
(
'FPDF'
))
{
//
if(!class_exists('FPDF')) {
require_once
$__PATH_to_mcClasses
.
'lib/fpdf16/fpdf.php'
;
require_once
$__PATH_to_mcClasses
.
'lib/fpdf16/fpdf.php'
;
}
//
}
if
(
!
class_exists
(
'QRcode'
))
{
//
if(!class_exists('QRcode')) {
require_once
$__PATH_to_mcClasses
.
'lib/phpqrcode/qrlib.php'
;
require_once
$__PATH_to_mcClasses
.
'lib/phpqrcode/qrlib.php'
;
}
//
}
require_once
$__PATH_to_mcClasses
.
'class_mcMail.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcMail.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcConfig.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcConfig.inc.php'
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment