SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > > filebird > > includes


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins//filebird//includes

NameTypeSizeLast ModifiedActions
Admin Directory - -
Blocks Directory - -
Classes Directory - -
Controller Directory - -
Model Directory - -
Rest Directory - -
Support Directory - -
Utils Directory - -
Fallback.php File 846 bytes May 27 2024 10:21:44.
I18n.php File 22101 bytes August 04 2025 15:38:16.
Install.php File 1339 bytes April 10 2023 05:54:32.
Plugin.php File 1370 bytes May 27 2024 10:21:44.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins//filebird//includes/Plugin.php

<?php
namespace FileBird;

defined( 'ABSPATH' ) || exit;

use FileBird\Classes\Review;
use FileBird\Classes\Schedule as FilebirdSchedule;
use FileBird\Install;
use FileBird\Model\Folder as FolderModel;
use FileBird\Utils\Singleton;

/**
 * Plugin activate/deactivate logic
 */
class Plugin {
	use Singleton;

	public static $hasBackup = false;

	public function __construct() {
        self::prepareRun();
	}

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

	public static function runBackup() {
		$folders = FolderModel::exportAll();
		update_option( 'filebird_backup_' . date( 'Y_m_d_H_i_s' ), $folders, false );
		self::$hasBackup = true;
	}

	/** 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();
	}
}

SILENT KILLER Tool