403Webshell
Server IP : 213.132.222.41  /  Your IP : 216.73.216.254
Web Server : Apache
System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64
User : thecovenant ( 10927)
PHP Version : 8.3.32
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/thecovenant.nl/httpdocs/wp-content/plugins/wp-duplicate-page/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/thecovenant.nl/httpdocs/wp-content/plugins/wp-duplicate-page/includes/Plugin.php
<?php
namespace NjtDuplicate;

defined( 'ABSPATH' ) || exit;
/**
 * Plugin activate/deactivate logic
 */
class Plugin {
	protected static $instance = null;

	public static function getInstance() {
		if ( null == self::$instance ) {
			self::$instance = new self();
		}

		return self::$instance;
	}

	private function __construct() {
	}

	/** Plugin activated hook */
	public static function activate() {
		// Get default roles
			$defaultRoles = array(
				3 => 'editor',
				8 => 'administrator',
			);

			// Cycle all roles and assign capability if its level >= duplicate_post_copy_user_level
			foreach ( $defaultRoles as $level => $name ) {
				$role = get_role( $name );
				if ( ! empty( $role ) ) {
					$role->add_cap( 'njt_duplicate_page' );
				}
			}
	}

	/** Plugin deactivate hook */
	public static function deactivate() {
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit