!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/lampp/lib/php/doc/XML_Serializer/examples/   drwxr-xr-x
Free 13.58 GB of 61.93 GB (21.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     unserializeAnyXML.php (2.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP
/**
 * This example shows different methods how
 * XML_Unserializer can be used to create data structures
 * from XML documents.
 *
 * @author  Stephan Schmidt <schst@php.net>
 */
error_reporting(E_ALL);

// this is a simple XML document
$xml '<users>' .
       
'  <user handle="schst">Stephan Schmidt</user>' .
       
'  <user handle="mj">Martin Jansen</user>' .
       
'  <group name="qa">PEAR QA Team</group>' .
       
'  <foo id="test">This is handled by the default keyAttribute</foo>' .
       
'  <foo id="test2">Another foo tag</foo>' .
       
'</users>';

require_once 
'XML/Unserializer.php';

// complex structures are arrays, the key is the attribute 'handle' or 'name', if handle is not present
$options = array(
                 
XML_UNSERIALIZER_OPTION_COMPLEXTYPE => 'array',
                 
XML_UNSERIALIZER_OPTION_ATTRIBUTE_KEY => array(
                                                                  
'user'     => 'handle',
                                                                  
'group'    => 'name',
                                                                  
'#default' => 'id'
                                                                
)
                );

//  be careful to always use the ampersand in front of the new operator 
$unserializer = &new XML_Unserializer($options);

// userialize the document
$status $unserializer->unserialize($xmlfalse);    

if (
PEAR::isError($status)) {
    echo 
'Error: ' $status->getMessage();
} else {
    
$data $unserializer->getUnserializedData();
    echo 
'<pre>';
    
print_r($data);
    echo 
'</pre>';
}


// unserialize it again and change the complexType option
// but leave other options untouched
// now complex types will be an object, and the property name will be in the
// attribute 'handle'
$status $unserializer->unserialize($xmlfalse, array(XML_UNSERIALIZER_OPTION_COMPLEXTYPE => 'object'));

if (
PEAR::isError($status)) {
    echo 
'Error: ' $status->getMessage();
} else {
    
$data $unserializer->getUnserializedData();
    echo 
'<pre>';
    
print_r($data);
    echo 
'</pre>';
}

// unserialize it again and change the complexType option
// and reset all other options
// Now, there's no key so the tags are stored in an array
$status $unserializer->unserialize($xmlfalse, array(XML_UNSERIALIZER_OPTION_OVERRIDE_OPTIONS => trueXML_UNSERIALIZER_OPTION_COMPLEXTYPE => 'object'));    

if (
PEAR::isError($status)) {
    echo 
'Error: ' $status->getMessage();
} else {
    
$data $unserializer->getUnserializedData();
    echo 
'<pre>';
    
print_r($data);
    echo 
'</pre>';
}
?>

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