403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/d2m/sofident_cz/wp-content/plugins/sitepress-multilingual-cms/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/d2m/sofident_cz/wp-content/plugins/sitepress-multilingual-cms/inc/functions-helpers.php
<?php
if ( ! function_exists( 'object_to_array' ) ) {
	function object_to_array( $obj ) {
		return json_decode( json_encode( $obj ), true );
	}
}

if ( ! function_exists( 'wpml_get_admin_url' ) ) {
	/**
	 * A more helpful version of `admin_url`
	 * Is not called it `wpml_admin_url` because there is already a class with the same name
	 *
	 * @param array $args
	 *
	 * @return string
	 */
	function wpml_get_admin_url( array $args = array() ) {
		if ( ! $args ) {
			return admin_url();
		}

		$default_args = array(
			'path'   => '',
			'scheme' => 'admin',
			'query'  => array(),
		);

		$args = array_merge( $default_args, $args );

		$admin_url = '';
		if ( $args['path'] || $args['scheme'] ) {
			$admin_url = admin_url( $args['path'], $args['scheme'] );
		}

		if ( $args['query'] ) {
			$admin_url_parsed = wp_parse_url( $admin_url );

			if ( is_string( $args['query'] ) ) {
				$admin_url_parsed['query'] = $args['query'];
			} elseif ( is_array( $args['query'] ) ) {
				$admin_url_parsed['query'] = http_build_query( $args['query'] );
			}

			$admin_url = http_build_url( $admin_url_parsed );
		}

		return $admin_url;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit