IP : 3.14.133.17Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
var/
softaculous/
kirby/
../
layerbb/
../
zikula/
../
typo/
../
moodle41/
check_utf8.php/
/
<?php /** * Does the database server claim to have support for UTF-8 Multibyte (utf8mb4) collation? * * libmysql supports utf8mb4 since 5.5.3 (same version as the MySQL server). mysqlnd supports utf8mb4 since 5.0.9. * * @return boolean * * @since CMS 3.5.0 */ function serverClaimsUtf8mb4Support() {
/** * Get the version of the database connector. * * @return string The database connector version. * * @since 12.1 */ function getVersion(){ global $con;
function get_row_format($table = null) { global $con; $rowformat = null; if (is_antelope_file_format_no_more_supported()) { $rowformat = 'Barracuda'; return $rowformat; }
$sql = "SHOW VARIABLES LIKE 'innodb_file_format'"; $result = mysqli_query($con, $sql); if ($rec = $result->fetch_assoc()) { // MySQL 8 BC: information_schema.* returns the fields in upper case. $rec = array_change_key_case($rec, CASE_LOWER); if (isset($table)) { $rowformat = $rec['row_format']; } else { $rowformat = $rec['value']; } }
return $rowformat; }
function is_antelope_file_format_no_more_supported() { // Breaking change: Antelope file format support has been removed from both MySQL and MariaDB. // The following InnoDB file format configuration parameters were deprecated and then removed: // - innodb_file_format // - innodb_file_format_check // - innodb_file_format_max // - innodb_large_prefix // 1. MySQL: deprecated in 5.7.7 and removed 8.0.0+. $ismysqlge8d0d0 = (get_dbtype() == 'mysqli') && version_compare(getVersion(), '8.0.0', '>='); // 2. MariaDB: deprecated in 10.2.0 and removed 10.3.1+. $ismariadbge10d3d1 = (get_dbtype() == 'mariadb') && version_compare(getVersion(), '10.3.1', '>=');
return $ismysqlge8d0d0 || $ismariadbge10d3d1; }
function is_compressed_row_format_supported($cached = true) {
if (version_compare($info, '5.5.0') < 0) { // MySQL 5.1 is not supported here because we cannot read the file format. $compressedrowformatsupported = false;
} else if ($engine !== 'innodb' and $engine !== 'xtradb') { // Other engines are not supported, most probably not compatible. $compressedrowformatsupported = false;
} else if (!is_file_per_table_enabled()) { $compressedrowformatsupported = false;
} else if (get_row_format() !== 'Barracuda') { $compressedrowformatsupported = false;
} else { // All the tests passed, we can safely use ROW_FORMAT=Compressed in sql statements. $compressedrowformatsupported = true; }
return $compressedrowformatsupported; }
function is_file_per_table_enabled() { global $con; $sql = "SHOW VARIABLES LIKE 'innodb_file_per_table'"; $result = mysqli_query($con, $sql); if ($rec = $result->fetch_assoc()) { // MySQL 8 BC: information_schema.* returns the fields in upper case. $rec = array_change_key_case($rec, CASE_LOWER); if ($rec['value'] == 'ON') { return true; } }
return false; }
function get_row_format_sql($engine = null, $collation = null) {