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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smab.picotech.app/public_html/vendor/artesaos/seotools/src/SEOTools/   drwxr-xr-x
Free 26.32 GB of 117.98 GB (22.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Artesaos\SEOTools;

use 
Artesaos\SEOTools\Contracts\JsonLdMulti as JsonLdMultiContract;

/**
 * JsonLdMulti provides implementation for `JsonLdMulti` contract.
 *
 * @see \Artesaos\SEOTools\Contracts\JsonLdMulti
 */
class JsonLdMulti implements JsonLdMultiContract
{
    
/**
     * Index of the targeted JsonLd group
     *
     * @var int
     */
    
protected $index 0;
    
/**
     * List of the JsonLd groups
     *
     * @var array
     */
    
protected $list = [];
    
/**
     * @var array
     */
    
protected $defaultJsonLdData = [];

    
/**
     * JsonLdMulti constructor.
     *
     * @param array $defaultJsonLdData
     */
    
public function __construct(array $defaultJsonLdData = [])
    {
        
$this->defaultJsonLdData $defaultJsonLdData;
        
// init the first JsonLd group
        
if (empty($this->list)) {
            
$this->newJsonLd();
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function generate($minify false)
    {
        return 
array_reduce($this->list, function (string $outputJsonLd $jsonLd) {
            return 
$output . (! $jsonLd->isEmpty() ? $jsonLd->generate() : '');
        }, 
'');
    }

    
/**
     * {@inheritdoc}
     */
    
public function newJsonLd()
    {
        
$this->index count($this->list);
        
$this->list[] = new JsonLd($this->defaultJsonLdData);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function isEmpty()
    {
        return 
$this->list[$this->index]->isEmpty();
    }

    
/**
     * {@inheritdoc}
     */
    
public function select($index)
    {
        
// don't change the index if the new one doesn't exists
        
if (key_exists($this->index$this->list)) {
            
$this->index $index;
        }

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function addValue($key$value)
    {
        
$this->list[$this->index]->addValue($key$value);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function addValues(array $values)
    {
        
$this->list[$this->index]->addValues($values);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setType($type)
    {
        
$this->list[$this->index]->setType($type);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setTitle($title)
    {
        
$this->list[$this->index]->setTitle($title);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setSite($site)
    {
        
$this->list[$this->index]->setSite($site);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setDescription($description)
    {
        
$this->list[$this->index]->setDescription($description);

        return 
$this;
    }

    
/**
     *{@inheritdoc}
     */
    
public function setUrl($url)
    {
        
$this->list[$this->index]->setUrl($url);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setImages($images)
    {
        
$this->list[$this->index]->setImages($images);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function addImage($image)
    {
        
$this->list[$this->index]->addImage($image);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setImage($image)
    {
        
$this->list[$this->index]->setImage($image);

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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