[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.127.131: ~ $
<?PHP
/**
 * This is just a basic example that shows
 * how objects can be serialized so they can
 * be fully restored later.
 *
 * @author Stephan Schmidt <schst@php.net>
 */

/**
 * Example class that implements __sleep()
 *
 * @package    XML_Serializer
 * @subpackage Examples
 */
class MyClass
{
    var $foo = 'This is foo.';
    var $bar = 'This is bar.';
    
    function __sleep()
    {
        return array('foo');
    }
}

error_reporting(E_ALL);

/**
 * Load XML_Serializer
 */
require_once 'XML/Serializer.php';


// this is just to get a nested object
$pearError = PEAR::raiseError('This is just an error object',123);

$options = array(
                    XML_SERIALIZER_OPTION_INDENT      => '    ',
                    XML_SERIALIZER_OPTION_LINEBREAKS  => "\n",
                    XML_SERIALIZER_OPTION_DEFAULT_TAG => 'unnamedItem',
                    XML_SERIALIZER_OPTION_TYPEHINTS   => true
                );

$foo = new stdClass();
$foo->value = "My value";
$foo->error = $pearError;
$foo->xml   = "cool";

$foo->obj    = new MyClass();
$foo->arr   = array();
$foo->zero  = 0;


$serializer = &new XML_Serializer($options);

$result = $serializer->serialize($foo);

if( $result === true ) {
    $xml = $serializer->getSerializedData();
}

echo '<pre>';
echo htmlspecialchars($xml);
echo '</pre>';
?>

Filemanager

Name Type Size Permission Actions
Serializer_Bug7112.php File 724 B 0644
example.xml File 82 B 0644
serializeAndEncode.php File 1.42 KB 0644
serializeAndReturn.php File 609 B 0644
serializeCData.php File 838 B 0644
serializeIndexedArray.php File 2.49 KB 0644
serializeIndexedArrayWithContext.php File 1.01 KB 0644
serializeNullProperties.php File 1.34 KB 0644
serializeObject.php File 1.29 KB 0644
serializeRDF.php File 3.02 KB 0644
serializeSelectiveAttributes.php File 1.6 KB 0644
serializeWithAttributes.php File 1.16 KB 0644
serializeWithAttributes2.php File 1.33 KB 0644
serializeWithComment.php File 974 B 0644
serializeWithDtd.php File 925 B 0644
serializeWithIndentedAttributes.php File 1.43 KB 0644
serializeWithNamespace.php File 1.05 KB 0644
serializeWithTagMap.php File 2.7 KB 0644
unserializeAnyXML.php File 2.55 KB 0644
unserializeClassNames.php File 1.19 KB 0644
unserializeEncoded.php File 949 B 0644
unserializeEnum.php File 1.16 KB 0644
unserializeObject.php File 1.44 KB 0644
unserializeRDF.php File 2.08 KB 0644
unserializeWhitespace.php File 1.09 KB 0644
unserializeWithAttributes.php File 796 B 0644
unserializeWithTagMap.php File 1.62 KB 0644
unserializeWithTypeGuessing.php File 950 B 0644