- ';
echo __('WPML cannot be activated because your version of PHP is too old. To run correctly, you must have PHP5 installed.
We recommend that you contact your hosting company and request them to switch you to PHP5.', 'sitepress');
echo sprintf('
PHP reports version %s - (show detailed phpinfo)',phpversion());
echo '
';
echo '';
echo '';
}
$active_plugins = get_option('active_plugins');
$icl_sitepress_idx = array_search(ICL_PLUGIN_FOLDER . '/sitepress.php', $active_plugins);
if(false !== $icl_sitepress_idx){
unset($active_plugins[$icl_sitepress_idx]);
update_option('active_plugins', $active_plugins);
unset($_GET['activate']);
$recently_activated = get_option('recently_activated');
if(!isset($recently_activated[ICL_PLUGIN_FOLDER . '/sitepress.php'])){
$recently_activated[ICL_PLUGIN_FOLDER . '/sitepress.php'] = time();
update_option('recently_activated', $recently_activated);
}
}
define('PHP_VERSION_INCOMPATIBLE', true);
function icl_php_version_warn_js(){
?>