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

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/CssSelector/XPath/Extension/   drwxr-xr-x
Free 293.9 GB of 429.69 GB (68.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\CssSelector\XPath\Extension;

use 
Symfony\Component\CssSelector\Exception\ExpressionErrorException;
use 
Symfony\Component\CssSelector\Node\FunctionNode;
use 
Symfony\Component\CssSelector\XPath\Translator;
use 
Symfony\Component\CssSelector\XPath\XPathExpr;

/**
 * XPath expression translator HTML extension.
 *
 * This component is a port of the Python cssselector library,
 * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
 *
 * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
 */
class HtmlExtension extends AbstractExtension
{
    
/**
     * Constructor.
     *
     * @param Translator $translator
     */
    
public function __construct(Translator $translator)
    {
        
$translator
            
->getExtension('node')
            ->
setFlag(NodeExtension::ELEMENT_NAME_IN_LOWER_CASEtrue)
            ->
setFlag(NodeExtension::ATTRIBUTE_NAME_IN_LOWER_CASEtrue);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getPseudoClassTranslators()
    {
        return array(
            
'checked'  => array($this'translateChecked'),
            
'link'     => array($this'translateLink'),
            
'disabled' => array($this'translateDisabled'),
            
'enabled'  => array($this'translateEnabled'),
            
'selected' => array($this'translateSelected'),
            
'invalid'  => array($this'translateInvalid'),
            
'hover'    => array($this'translateHover'),
            
'visited'  => array($this'translateVisited'),
        );
    }

    
/**
     * {@inheritdoc}
     */
    
public function getFunctionTranslators()
    {
        return array(
            
'lang' => array($this'translateLang'),
        );
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateChecked(XPathExpr $xpath)
    {
        return 
$xpath->addCondition(
            
'(@checked '
            
."and (name(.) = 'input' or name(.) = 'command')"
            
."and (@type = 'checkbox' or @type = 'radio'))"
        
);
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateLink(XPathExpr $xpath)
    {
        return 
$xpath->addCondition("@href and (name(.) = 'a' or name(.) = 'link' or name(.) = 'area')");
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateDisabled(XPathExpr $xpath)
    {
        return 
$xpath->addCondition(
            
"("
                
."@disabled and"
                
."("
                    
."(name(.) = 'input' and @type != 'hidden')"
                    
." or name(.) = 'button'"
                    
." or name(.) = 'select'"
                    
." or name(.) = 'textarea'"
                    
." or name(.) = 'command'"
                    
." or name(.) = 'fieldset'"
                    
." or name(.) = 'optgroup'"
                    
." or name(.) = 'option'"
                
.")"
            
.") or ("
                
."(name(.) = 'input' and @type != 'hidden')"
                
." or name(.) = 'button'"
                
." or name(.) = 'select'"
                
." or name(.) = 'textarea'"
            
.")"
            
." and ancestor::fieldset[@disabled]"
        
);
        
// todo: in the second half, add "and is not a descendant of that fieldset element's first legend element child, if any."
    
}

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateEnabled(XPathExpr $xpath)
    {
        return 
$xpath->addCondition(
            
'('
                
.'@href and ('
                    
."name(.) = 'a'"
                    
." or name(.) = 'link'"
                    
." or name(.) = 'area'"
                
.')'
            
.') or ('
                
.'('
                    
."name(.) = 'command'"
                    
." or name(.) = 'fieldset'"
                    
." or name(.) = 'optgroup'"
                
.')'
                
.' and not(@disabled)'
            
.') or ('
                
.'('
                    
."(name(.) = 'input' and @type != 'hidden')"
                    
." or name(.) = 'button'"
                    
." or name(.) = 'select'"
                    
." or name(.) = 'textarea'"
                    
." or name(.) = 'keygen'"
                
.')'
                
." and not (@disabled or ancestor::fieldset[@disabled])"
            
.') or ('
                
."name(.) = 'option' and not("
                    
."@disabled or ancestor::optgroup[@disabled]"
                
.')'
            
.')'
        
);
    }

    
/**
     * @param XPathExpr    $xpath
     * @param FunctionNode $function
     *
     * @return XPathExpr
     *
     * @throws ExpressionErrorException
     */
    
public function translateLang(XPathExpr $xpathFunctionNode $function)
    {
        
$arguments $function->getArguments();
        foreach (
$arguments as $token) {
            if (!(
$token->isString() || $token->isIdentifier())) {
                throw new 
ExpressionErrorException(
                    
'Expected a single string or identifier for :lang(), got '
                    
.implode(', '$arguments)
                );
            }
        }

        return 
$xpath->addCondition(sprintf(
            
'ancestor-or-self::*[@lang][1][starts-with(concat('
            
."translate(@%s, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), '-')"
            
.', %s)]',
            
'lang',
            
Translator::getXpathLiteral(strtolower($arguments[0]->getValue()).'-')
        ));
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateSelected(XPathExpr $xpath)
    {
        return 
$xpath->addCondition("(@selected and name(.) = 'option')");
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateInvalid(XPathExpr $xpath)
    {
        return 
$xpath->addCondition('0');
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateHover(XPathExpr $xpath)
    {
        return 
$xpath->addCondition('0');
    }

    
/**
     * @param XPathExpr $xpath
     *
     * @return XPathExpr
     */
    
public function translateVisited(XPathExpr $xpath)
    {
        return 
$xpath->addCondition('0');
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
'html';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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