HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/plugins/cbxwpbookmark/cbxwpbookmark.php
<?php
	/**
	 * The plugin bootstrap file
	 *
	 * This file is read by WordPress to generate the plugin information in the plugin
	 * admin area. This file also includes all of the dependencies used by the plugin,
	 * registers the activation and deactivation functions, and defines a function
	 * that starts the plugin.
	 *
	 * @link              codeboxr.com
	 * @since             1.0.0
	 * @package           Cbxwpbookmark
	 *
	 * @wordpress-plugin
	 * Plugin Name:       CBX Bookmark & Favorite
	 * Plugin URI:        https://codeboxr.com/product/cbx-wordpress-bookmark
	 * Description:       Youtube like bookmark for WordPress, create your own private or public list of favorite posts
	 * Version:           1.5.2
	 * Author:            Codeboxr Team
	 * Author URI:        https://codeboxr.com
	 * License:           GPL-2.0+
	 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
	 * Text Domain:       cbxwpbookmark
	 * Domain Path:       /languages
	 */

	// If this file is called directly, abort.
	if ( ! defined( 'WPINC' ) ) {
		die;
	}


	defined( 'CBXWPBOOKMARK_PLUGIN_NAME' ) or define( 'CBXWPBOOKMARK_PLUGIN_NAME', 'cbxwpbookmark' );
	defined( 'CBXWPBOOKMARK_PLUGIN_VERSION' ) or define( 'CBXWPBOOKMARK_PLUGIN_VERSION', '1.5.2' );
	defined( 'CBXWPBOOKMARK_BASE_NAME' ) or define( 'CBXWPBOOKMARK_BASE_NAME', plugin_basename( __FILE__ ) );
	defined( 'CBXWPBOOKMARK_ROOT_PATH' ) or define( 'CBXWPBOOKMARK_ROOT_PATH', plugin_dir_path( __FILE__ ) );
	defined( 'CBXWPBOOKMARK_ROOT_URL' ) or define( 'CBXWPBOOKMARK_ROOT_URL', plugin_dir_url( __FILE__ ) );


	/**
	 * The code that runs during plugin activation.
	 * This action is documented in includes/class-cbxwpbookmark-activator.php
	 */
	function activate_cbxwpbookmark() {

		require_once plugin_dir_path( __FILE__ ) . 'includes/class-cbxwpbookmark-activator.php';
		CBXWPBookmark_Activator::activate(); //db table creates
		CBXWPBookmark_Activator::cbxbookmark_create_pages(); //create the shortcode page

	}

	/**
	 * The code that runs during plugin deactivation.
	 * This action is documented in includes/class-cbxwpbookmark-deactivator.php
	 */
	function deactivate_cbxwpbookmark() {
		require_once plugin_dir_path( __FILE__ ) . 'includes/class-cbxwpbookmark-deactivator.php';
		CBXWPBookmark_Deactivator::deactivate();
	}

	/**
	 * The code that runs during plugin uninstall.
	 * This action is documented in includes/class-cbxwpbookmark-uninstall.php
	 */
	function uninstall_cbxwpbookmark() {
		require_once plugin_dir_path( __FILE__ ) . 'includes/class-cbxwpbookmark-uninstall.php';
		CBXWPBookmark_Uninstall::uninstall();
	}

	register_activation_hook( __FILE__, 'activate_cbxwpbookmark' );
	register_deactivation_hook( __FILE__, 'deactivate_cbxwpbookmark' );
	register_uninstall_hook( __FILE__, 'uninstall_cbxwpbookmark' );

	/**
	 * 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-cbxwpbookmark.php';
	require plugin_dir_path( __FILE__ ) . 'includes/class-cbxwpbookmark-helper.php';
	require plugin_dir_path( __FILE__ ) . 'includes/cbxwpbookmark-functions.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_cbxwpbookmark() {

		$plugin = new Cbxwpbookmark();
		$plugin->run();

	}

	run_cbxwpbookmark();