!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/gwp.picotech.app/public_html/vendor/laravel/prompts/src/Themes/Default/   drwxr-xr-x
Free 28.67 GB of 117.98 GB (24.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Prompts\Themes\Default;

use 
Laravel\Prompts\Concerns\Colors;
use 
Laravel\Prompts\Concerns\Truncation;
use 
Laravel\Prompts\Prompt;

abstract class 
Renderer
{
    use 
Colors;
    use 
Truncation;

    
/**
     * The output to be rendered.
     */
    
protected string $output '';

    
/**
     * Create a new renderer instance.
     */
    
public function __construct(protected Prompt $prompt)
    {
        
//
    
}

    
/**
     * Render a line of output.
     */
    
protected function line(string $message): self
    
{
        
$this->output .= $message.PHP_EOL;

        return 
$this;
    }

    
/**
     * Render a new line.
     */
    
protected function newLine(int $count 1): self
    
{
        
$this->output .= str_repeat(PHP_EOL$count);

        return 
$this;
    }

    
/**
     * Render a warning message.
     */
    
protected function warning(string $message): self
    
{
        return 
$this->line($this->yellow("  ⚠ {$message}"));
    }

    
/**
     * Render an error message.
     */
    
protected function error(string $message): self
    
{
        return 
$this->line($this->red("  ⚠ {$message}"));
    }

    
/**
     * Render an hint message.
     */
    
protected function hint(string $message): self
    
{
        if (
$message === '') {
            return 
$this;
        }

        
$message $this->truncate($message$this->prompt->terminal()->cols() - 6);

        return 
$this->line($this->gray("  {$message}"));
    }

    
/**
     * Apply the callback if the given "value" is truthy.
     *
     * @return $this
     */
    
protected function when(mixed $value, callable $callback, ?callable $default null): self
    
{
        if (
$value) {
            
$callback($this);
        } elseif (
$default) {
            
$default($this);
        }

        return 
$this;
    }

    
/**
     * Render the output with a blank line above and below.
     */
    
public function __toString()
    {
        return 
str_repeat(PHP_EOLmax($this->prompt->newLinesWritten(), 0))
            .
$this->output
            
.(in_array($this->prompt->state, ['submit''cancel']) ? PHP_EOL '');
    }
}

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