Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 03:02:13
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/DB/Adapter/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/DB/Adapter/SqlVersionProvider.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Framework\DB\Adapter; use Magento\Framework\App\ResourceConnection; /** * Class GetDbVersion provides sql engine version requesting version variable * * Rather then depending on this class, please implement this logic in your extension */ class SqlVersionProvider { /**#@+ * Database version specific templates */ public const MYSQL_8_0_VERSION = '8.0.'; public const MYSQL_5_7_VERSION = '5.7.'; public const MARIA_DB_10_VERSION = '10.'; /**#@-*/ /** * Database version variable name */ private const VERSION_VAR_NAME = 'version'; /** * @var ResourceConnection */ private $resourceConnection; /** * @var string */ private $version; /** * @var array */ private $supportedVersionPatterns; /** * @param ResourceConnection $resourceConnection * @param array $supportedVersionPatterns */ public function __construct( ResourceConnection $resourceConnection, array $supportedVersionPatterns = [] ) { $this->resourceConnection = $resourceConnection; $this->supportedVersionPatterns = $supportedVersionPatterns; } /** * Provides SQL engine version (MariaDB, MySQL-8, MySQL-5.7) * * @param string $resource * * @return string * @throws ConnectionException */ public function getSqlVersion(string $resource = ResourceConnection::DEFAULT_CONNECTION): string { if (!$this->version) { $this->version = $this->getVersionString($resource); } return $this->version; } /** * Provides Sql Engine Version string * * @param string $resource * * @return string * @throws ConnectionException */ private function getVersionString(string $resource): string { $pattern = sprintf('/(%s)/', implode('|', $this->supportedVersionPatterns)); $sqlVersionOutput = $this->fetchSqlVersion($resource); preg_match($pattern, $sqlVersionOutput, $match); if (empty($match)) { throw new ConnectionException( sprintf( "Current version of RDBMS is not supported. Used Version: %s. Supported versions: %s", $sqlVersionOutput, implode(', ', array_keys($this->supportedVersionPatterns)) ) ); } return reset($match); } /** * Fetch version from sql engine * * @param string $resource * * @return string */ private function fetchSqlVersion(string $resource): string { $versionOutput = $this->resourceConnection->getConnection($resource) ->fetchPairs(sprintf('SHOW variables LIKE "%s"', self::VERSION_VAR_NAME)); return $versionOutput[self::VERSION_VAR_NAME]; } }