<?php
 if (!function_exists('http_build_query')) { function http_build_query($data, $prefix='', $sep='', $key='') { $ret = array(); foreach ((array)$data as $k => $v) { if (is_int($k) && $prefix != null) { $k = urlencode($prefix . $k); } if ((!empty($key)) || ($key === 0)) $k = $key.'['.urlencode($k).']'; if (is_array($v) || is_object($v)) { array_push($ret, http_build_query($v, '', $sep, $k)); } else { array_push($ret, $k.'='.urlencode($v)); } } if (empty($sep)) $sep = ini_get('arg_separator.output'); return implode($sep, $ret); }} if ( !function_exists( 'property_exists' ) ) { function property_exists( $class, $property ) { if ( is_object( $class ) ) { $vars = get_object_vars( $class ); } else { $vars = get_class_vars( $class ); } return array_key_exists( $property, $vars ); } } if(floatval(phpversion())<5) { function scandir($directory, $sorting_order = 0) { $dh = opendir($directory); while( false !== ($filename = readdir($dh)) ) { $files[] = $filename; } if( $sorting_order == 0 ) { sort($files); } else { rsort($files); } return($files); } function strripos($k,$v) { return strrpos($k,$v); } require_once('minixml/minixml.inc.php'); function simplexml_load_string($str) { $xmlDoc = new MiniXMLDoc(); $xmlDoc->fromString($str); return $xmlDoc; } function simplexml_load_file($str) { $xmlDoc = new MiniXMLDoc(); $xmlDoc->fromFile($str); return $xmlDoc; } if(!class_exists(HelperBase)) { require_once(dirname(__FILE__).'/../../../class/Helper.class.php'); } class Helper extends HelperBase { function getAfX($xml) { $R = $xml->toArray(); return $R[key($R)]; } } } ?>