| Server IP : 31.214.179.3 / Your IP : 216.73.216.84 Web Server : Apache System : Linux hostingsrv125.dondominio.com 6.12.96+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.96-1 (2026-07-20) x86_64 User : ( 1156851) PHP Version : 8.5.8 Disable Function : system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,mail,eval MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /hosting/www/thermatron.es/public/wp-content/plugins/code-snippets/php/ |
Upload File : |
<?php
/**
* File loaded when the plugin cannot be activated.
*
* All code in this file should be compatible with PHP 5.2 or later.
*
* @package Code_Snippets
*
* @noinspection PhpNestedDirNameCallsCanBeReplacedWithLevelParameterInspection
*
* phpcs:disable Modernize.FunctionCalls.Dirname.FileConstant
*/
if ( ! defined( 'ABSPATH' ) || function_exists( 'code_snippets_deactivation_notice' ) ) {
return;
}
/**
* Deactivate the plugin and display a notice informing the user that this has happened.
*
* @return void
*
* @since 3.3.0
*/
function code_snippets_deactivation_notice() {
$plugins = array();
$required_php_version = '7.4';
if ( version_compare( phpversion(), $required_php_version, '<' ) ) {
echo '<div class="error fade"><p><strong>';
// translators: %s: required PHP version number.
echo esc_html( sprintf( __( 'Code Snippets requires PHP %s or later.', 'code-snippets' ), $required_php_version ) );
echo '</strong><br>';
$update_url = function_exists( 'wp_get_default_update_php_url' ) ?
wp_get_default_update_php_url() :
'https://wordpress.org/support/update-php/';
// translators: %s: Update PHP URL.
$text = __( 'Please <a href="%s">upgrade your server to the latest version of PHP</a> to continue using Code Snippets.', 'code-snippets' );
echo wp_kses( sprintf( $text, $update_url ), array( 'a' => array( 'href' => array() ) ) );
echo '</p></div>';
$plugins[] = plugin_basename( dirname( dirname( __FILE__ ) ) . '/code-snippets.php' );
}
if ( defined( 'CODE_SNIPPETS_FILE' ) ) {
echo '<div class="error fade"><p>';
esc_html_e( 'Another version of Code Snippets appears to be installed. Deactivating this version.', 'code-snippets' );
echo '</p></div>';
$plugins[] = 'code-snippets/code-snippets.php';
}
if ( $plugins ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
deactivate_plugins( array_unique( $plugins ) );
}
}
add_action( 'admin_notices', 'code_snippets_deactivation_notice' );