!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/monolog/monolog/src/Monolog/Handler/   drwxr-xr-x
Free 116.86 GB of 200.55 GB (58.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Monolog package.
 *
 * (c) Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Monolog\Handler;

/**
 * Used for testing purposes.
 *
 * It records all records and gives you access to them for verification.
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 *
 * @method bool hasEmergency($record)
 * @method bool hasAlert($record)
 * @method bool hasCritical($record)
 * @method bool hasError($record)
 * @method bool hasWarning($record)
 * @method bool hasNotice($record)
 * @method bool hasInfo($record)
 * @method bool hasDebug($record)
 *
 * @method bool hasEmergencyRecords()
 * @method bool hasAlertRecords()
 * @method bool hasCriticalRecords()
 * @method bool hasErrorRecords()
 * @method bool hasWarningRecords()
 * @method bool hasNoticeRecords()
 * @method bool hasInfoRecords()
 * @method bool hasDebugRecords()
 *
 * @method bool hasEmergencyThatContains($message)
 * @method bool hasAlertThatContains($message)
 * @method bool hasCriticalThatContains($message)
 * @method bool hasErrorThatContains($message)
 * @method bool hasWarningThatContains($message)
 * @method bool hasNoticeThatContains($message)
 * @method bool hasInfoThatContains($message)
 * @method bool hasDebugThatContains($message)
 *
 * @method bool hasEmergencyThatMatches($message)
 * @method bool hasAlertThatMatches($message)
 * @method bool hasCriticalThatMatches($message)
 * @method bool hasErrorThatMatches($message)
 * @method bool hasWarningThatMatches($message)
 * @method bool hasNoticeThatMatches($message)
 * @method bool hasInfoThatMatches($message)
 * @method bool hasDebugThatMatches($message)
 *
 * @method bool hasEmergencyThatPasses($message)
 * @method bool hasAlertThatPasses($message)
 * @method bool hasCriticalThatPasses($message)
 * @method bool hasErrorThatPasses($message)
 * @method bool hasWarningThatPasses($message)
 * @method bool hasNoticeThatPasses($message)
 * @method bool hasInfoThatPasses($message)
 * @method bool hasDebugThatPasses($message)
 */
class TestHandler extends AbstractProcessingHandler
{
    protected 
$records = array();
    protected 
$recordsByLevel = array();

    public function 
getRecords()
    {
        return 
$this->records;
    }

    public function 
clear()
    {
        
$this->records = array();
        
$this->recordsByLevel = array();
    }

    protected function 
hasRecordRecords($level)
    {
        return isset(
$this->recordsByLevel[$level]);
    }

    protected function 
hasRecord($record$level)
    {
        if (
is_array($record)) {
            
$record $record['message'];
        }

        return 
$this->hasRecordThatPasses(function ($rec) use ($record) {
            return 
$rec['message'] === $record;
        }, 
$level);
    }

    public function 
hasRecordThatContains($message$level)
    {
        return 
$this->hasRecordThatPasses(function ($rec) use ($message) {
            return 
strpos($rec['message'], $message) !== false;
        }, 
$level);
    }

    public function 
hasRecordThatMatches($regex$level)
    {
        return 
$this->hasRecordThatPasses(function ($rec) use ($regex) {
            return 
preg_match($regex$rec['message']) > 0;
        }, 
$level);
    }

    public function 
hasRecordThatPasses($predicate$level)
    {
        if (!
is_callable($predicate)) {
            throw new \
InvalidArgumentException("Expected a callable for hasRecordThatSucceeds");
        }

        if (!isset(
$this->recordsByLevel[$level])) {
            return 
false;
        }

        foreach (
$this->recordsByLevel[$level] as $i => $rec) {
            if (
call_user_func($predicate$rec$i)) {
                return 
true;
            }
        }

        return 
false;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function write(array $record)
    {
        
$this->recordsByLevel[$record['level']][] = $record;
        
$this->records[] = $record;
    }

    public function 
__call($method$args)
    {
        if (
preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/'$method$matches) > 0) {
            
$genericMethod $matches[1] . 'Record' $matches[3];
            
$level constant('Monolog\Logger::' strtoupper($matches[2]));
            if (
method_exists($this$genericMethod)) {
                
$args[] = $level;

                return 
call_user_func_array(array($this$genericMethod), $args);
            }
        }

        throw new \
BadMethodCallException('Call to undefined method ' get_class($this) . '::' $method '()');
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0136 ]--