PHP 8.2.30
Preview: check_charset.php Size: 1.97 KB
/proc/self/root/proc/thread-self/root/proc/thread-self/root/var/softaculous/sp/check_charset.php

<?php

function __has_cap(){
	global $use_mysqli;
	
	$use_mysqli = false;
	if ( function_exists( 'mysqli_connect' ) ) {
		if ( version_compare( phpversion(), '5.5', '>=' ) || ! function_exists( 'mysql_connect' ) ) {
			$use_mysqli = true;
		} elseif ( false !== strpos( '[[wpver]]', '-' ) ) {
			$use_mysqli = true;
		}
	}
	$version = __db_version();
	
	if ( version_compare( $version, '5.5.3', '<' ) ) {
		return false;
	}
	
	if ( $use_mysqli ) {
		$client_version = mysqli_get_client_info();
	} else {
		$client_version = mysql_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 ( false !== strpos( $client_version, 'mysqlnd' ) ) {
		$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', '>=' );
	}

	return false;
	
}

function __db_version() {
	global $use_mysqli;
	if ( $use_mysqli ) {
		$server_info = mysqli_get_server_info( mysqli_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]"));
	} else {
		$server_info = mysql_get_server_info( mysql_connect("[[softdbhost]]","[[softdbuser]]","[[softdbpass]]","[[softdb]]"));
	}
	return preg_replace( '/[^0-9.].*/', '', $server_info );
}

$has_cap = __has_cap();

if(!empty($has_cap)){
	echo '<claim_utf8>utf8mb4</claim_utf8>';	
}

// Server detection

/**
 * Whether the server software is Apache or something else
 * @global bool $soft_is_apache
 */
$soft_is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false);

if(!empty($soft_is_apache)){
	echo '<soft_apache>soft_is_apache</soft_apache>';
}else{
	echo '<soft_apache>soft_not_apache</soft_apache>';
}

if(include_once('[[editor_path]]/site-inc/open_basedir.php')){
	if(!empty($included)){
		echo '<soft_open_basedir>SP_OBD_SUPPORTED</soft_open_basedir>';
	}
}
	

Directory Contents

Dirs: 6 × Files: 23

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2026-02-20 22:02:46
Edit Download
php53 DIR
- drwxr-xr-x 2026-02-20 22:02:46
Edit Download
php56 DIR
- drwxr-xr-x 2026-02-20 22:02:46
Edit Download
php71 DIR
- drwxr-xr-x 2026-02-20 22:02:46
Edit Download
php81 DIR
- drwxr-xr-x 2026-02-20 22:02:46
Edit Download
php82 DIR
- drwxr-xr-x 2026-02-20 22:02:46
Edit Download
184 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
1.97 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
13.19 KB lrw-r--r-- 2026-02-20 08:07:26
Edit Download
3.54 KB lrw-r--r-- 2026-02-20 08:07:26
Edit Download
269 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
19.49 MB lrw-r--r-- 2026-02-20 07:41:24
Edit Download
2.52 KB lrw-r--r-- 2026-02-20 08:07:26
Edit Download
32 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
3.07 KB lrw-r--r-- 2026-02-20 08:07:26
Edit Download
1.21 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
20.37 KB lrw-r--r-- 2026-02-20 07:41:24
Edit Download
924 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
25.60 KB lrw-r--r-- 2026-02-20 08:07:26
Edit Download
5.30 KB lrw-r--r-- 2022-05-25 06:35:12
Edit Download
1.38 KB lrw-r--r-- 2026-02-20 08:07:24
Edit Download
95 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
2.13 KB lrw-r--r-- 2023-09-13 15:18:58
Edit Download
124 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
21.10 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
281 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
3.27 KB lrw-r--r-- 2026-02-20 08:07:26
Edit Download
231 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
37 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).