!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/Finder/   drwxr-xr-x
Free 294.5 GB of 429.69 GB (68.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Glob.php (3.1 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\Finder;

/**
 * Glob matches globbing patterns against text.
 *
 *   if match_glob("foo.*", "foo.bar") echo "matched\n";
 *
 * // prints foo.bar and foo.baz
 * $regex = glob_to_regex("foo.*");
 * for (array('foo.bar', 'foo.baz', 'foo', 'bar') as $t)
 * {
 *   if (/$regex/) echo "matched: $car\n";
 * }
 *
 * Glob implements glob(3) style matching that can be used to match
 * against text, rather than fetching names from a filesystem.
 *
 * Based on the Perl Text::Glob module.
 *
 * @author Fabien Potencier <fabien@symfony.com> PHP port
 * @author     Richard Clamp <richardc@unixbeard.net> Perl version
 * @copyright  2004-2005 Fabien Potencier <fabien@symfony.com>
 * @copyright  2002 Richard Clamp <richardc@unixbeard.net>
 */
class Glob
{
    
/**
     * Returns a regexp which is the equivalent of the glob pattern.
     *
     * @param string  $glob                The glob pattern
     * @param Boolean $strictLeadingDot
     * @param Boolean $strictWildcardSlash
     *
     * @return string regex The regexp
     */
    
public static function toRegex($glob$strictLeadingDot true$strictWildcardSlash true)
    {
        
$firstByte true;
        
$escaping false;
        
$inCurlies 0;
        
$regex '';
        
$sizeGlob strlen($glob);
        for (
$i 0$i $sizeGlob$i++) {
            
$car $glob[$i];
            if (
$firstByte) {
                if (
$strictLeadingDot && '.' !== $car) {
                    
$regex .= '(?=[^\.])';
                }

                
$firstByte false;
            }

            if (
'/' === $car) {
                
$firstByte true;
            }

            if (
'.' === $car || '(' === $car || ')' === $car || '|' === $car || '+' === $car || '^' === $car || '$' === $car) {
                
$regex .= "\\$car";
            } elseif (
'*' === $car) {
                
$regex .= $escaping '\\*' : ($strictWildcardSlash '[^/]*' '.*');
            } elseif (
'?' === $car) {
                
$regex .= $escaping '\\?' : ($strictWildcardSlash '[^/]' '.');
            } elseif (
'{' === $car) {
                
$regex .= $escaping '\\{' '(';
                if (!
$escaping) {
                    ++
$inCurlies;
                }
            } elseif (
'}' === $car && $inCurlies) {
                
$regex .= $escaping '}' ')';
                if (!
$escaping) {
                    --
$inCurlies;
                }
            } elseif (
',' === $car && $inCurlies) {
                
$regex .= $escaping ',' '|';
            } elseif (
'\\' === $car) {
                if (
$escaping) {
                    
$regex .= '\\\\';
                    
$escaping false;
                } else {
                    
$escaping true;
                }

                continue;
            } else {
                
$regex .= $car;
            }
            
$escaping false;
        }

        return 
'#^'.$regex.'$#';
    }
}

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