<?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() { $client_version = mysqli_get_client_info(); if (strpos($client_version, 'mysqlnd') !== false) { $client_version = preg_replace('/^\D+([\d.]+).*/', '$1', $client_version); return version_compare($client_version, '5.0.9', '>='); } else { return version_compare($client_version, '5.5.3', '>='); } } /** * Get the version of the database connector. * * @return string The database connector version. * * @since 12.1 */ function getVersion() { $con = mysqli_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]"); return mysqli_get_server_info($con); } $serverClaimsUtf8mb4Support = serverClaimsUtf8mb4Support(); if(!empty($serverClaimsUtf8mb4Support)){ echo '<claim_utf8>utf8mb4</claim_utf8>'; } ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
check_utf8.php | File | 1.07 KB | 0644 |
|
clone.php | File | 4.57 KB | 0644 |
|
configuration.php | File | 1.95 KB | 0644 |
|
edit.php | File | 5.82 KB | 0644 |
|
edit.xml | File | 629 B | 0644 |
|
extend.php | File | 8.8 KB | 0644 |
|
fileindex.php | File | 225 B | 0644 |
|
import.php | File | 8.66 KB | 0644 |
|
info.xml | File | 3.58 KB | 0644 |
|
install.js | File | 955 B | 0644 |
|
install.php | File | 20.23 KB | 0644 |
|
install.xml | File | 2.96 KB | 0644 |
|
md5 | File | 9.49 KB | 0644 |
|
notes.txt | File | 3.05 KB | 0644 |
|
restore.php | File | 2.23 KB | 0644 |
|
sign_on.php | File | 2.17 KB | 0644 |
|
update_pass.php | File | 497 B | 0644 |
|
upgrade.php | File | 30.83 KB | 0644 |
|
upgrade.xml | File | 730 B | 0644 |
|