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/Tss/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace Themeco\Cornerstone\Tss;

use Themeco\Cornerstone\Util\Factory;
use Themeco\Cornerstone\Tss\Evaluator;
use Themeco\Cornerstone\Tss\Statements\Validator;

class Stack {

  protected $definitions = [];
  protected $evaluator;
  protected $parent = null;

  public $validator;
  public $result;

  public $__id = '';

  public function __construct(Evaluator $evaluator, Validator $validator, Result $result) {
    $this->evaluator = $evaluator;
    $this->validator = $validator;
    $this->result = $result;
    $this->evaluator->setStack($this);
    $this->__id = uniqid();
  }

  public function define($type, $name, $content) {

    if (!isset($this->definitions[$type])) {
      $this->definitions[$type] = [];
    }

    $this->definitions[$type][$name] = $content;

  }

  public function lookup( $type, $name ) {

    return $this->lookupWithStack($type, $name)[0];
  }

  public function lookupLocal( $type, $name ) {
    if ( isset( $this->definitions[$type]) && isset( $this->definitions[$type][$name] ) ) {
      return [true, $this->definitions[$type][$name]];
    }
    return [false,null];
  }

  public function lookupWithStack($type, $name) {

    $next = $this;

    while( ! is_null( $next ) ) {

      list($found, $value) = $next->lookupLocal( $type, $name );

      if ( $found ) {
        return [ $value, $next ];
      }

      $next = $next->parent();
    }


    return [null,$this];
  }

  public function getAllFromNamespace( $type ) {
    return isset( $this->definitions[$type]) ? $this->definitions[$type] : [];
  }

  public function evaluator() {
    return $this->evaluator;
  }

  public function validator() {
    return $this->validator;
  }

  public function result() {
    return $this->result;
  }

  public function setParent($parent) {
    $this->parent = $parent;
  }

  public function parent() {
    return $this->parent;
  }

  public function newScope() {
    $next = Factory::create(Stack::class);
    $next->setParent($this);
    return $next;
  }

  public function getDefinitions() {
    return $this->definitions;
  }

  public function processStatements($statements) {
    foreach ($statements as $statement) {
      if ($this->result()->isComplete()) {
        return true;
      }
      $this->validator()->make($statement->type(), $this)->process($statement->content());
    }
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit