| Server IP : 27.254.66.5 / Your IP : 216.73.217.39 Web Server : Apache/2 System : Linux cs82.hostneverdie.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 User : technic2 ( 1951) PHP Version : 7.4.30 Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,sleep,pcntl_exec,virtual,suexec,dbmopen,dl,symlink,disk_free_space,diskfreespace,leak MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/technic2/public_html/old-website/wp-content/plugins/polylang/ |
Upload File : |
<?php
/**
Plugin Name: Polylang
Plugin URI: https://polylang.pro
Version: 2.3.10
Author: Frédéric Demarle
Author uri: https://polylang.pro
Description: Adds multilingual capability to WordPress
Text Domain: polylang
Domain Path: /languages
*/
/*
* Copyright 2011-2018 Frédéric Demarle
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ( at your option ) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // don't access directly
};
if ( defined( 'POLYLANG_BASENAME' ) ) {
// The user is attempting to activate a second plugin instance, typically Polylang and Polylang Pro
require_once ABSPATH . 'wp-admin/includes/plugin.php';
if ( defined( 'POLYLANG_PRO' ) ) {
// Polylang Pro is already activated
if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
require_once ABSPATH . 'wp-includes/pluggable.php';
deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate this plugin
// WP does not allow us to send a custom meaningful message, so just tell the plugin has been deactivated
wp_redirect( add_query_arg( 'deactivate', 'true', remove_query_arg( 'activate' ) ) );
exit;
}
} else {
// Polylang was activated, deactivate it to keep only what we expect to be Polylang Pro
deactivate_plugins( POLYLANG_BASENAME );
}
} else {
// Go on loading the plugin
define( 'POLYLANG_VERSION', '2.3.10' );
define( 'PLL_MIN_WP_VERSION', '4.4' );
define( 'POLYLANG_FILE', __FILE__ ); // this file
define( 'POLYLANG_BASENAME', plugin_basename( POLYLANG_FILE ) ); // plugin name as known by WP
define( 'POLYLANG_DIR', dirname( POLYLANG_FILE ) ); // our directory
define( 'PLL_ADMIN_INC', POLYLANG_DIR . '/admin' );
define( 'PLL_FRONT_INC', POLYLANG_DIR . '/frontend' );
define( 'PLL_INC', POLYLANG_DIR . '/include' );
define( 'PLL_INSTALL_INC', POLYLANG_DIR . '/install' );
define( 'PLL_MODULES_INC', POLYLANG_DIR . '/modules' );
define( 'PLL_SETTINGS_INC', POLYLANG_DIR . '/settings' );
require_once PLL_INC . '/class-polylang.php';
if ( file_exists( PLL_INC . '/class-polylang-pro.php' ) ) {
define( 'POLYLANG_PRO', true );
require_once PLL_INC . '/class-polylang-pro.php';
}
}