| Server IP : 219.234.31.115 / Your IP : 216.73.216.60 Web Server : Apache System : Linux ebs-140924 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64 User : vndaystarftp ( 67432) PHP Version : 7.3.33 Disable Function : link,symlink,passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server,pcntl_fork,pcntl_rfork MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/wwwroot/vndaystarftp/wwwroot/wp-content/plugins/filebird-pro/ |
Upload File : |
<?php
/**
* Plugin Name: FileBird
* Plugin URI: https://ninjateam.org/wordpress-media-library-folders/
* Description: Organize thousands of WordPress media files into folders/ categories at ease.
* Version: 4.7.2
* Author: Ninja Team
* Author URI: https://ninjateam.org
* Text Domain: filebird
* Domain Path: /i18n/languages/
*
* @package FileBirdPlugin
*/
namespace FileBird;
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'NJFB_PREFIX' ) ) {
define( 'NJFB_PREFIX', 'filebird' );
}
if ( ! defined( 'NJFB_VERSION' ) ) {
define( 'NJFB_VERSION', '4.7.2' );
}
if ( ! defined( 'NJFB_PLUGIN_FILE' ) ) {
define( 'NJFB_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'NJFB_PLUGIN_URL' ) ) {
define( 'NJFB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'NJFB_PLUGIN_PATH' ) ) {
define( 'NJFB_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'NJFB_PLUGIN_BASE_NAME' ) ) {
define( 'NJFB_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
}
if ( ! defined( 'NJFB_REST_URL' ) ) {
define( 'NJFB_REST_URL', 'filebird/v1' );
}
if ( ! defined( 'NJFB_REST_PUBLIC_URL' ) ) {
define( 'NJFB_REST_PUBLIC_URL', 'filebird/public/v1' );
}
if ( ! defined( 'NJFB_UPLOAD_DIR' ) ) {
define( 'NJFB_UPLOAD_DIR', 'filebird-uploads' );
}
spl_autoload_register(
function ( $class ) {
$prefix = __NAMESPACE__; // project-specific namespace prefix
$base_dir = __DIR__ . '/includes'; // base directory for the namespace prefix
$len = strlen( $prefix );
if ( strncmp( $prefix, $class, $len ) !== 0 ) { // does the class use the namespace prefix?
return; // no, move to the next registered autoloader
}
$relative_class_name = substr( $class, $len );
// replace the namespace prefix with the base directory, replace namespace
// separators with directory separators in the relative class name, append
// with .php
$file = $base_dir . str_replace( '\\', '/', $relative_class_name ) . '.php';
if ( file_exists( $file ) ) {
require $file;
}
}
);
function init() {
Plugin::getInstance();
Plugin::activate();
I18n::loadPluginTextdomain();
Classes\ACF::getInstance();
Classes\Convert::getInstance();
Classes\PageBuilders::getInstance();
Classes\Feedback::getInstance();
Classes\Review::getInstance();
Classes\DocumentGallery::getInstance();
Classes\TabActive::getInstance();
Page\Settings::getInstance();
Controller\Folder::getInstance();
Controller\FolderUser::getInstance();
Controller\CompatibleWpml::getInstance();
Controller\CompatiblePolylang::getInstance();
Controller\Api::getInstance();
}
add_action( 'plugins_loaded', 'FileBird\\init' );
register_activation_hook( __FILE__, array( 'FileBird\\Plugin', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'FileBird\\Plugin', 'deactivate' ) );
if ( function_exists( 'register_block_type' ) ) {
require plugin_dir_path( __FILE__ ) . 'blocks/filebird-gallery/src/init.php';
}