HEX
Server: nginx/1.24.0
System: Linux VM-8-5-opencloudos 6.6.47-12.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 24 16:15:42 CST 2024 x86_64
User: www (1000)
PHP: 8.0.26
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/aiwellbore.com/wp-content/plugins/restrict-content/legacy/includes/scripts.php
<?php
/**
 * Scripts and Styles
 *
 * @package    Restrict Content
 * @subpackage Scripts
 * @copyright  Copyright (c) 2017, Sandhills Development, LLC
 * @license    GPLv2
 */

/**
 * Registers and enqueues the form CSS file.
 *
 * @since 2.2
 */
function rc_register_plugin_styles() {

	wp_register_style( 'rcp-forms', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/css/rc-forms.css', array(), '20170828' );
	wp_register_script( 'rcp-register', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/js/rc-register.js', array( 'jquery' ), '20170828' );

	if ( ! is_singular() ) {
		return;
	}

	global $post;

	if ( has_shortcode( $post->post_content, 'login_form' ) || has_shortcode( $post->post_content, 'register_form' ) ) {
		wp_enqueue_style( 'rc-forms' );
		wp_enqueue_script( 'rc-register' );
		wp_localize_script(
			'rcp-register',
			'rc_register_options',
			array(
				'ajax_url' => admin_url( 'admin-ajax.php' ),
				'nonce' => wp_create_nonce( 'rcp-register-nonce' ),
				'strings' => array(
					'please_wait' => __( 'Please wait...', 'restrict-content' ),
					'register' => __( 'Register', 'restrict-content' ),
				),
			)
		);
	}
}
add_action( 'wp_enqueue_scripts', 'rc_register_plugin_styles' );


/**
 * Load admin styles
 */
function rc_admin_styles( $hook_suffix ) {

	// Only load admin CSS on Restrict Content Settings page
	if (
		'toplevel_page_restrict-content-settings' == $hook_suffix ||
		'restrict_page_rcp-why-go-pro' == $hook_suffix
	) {
		wp_enqueue_style( 'rcp-settings', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/css/rc-settings.css', array(), RC_PLUGIN_VERSION );
        wp_enqueue_script( 'rcp-admin-settings-functionality', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/js/rc-settings.js', array(), RC_PLUGIN_VERSION );
        wp_localize_script(
            'rcp-admin-settings-functionality',
            'rcp_admin_settings_options',
            array(
                'ajax_url' => admin_url( 'admin-ajax.php' ),
                'rc_process_legacy_nonce' => wp_create_nonce( 'rcp-settings-nonce' ),
	            'upgrade_redirect' => admin_url() . 'admin.php?page=rcp-settings',
            )
        );
	}

	if ( 'admin_page_restrict-content-welcome' == $hook_suffix || 'restrict_page_rcp-need-help' == $hook_suffix ) {
		wp_enqueue_style( 'rcp-settings', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/css/rc-settings.css', array(), RC_PLUGIN_VERSION );
		wp_enqueue_style( 'rcp-wp-overrides', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/css/rc-wp-overrides.css', array(), RC_PLUGIN_VERSION );
		wp_enqueue_script( 'rcp-admin-settings', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/js/rc-admin.js', array(), RC_PLUGIN_VERSION );
	}

	wp_enqueue_style('rcp-metabox', trailingslashit( plugins_url() ) . 'restrict-content/legacy/includes/assets/css/rc-metabox.css', array(), RC_PLUGIN_VERSION );


}
add_action( 'admin_enqueue_scripts', 'rc_admin_styles' );