HEX
Server: Apache
System: Linux srv-plesk28.ps.kz 5.14.0-284.18.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 29 17:06:27 EDT 2023 x86_64
User: greencl1 (10085)
PHP: 8.1.33
Disabled: apache_setenv,dl,eval,exec,openlog,passthru,pcntl_exec,pcntl_fork,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,socket_create,socket_create_listen,socket_create_pair,syslog,system,socket_listen,stream_socket_server
Upload Files
File: /var/www/vhosts/greenclinic.kz/httpdocs/wp-content/plugins/wp-multilang/wp-multilang.php
<?php
/**
 * Plugin Name:       WP Multilang
 * Plugin URI:        https://github.com/ahmedkaludi/wp-multilang
 * GitHub Plugin URI: https://github.com/ahmedkaludi/wp-multilang
 * Description:       Multilingual plugin for WordPress. Go Multilingual in minutes with full WordPress support. Translate your site easily with this localization plugin.
 * Author:            Valentyn Riaboshtan
 * Author URI: 		  https://wp-multilang.com/
 * License:           GPL2
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       wp-multilang
 * Domain Path:       /languages
 * Version:           2.4.22
 * Copyright:         © 2017-2019 Valentyn Riaboshtan
 *
 * @package  WPM
 * @category Core
 * @author   Valentyn Riaboshtan
 */

use WPM\Includes\WP_Multilang;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

// Define WPM_PLUGIN_FILE.
if ( ! defined( 'WPM_PLUGIN_FILE' ) ) {
	define( 'WPM_PLUGIN_FILE', __FILE__ );
}

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/includes/wpm-widget-block-editor.php';

function wpm() {
	return WP_Multilang::instance();
}

wpm();


/**
 * Set transient on plugin activation
 * @since 1.0
 * */
function wpm_activate_plugin( $network_active ) {

	// Not network active i.e. plugin is activated on a single install (normal WordPress install) or a single site on a multisite network
	if ( ! $network_active ) {
		
		// Set transient for single site activation notice
		set_transient( 'wpm_admin_notice_activation', true, 60 );
		
		return;
	}
}
register_activation_hook( __FILE__, 'wpm_activate_plugin' );


/**
 * Admin notice on plugin activation
 *
 * @since 1.0 
 */
function wpm_activation_admin_notices() {
	
	// Notices only for admins
	if ( ! current_user_can( 'manage_options' ) ) {
        return;
    }

    // Admin notice on plugin activation
	if ( get_transient( 'wpm_admin_notice_activation' ) ) {
		
		// Do not display link to settings UI if we are already in the UI.
		$screen = get_current_screen();
		?>
		<div class="updated notice is-dismissible">
			<p>
				<?php echo esc_html__( 'Thank you for installing', 'wp-multilang' ); ?> 
				<strong>WP Multilang!</strong>
				<?php
				if( strpos( $screen->id, 'wpm' ) === false ) {
				?>
					<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpm-settings' ) ); ?>"><?php echo esc_html__( 'Add your languages & Customize your settings &rarr;', 'wp-multilang');?> </a>
				<?php
				}
				?>
			</p>
		</div>';
		<?php
		// Delete transient
		delete_transient( 'wpm_admin_notice_activation' );
	}
}
add_action( 'admin_notices', 'wpm_activation_admin_notices' );