403Webshell
Server IP : 178.212.43.201  /  Your IP : 10.100.0.33
Web Server : Apache/2.4.37 (Oracle Linux Server) OpenSSL/1.1.1k
System : Linux spa0007.srv.paxillus.pl 5.4.17-2136.355.3.1.el8uek.x86_64 #3 SMP Sat May 9 17:11:55 PDT 2026 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/kontur_dev/wp-content/plugins/page-generator-pro/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/kontur_dev/wp-content/plugins/page-generator-pro/includes/activation.php
<?php
/**
 * Plugin activation functions.
 *
 * @package Page_Generator_Pro
 * @author WP Zinc
 */

/**
 * Runs the installation and update routines when the plugin is activated.
 *
 * @since   1.9.8
 *
 * @param   bool $network_wide   Is network wide activation.
 */
function page_generator_pro_activate( $network_wide ) {

	// If the Free version of the Plugin is activated, deactivate it now.
	if ( is_plugin_active( 'page-generator/page-generator.php' ) ) {
		deactivate_plugins( 'page-generator/page-generator.php' );
	}

	// Initialise Plugin.
	$plugin = Page_Generator_Pro::get_instance();
	$plugin->initialize();

	// Check if we are on a multisite install, activating network wide, or a single install.
	if ( ! is_multisite() || ! $network_wide ) {
		// Single Site activation.
		$plugin->get_class( 'install' )->install();
	} else {
		// Multisite network wide activation.
		$sites = get_sites(
			array(
				'number' => 0,
			)
		);
		foreach ( $sites as $site ) {
			switch_to_blog( (int) $site->blog_id );
			$plugin->get_class( 'install' )->install();
			restore_current_blog();
		}
	}

}

/**
 * Runs the installation and update routines when the plugin is activated
 * on a WPMU site.
 *
 * @since   1.9.8
 *
 * @param   WP_Site|int $site_or_blog_id    WP_Site or Blog ID.
 */
function page_generator_pro_activate_new_site( $site_or_blog_id ) {

	// Check if $site_or_blog_id is a WP_Site or a blog ID.
	if ( is_a( $site_or_blog_id, 'WP_Site' ) ) {
		$site_or_blog_id = $site_or_blog_id->blog_id;
	}

	// If the Free version of the Plugin is activated, deactivate it now.
	if ( is_plugin_active( 'page-generator/page-generator.php' ) ) {
		deactivate_plugins( 'page-generator/page-generator.php' );
	}

	// Initialise Plugin.
	$plugin = Page_Generator_Pro::get_instance();
	$plugin->initialize();

	// Run installation routine.
	switch_to_blog( $site_or_blog_id );
	$plugin->get_class( 'install' )->install();
	restore_current_blog();

}

Youez - 2016 - github.com/yon3zu
LinuXploit