Commit 86d5667a by sn

kleinigkeiten

1 parent 697639dd
......@@ -327,9 +327,13 @@ class D {
$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 .=
"</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;
// echo($var_string);
......@@ -519,14 +523,21 @@ class D {
public static function showStats(array $__mc_Report, $__BASEPATH_EX, $__mc_D_LOGFILE) {
$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>';
$var_ErrorWarnString .= ' '.$a_start.'D('.count(self::$echo_lines).')'.$a_end.' ';
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'])) {
$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>';
} else {
$a_start = $a_end = '';
......@@ -538,7 +549,7 @@ class D {
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'])) {
$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>';
} else {
$a_start = $a_end = '';
......@@ -550,7 +561,7 @@ class D {
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'])) {
$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>';
} else {
$a_start = $a_end = '';
......@@ -563,7 +574,7 @@ class D {
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'])) {
$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>';
} else {
$a_start = $a_end = '';
......
......@@ -72,7 +72,13 @@ class mcEvent extends mcReport {
// $var_message .= mcCONST::LINEBREAK;
$var_message .= self::getCodeFromRow($param_errfile, $param_errline, $param_offset);
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;
}
......
......@@ -2,14 +2,15 @@
// $__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']);
......@@ -26,11 +27,15 @@ if(isset($_TREE) && $_TREE) {
$string = 'no';
}
if(!isset($__mc_LOGDIR)) {
$__mc_LOGDIR = '';
}
if(!isset($__mc_D_LOGFILE)) {
/**
* @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)) {
/**
......@@ -58,7 +63,7 @@ if(!isset($__mc_INPUT_LOGFILE)) {
/**
* @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)) {
/**
......@@ -74,7 +79,7 @@ if(!isset($__mc_PDO_LOGFILE)) {
/**
* @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)) {
/**
......@@ -120,12 +125,12 @@ if(!isset($__mc_Report)) {
$__mc_Report = array(
'mcNoticeEvent' => 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(
'toScreen' => array(),
'toFile' => array(
'file' => 'log/ErrorEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'file' => $__mc_LOGDIR.'mcClasses_ErrorEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'writemode' => 'a',
'reset' => false,
),
......@@ -137,7 +142,7 @@ if(!isset($__mc_Report)) {
'mcXSLErrorEvent' => array(
'toScreen' => array(),
'toFile' => array(
'file' => 'log/XSLErrorEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'file' => $__mc_LOGDIR.'mcClasses_XSLErrorEvent.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'writemode' => 'a',
'reset' => false,
),
......@@ -149,7 +154,7 @@ if(!isset($__mc_Report)) {
'mcException' => array(
'toScreen' => array(),
'toFile' => array(
'file' => 'log/Exception.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'file' => $__mc_LOGDIR.'mcClasses_Exception.'.$__THIS_SCRIPT_INFO['filename'].'.log',
'writemode' => 'a',
'reset' => false,
),
......@@ -161,7 +166,7 @@ if(!isset($__mc_Report)) {
'Error' => array(
'toScreen' => array('text' => 'ERROR Error ERROR Error ERROR'),
'toFile' => array(
'file' => 'log/Error.'.$__THIS_SCRIPT_INFO['filename'].'.config.log',
'file' => $__mc_LOGDIR.'mcClasses_Error.'.$__THIS_SCRIPT_INFO['filename'].'.config.log',
'writemode' => 'a',
'reset' => false,
),
......
......@@ -11,13 +11,13 @@
//require_once("basepath.inc.php");
if(!class_exists('FPDF')) {
//if(!class_exists('FPDF')) {
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 . 'class_mcMail.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcConfig.inc.php';
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!