[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.188.233.69: ~ $
<?php
/**
 * Licensing and Management module.
 *
 * @since 4.18.0
 *
 * @package LearnDash
 */

defined( 'ABSPATH' ) || exit;

const HUB_VERSION    = '1.3.2';
const HUB_DB_VERSION = '1.0';
const HUB_SLUG       = 'learndash-hub/learndash-hub.php';
define( 'HUB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
if ( ! defined( 'LEARNDASH_UPDATES_ENABLED' ) ) {
	$enable = false;
	if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
		$action = $_GET['action'] ?? '';
		if ( 'learndash_setup_wizard_verify_license' === $action ) {
			$enable = true;
		}
	}

	define( 'LEARNDASH_UPDATES_ENABLED', $enable );
}
// autoload.
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/configs.php';
require_once __DIR__ . '/src/functions.php';

$boot = new \LearnDash\Hub\Boot();
add_action( 'init', array( $boot, 'start' ) );
add_action( 'delete_user', array( $boot, 'disallow_user' ) );
add_action( 'set_user_role', array( $boot, 'update_access_list_after_role_update' ), 10, 2 );


add_action(
	'plugins_loaded',
	function () use ( $boot ) {
		require_once __DIR__ . '/src/controller/class-licensing-settings-page.php';

		if ( ! $boot->is_user_allowed() || ! $boot->is_signed_on() ) {
			return;
		}
		require_once __DIR__ . '/src/controller/class-licensing-settings-section.php';
	}
);

/**
 * LearnDash Hub Activate/Install function.
 *
 * @since 4.18.0
 * @deprecated 4.18.0 -- This function was never used.
 *
 * @param bool|null $network_wide Whether this is a network-wide installation. Defaults to null.
 *
 * @return void
 */
function learndash_hub_install( $network_wide = null ) {
	_deprecated_function( __METHOD__, '4.18.0' );
}

Filemanager

Name Type Size Permission Actions
assets Folder 0755
framework Folder 0755
src Folder 0755
vendor Folder 0755
configs.php File 273 B 0644
install.php File 2.29 KB 0644
learndash-hub.php File 1.61 KB 0644