plugin->client_id != 'PATCHSTACK_CLIENT_ID' || get_option( 'patchstack_clientid', false ) != false); $free = get_option( 'patchstack_license_free', 0 ) == 1; $planClass = get_option( 'patchstack_subscription_class', ''); $managed = get_option( 'patchstack_managed', false ); $site_id = (int) get_option( 'patchstack_site_id', 0 ); $app_url = $site_id != 0 ? 'https://app.patchstack.com/app/' . $site_id . '/"' : 'https://app.patchstack.com/apps/overview'; if ( isset( $_GET['ps_activated'] ) && $status ) { echo ""; } // Generate the link to turn on settings management. $url = '?page=' . esc_attr( $page ) . '&tab=license&action=enable_settings&patchstack_settings_nonce=' . wp_create_nonce( 'patchstack_settings_nonce' ); $url_enabled = '?page=patchstack' . (!$free ? '&tab=firewall' : ''); if (!$show_settings) { $secretToken = get_option( 'patchstack_activation_secret', '' ); $secretTime = get_option( 'patchstack_activation_time', '' ); if (!empty($secretToken)) { echo ''; } ?>

Checking sync status

= 1 ) { echo '

This plugin is only a connector. Add this website to the Patchstack dashboard within ' . $mins . ' minutes to initiate automatic sync.

'; } else { echo '

This plugin is only a connector. Add this website to the Patchstack dashboard to sync your unique API key.

'; } ?>

Log in to dashboard

This plugin is only a connector. to access vulnerability data, protection modules and remote settings.

Sync status is_connected()) { echo 'Connected'; } else { echo 'Disconnected'; } ?>
is_protected() && empty($planClass) ? 'style="display: none;"' : ''; ?>> Protection enabled
is_protected() || $planClass > 0 || $managed ? 'style="display: none;"' : ''; ?>> Protection disabled Activate for $5 / mo
>
To use this plugin, login and add it to the App dashboard and sync using the API key provided there.

'; } ?>
The plugin is connected and synchronized.

'; } ?>
Attempting to auto-activate the plugin, this will take a moment...

'; } ?>

= 1 ) { ?> Manage the Patchstack plugin settings through WordPress.