!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/vendor/williamdes/mariadb-mysql-kbs/src/   drwxr-xr-x
Free 13.54 GB of 61.93 GB (21.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     KBEntry.php (2.97 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types 1);

namespace 
Williamdes\MariaDBMySQLKBS;

use 
stdClass;
use 
JsonSerializable;

class 
KBEntry extends stdClass implements JsonSerializable
{
    
/**
     * The name of the variable
     *
     * @var string
     */
    
private $name;

    
/**
     * Type of variable
     *
     * @var string
     */
    
private $type null;

    
/**
     * Is dynamic ?
     *
     * @var bool
     */
    
private $dynamic null;

    
/**
     * Documentations
     *
     * @var KBDocumentation[]
     */
    
private $docs null;

    
/**
     * Create a KBEntry object
     *
     * @param string      $name    The name of the variable
     * @param string|null $type    Type of variable
     * @param bool|null   $dynamic Is dynamic ?
     */
    
public function __construct(string $name, ?string $type, ?bool $dynamic)
    {
        
$this->name $name;
        if (
$type !== null) {
            
$this->type $type;
        }
        if (
$dynamic !== null) {
            
$this->dynamic $dynamic;
        }
    }

    
/**
     * Get the variable name
     *
     * @return string
     */
    
public function getName(): string
    
{
        return 
$this->name;
    }

    
/**
     * Is the variable dynamic
     *
     * @return bool|null
     */
    
public function isDynamic(): ?bool
    
{
        return 
$this->dynamic;
    }

    
/**
     * Get the variable type
     *
     * @return string|null
     */
    
public function getType(): ?string
    
{
        return 
$this->type;
    }

    
/**
     * Variable has documentations
     *
     * @return bool
     */
    
public function hasDocumentations(): bool
    
{
        if (
$this->docs === null) {
            return 
false;
        } else {
            return 
count($this->docs) > 0;
        }
    }

    
/**
     * Get all documentations
     *
     * @return KBDocumentation[]
     */
    
public function getDocumentations(): array
    {
        return 
$this->docs;
    }

    
/**
     * Add documentation link
     *
     * @param string      $url    The URL
     * @param string|null $anchor The anchor
     * @return KBDocumentation
     */
    
public function addDocumentation(string $url, ?string $anchor null): KBDocumentation
    
{
        
$this->url $url;
        if (
$this->docs === null) {
            
$this->docs = [];
        }
        
$kbd          = new KBDocumentation($url$anchor);
        
$this->docs[] = $kbd;
        return 
$kbd;
    }

    
/**
     * Used for json_encode function
     * This can seem useless, do not remove it.
     *
     * @return array<string,KBDocumentation[]|bool|string>
     */
    
public function jsonSerialize(): array
    {
        
$outObj         = [];
        
$outObj['name'] = $this->name;
        if (
$this->type !== null) {
            
$outObj['type'] = $this->type;
        }
        if (
$this->dynamic !== null) {
            
$outObj['dynamic'] = $this->dynamic;
        }
        if (
$this->docs !== null) {
            
$outObj['docs'] = $this->docs;
        }
        return 
$outObj;
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.484 ]--