403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/robotics/wp-content/plugins/ultimate-member/includes/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/robotics/wp-content/plugins/ultimate-member/includes/core/class-multisite.php
<?php
namespace um\core;


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


if ( ! class_exists( 'um\core\Multisite' ) ) {


	/**
	 * Class Multisite
	 *
	 * @package um\core
	 */
	class Multisite {


		/**
		 * Multisite constructor.
		 */
		function __construct() {
			add_action( 'wpmu_new_blog', array( &$this, 'create_new_blog_old_wp' ), 10, 1 );
			add_action( 'wp_insert_site', array( &$this, 'create_new_blog' ), 10, 1 );
		}


		/**
		 * Make default UM installation at the new blog if UM is active for network
		 *
		 * is deprecated in WP 5.1
		 *
		 * @param $blog_id
		 */
		function create_new_blog_old_wp( $blog_id ) {

			switch_to_blog( $blog_id );
			UM()->single_site_activation();
			restore_current_blog();

		}


		/**
		 * Make default UM installation at the new blog if UM is active for network
		 * works since 5.1 WP version
		 *
		 * @param \WP_Site $blog
		 */
		function create_new_blog( $blog ) {

			switch_to_blog( $blog->blog_id );
			UM()->single_site_activation();
			restore_current_blog();

		}


	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit