!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/simplesamlphp/lib/Auth/Yadis/   drwxrwxr-x
Free 13.85 GB of 61.93 GB (22.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     XRI.php (5.86 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Routines for XRI resolution.
 *
 * @package OpenID
 * @author JanRain, Inc. <openid@janrain.com>
 * @copyright 2005-2008 Janrain, Inc.
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache
 */

require_once 'Auth/Yadis/Misc.php';
require_once 
'Auth/Yadis/Yadis.php';
require_once 
'Auth/OpenID.php';

function 
Auth_Yadis_getDefaultProxy()
{
    return 
'http://xri.net/';
}

function 
Auth_Yadis_getXRIAuthorities()
{
    return array(
'!''=''@''+''$''(');
}

function 
Auth_Yadis_getEscapeRE()
{
    
$parts = array();
    foreach (
array_merge(Auth_Yadis_getUCSChars(),
                         
Auth_Yadis_getIPrivateChars()) as $pair) {
        list(
$m$n) = $pair;
        
$parts[] = sprintf("%s-%s"chr($m), chr($n));
    }

    return 
sprintf('/[%s]/'implode(''$parts));
}

function 
Auth_Yadis_getXrefRE()
{
    return 
'/\((.*?)\)/';
}

function 
Auth_Yadis_identifierScheme($identifier)
{
    if (
Auth_Yadis_startswith($identifier'xri://') ||
        (
$identifier &&
          
in_array($identifier[0], Auth_Yadis_getXRIAuthorities()))) {
        return 
"XRI";
    } else {
        return 
"URI";
    }
}

function 
Auth_Yadis_toIRINormal($xri)
{
    if (!
Auth_Yadis_startswith($xri'xri://')) {
        
$xri 'xri://' $xri;
    }

    return 
Auth_Yadis_escapeForIRI($xri);
}

function 
_escape_xref($xref_match)
{
    
$xref $xref_match[0];
    
$xref str_replace('/''%2F'$xref);
    
$xref str_replace('?''%3F'$xref);
    
$xref str_replace('#''%23'$xref);
    return 
$xref;
}

function 
Auth_Yadis_escapeForIRI($xri)
{
    
$xri str_replace('%''%25'$xri);
    
$xri preg_replace_callback(Auth_Yadis_getXrefRE(),
                                 
'_escape_xref'$xri);
    return 
$xri;
}

function 
Auth_Yadis_toURINormal($xri)
{
    return 
Auth_Yadis_iriToURI(Auth_Yadis_toIRINormal($xri));
}

function 
Auth_Yadis_iriToURI($iri)
{
    if (
1) {
        return 
$iri;
    } else {
        
// According to RFC 3987, section 3.1, "Mapping of IRIs to URIs"
        
return preg_replace_callback(Auth_Yadis_getEscapeRE(),
                                     
'Auth_Yadis_pct_escape_unicode'$iri);
    }
}


function 
Auth_Yadis_XRIAppendArgs($url$args)
{
    
// Append some arguments to an HTTP query.  Yes, this is just like
    // OpenID's appendArgs, but with special seasoning for XRI
    // queries.

    
if (count($args) == 0) {
        return 
$url;
    }

    
// Non-empty array; if it is an array of arrays, use multisort;
    // otherwise use sort.
    
if (array_key_exists(0$args) &&
        
is_array($args[0])) {
        
// Do nothing here.
    
} else {
        
$keys array_keys($args);
        
sort($keys);
        
$new_args = array();
        foreach (
$keys as $key) {
            
$new_args[] = array($key$args[$key]);
        }
        
$args $new_args;
    }

    
// According to XRI Resolution section "QXRI query parameters":
    //
    // "If the original QXRI had a null query component (only a
    //  leading question mark), or a query component consisting of
    //  only question marks, one additional leading question mark MUST
    //  be added when adding any XRI resolution parameters."
    
if (strpos(rtrim($url'?'), '?') !== false) {
        
$sep '&';
    } else {
        
$sep '?';
    }

    return 
$url $sep Auth_OpenID::httpBuildQuery($args);
}

function 
Auth_Yadis_providerIsAuthoritative($providerID$canonicalID)
{
    
$lastbang strrpos($canonicalID'!');
    
$p substr($canonicalID0$lastbang);
    return 
$p == $providerID;
}

function 
Auth_Yadis_rootAuthority($xri)
{
    
// Return the root authority for an XRI.

    
$root null;

    if (
Auth_Yadis_startswith($xri'xri://')) {
        
$xri substr($xri6);
    }

    
$authority explode('/'$xri2);
    
$authority $authority[0];
    if (
$authority[0] == '(') {
        
// Cross-reference.
        // XXX: This is incorrect if someone nests cross-references so
        //   there is another close-paren in there.  Hopefully nobody
        //   does that before we have a real xriparse function.
        //   Hopefully nobody does that *ever*.
        
$root substr($authority0strpos($authority')') + 1);
    } else if (
in_array($authority[0], Auth_Yadis_getXRIAuthorities())) {
        
// Other XRI reference.
        
$root $authority[0];
    } else {
        
// IRI reference.
        
$_segments explode("!"$authority);
        
$segments = array();
        foreach (
$_segments as $s) {
            
$segments array_merge($segmentsexplode("*"$s));
        }
        
$root $segments[0];
    }

    return 
Auth_Yadis_XRI($root);
}

function 
Auth_Yadis_XRI($xri)
{
    if (!
Auth_Yadis_startswith($xri'xri://')) {
        
$xri 'xri://' $xri;
    }
    return 
$xri;
}

function 
Auth_Yadis_getCanonicalID($iname$xrds)
{
    
// Returns false or a canonical ID value.

    // Now nodes are in reverse order.
    
$xrd_list array_reverse($xrds->allXrdNodes);
    
$parser $xrds->parser;
    
$node $xrd_list[0];

    
$canonicalID_nodes $parser->evalXPath('xrd:CanonicalID'$node);

    if (!
$canonicalID_nodes) {
        return 
false;
    }

    
$canonicalID $canonicalID_nodes[0];
    
$canonicalID Auth_Yadis_XRI($parser->content($canonicalID));

    
$childID $canonicalID;

    for (
$i 1$i count($xrd_list); $i++) {
        
$xrd $xrd_list[$i];

        
$parent_sought substr($childID0strrpos($childID'!'));
        
$parentCID $parser->evalXPath('xrd:CanonicalID'$xrd);
        if (!
$parentCID) {
            return 
false;
        }
        
$parentCID Auth_Yadis_XRI($parser->content($parentCID[0]));

        if (
strcasecmp($parent_sought$parentCID)) {
            
// raise XRDSFraud.
            
return false;
        }

        
$childID $parent_sought;
    }

    
$root Auth_Yadis_rootAuthority($iname);
    if (!
Auth_Yadis_providerIsAuthoritative($root$childID)) {
        
// raise XRDSFraud.
        
return false;
    }

    return 
$canonicalID;
}



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.9614 ]--