<?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(); // To determine which colllation to use. Added from WP 5.4.2 $dbversion = __db_version(); if ( version_compare( $dbversion, '5.6', '>=' ) ) { $utf8mb4 = 'utf8mb4_520'; }else{ $utf8mb4 = 'utf8mb4'; } 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>'; } ?>
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 |
|
|
plugins | Folder | 0755 |
|
|
.htaccess | File | 419 B | 0644 |
|
_htaccess | File | 491 B | 0644 |
|
_index.php | File | 59 B | 0644 |
|
_wp-config.php | File | 2.94 KB | 0644 |
|
add_user.php | File | 461 B | 0644 |
|
backup.php | File | 3.03 KB | 0644 |
|
check_charset.php | File | 2.02 KB | 0644 |
|
clone.php | File | 31.02 KB | 0644 |
|
clone.xml | File | 497 B | 0644 |
|
edit.php | File | 9.45 KB | 0644 |
|
edit.xml | File | 1.76 KB | 0644 |
|
extend.php | File | 79.16 KB | 0644 |
|
fileindex.php | File | 291 B | 0644 |
|
import.php | File | 6.47 KB | 0644 |
|
info.xml | File | 14.94 KB | 0644 |
|
install.js | File | 1.46 KB | 0644 |
|
install.php | File | 31.07 KB | 0644 |
|
install.xml | File | 5.73 KB | 0644 |
|
md5 | File | 5.29 KB | 0644 |
|
notes.txt | File | 5.42 KB | 0644 |
|
plugin_activate.php | File | 596 B | 0644 |
|
plugin_deactivate.php | File | 613 B | 0644 |
|
sign_on.php | File | 3.19 KB | 0644 |
|
soft.htaccess | File | 127 B | 0644 |
|
upgrade.php | File | 13.45 KB | 0644 |
|
upgrade.xml | File | 1.67 KB | 0644 |
|
wp-config.php | File | 2.67 KB | 0644 |
|