GRAYBYTE WORDPRESS FILE MANAGER1414

Server IP : 149.255.58.128 / Your IP : 216.73.216.19
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /var/softaculous/zen/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/softaculous/zen//check_utf8.php
<?php

function getCollationSetClause() {
		if (hasUtf8mb4Support('utf8mb4_520')) { // MySQL 5.6+ 
			return ' CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci';
		} else if (hasUtf8mb4Support('utf8mb4')) { // MySQL 5.5.3+
			return ' CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci';
		} else {
			return ' CHARACTER SET utf8 COLLATE utf8_unicode_ci';
		}
	}

function hasUtf8mb4Support($which = 'utf8mb4_520') {
		$db_version = getVersion();
		if ($db_version) { // if not set no db functions available
			switch ($which) {
				case 'utf8mb4':
					if (isMariaDB() && version_compare($db_version, '5.5.0', '<')) {
						return false;
					} else if (version_compare($db_version, '5.5.3', '<')) {
						return false;
					}
					$client_version = mysqli_get_client_info();
					/*
					 * libmysql has supported utf8mb4 since 5.5.3, same as the MySQL server.
					 * mysqlnd has supported utf8mb4 since 5.0.9.
					 */
					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', '>=');
					}
				case 'utf8mb4_520':
					return version_compare($db_version, '5.6', '>=');
				case 'general':
					return (hasUtf8mb4Support('utf8mb4') || hasUtf8mb4Support('utf8mb4_520'));
			}
		}
		return false;
	}
	
function getVersion() {
		$software = getVersionComplete();
		if ($software) {
			if (isMariaDB()) {
				preg_match("/\d+(\.\d+){2,}-MariaDB/", $software, $matches);
				if ($matches) {
					return str_replace('-MariaDB', '', $matches[0]);
				}
				return $software; // just in case…
			} else {
				return $software;
			}
		}
		return '0.0.0';
	}
	
function getVersionComplete() {
	global $connection;
	
	$connection = mysqli_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]");

	if ($connection) {
		$query = mysqli_fetch_array(mysqli_query($connection, "SELECT version()"));
		if ($query) {
			return $query['version()'];
		}
	}
	return null;
}
	
function isMariaDB() {
	$db_version = getVersionComplete();
	if ($db_version && stristr($db_version, 'mariadb')) { // version includes note if mariadb
		return true;
	}
	return false;
}
	$charset_value = getCollationSetClause();
	
	if(!empty($charset_value)){
		echo '<charset_value>'.$charset_value.'</charset_value>';
	}

?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2025 09:37:16
0 / root
0755
images
--
May 09 2025 09:37:14
0 / root
0755
php53
--
May 09 2025 09:37:14
0 / root
0755
php56
--
May 09 2025 09:37:14
0 / root
0755
php71
--
May 09 2025 09:37:14
0 / root
0755
php81
--
May 09 2025 09:37:14
0 / root
0755
php82
--
May 09 2025 09:37:14
0 / root
0755
upgrade
--
May 09 2025 09:37:14
0 / root
0755
.htaccess
0.615 KB
December 23 2021 06:54:36
0 / root
0644
NOTES.TXT
2.028 KB
December 14 2022 03:47:26
0 / root
0644
_.htaccess
0.19 KB
December 23 2021 06:54:36
0 / root
0644
_index.php
5.163 KB
December 26 2023 05:00:46
0 / root
0644
check_utf8.php
2.361 KB
March 13 2024 01:46:46
0 / root
0644
clone.php
6.738 KB
May 07 2025 07:30:12
0 / root
0644
edit.php
4.787 KB
May 07 2025 07:30:12
0 / root
0644
edit.xml
0.423 KB
December 23 2021 06:54:36
0 / root
0644
favicon.ico
1.373 KB
December 23 2021 06:54:36
0 / root
0644
fileindex.php
0.199 KB
December 23 2021 06:54:36
0 / root
0644
import.php
3.414 KB
May 07 2025 07:30:12
0 / root
0644
index.php
5.01 KB
December 26 2023 05:00:46
0 / root
0644
info.xml
4.611 KB
May 07 2025 06:39:06
0 / root
0644
install.js
0.902 KB
December 23 2021 06:54:36
0 / root
0644
install.php
10.791 KB
May 07 2025 07:30:12
0 / root
0644
install.xml
1.609 KB
October 24 2024 03:06:22
0 / root
0644
md5
2.288 KB
May 07 2025 07:30:12
0 / root
0644
robots.txt
0.547 KB
December 23 2021 06:54:36
0 / root
0644
upgrade.php
9.271 KB
May 07 2025 07:30:12
0 / root
0644
upgrade.xml
0.271 KB
December 14 2022 03:47:26
0 / root
0644
zenphoto.cfg.php
4.413 KB
December 14 2022 03:47:26
0 / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF