403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Old Sites/Engineering/V1/iimec/wp-content/themes/annotum-base/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Old Sites/Engineering/V1/iimec/wp-content/themes/annotum-base/functions/capabilities.php
<?php

/**
 * Custom capabilities for workflow
 */ 
function anno_remove_roles_and_capabilities() {
	$wp_roles = new WP_Roles();

	$roles_to_modify = array(
		'administrator' => array(
			'edit_articles',
			'edit_article',
			'delete_article',
			'edit_others_articles',
			'publish_articles',
			'read_private_articles',
			'delete_others_articles',
			'delete_private_articles',
			'delete_published_articles',
			'edit_published_articles',	
			'read_article',
		),
		'editor' => array(
			'edit_articles',
			'edit_article',
			'edit_others_articles',
			'delete_article',
			'delete_others_articles',
			'read_article',
		),
		// Give contributors and authors this access so they can view articles on the backend. Contributors cannot actually save/edit the articles for various states.
		// Enforced by worflow capabilities.
		'contributor' => array(
			'edit_articles',
			'edit_article',
			'edit_others_articles',
			'delete_article',
			'read_article',
			'upload_files',
		),
		'author' => array(
			'edit_articles',
			'edit_article',
			'edit_others_articles',
			'delete_article',
			'read_article',
		),
	);
	
	foreach ($roles_to_modify as $role_name => $role_caps) {
		$role = get_role($role_name);
		if ($role) {
			foreach ($role_caps as $cap_name) {
				$role->add_cap($cap_name);
			}
		}
	}
}
add_action('admin_init', 'anno_remove_roles_and_capabilities');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit