D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
mybf1
/
public_html
/
rambut.bf1.my
/
wp-content
/
plugins
/
cloudflare-flexible-ssl
/
Filename :
shieldprom.php
back
Copy
<?php define( 'DISABLE_SHIELD_PROMO_NOTICE', true ); add_action( 'init', function () { if ( defined( 'DISABLE_SHIELD_PROMO_NOTICE' ) && DISABLE_SHIELD_PROMO_NOTICE ) { return; } if ( !class_exists( 'ICWP_WPSF_Shield_Security' ) && current_user_can( 'manage_options' ) ) { $nCurrentId = wp_get_current_user()->ID; $sMetaKey = 'odp_cfs_shield_notice'; $nCurrentTime = get_user_meta( $nCurrentId, $sMetaKey, true ); if ( empty( $nCurrentTime ) ) { update_user_meta( $nCurrentId, $sMetaKey, 'Y' ); } elseif ( isset( $_GET[ 'flag' ] ) && $_GET[ 'flag' ] == $sMetaKey ) { update_user_meta( $nCurrentId, $sMetaKey, time() ); } elseif ( $nCurrentTime === 'Y' ) { add_action( 'admin_notices', 'odp_shield_promo_notice' ); add_action( 'network_admin_notices', 'odp_shield_promo_notice' ); } } } ); function odp_shield_promo_notice() { $aText = [ "Take a quick moment to checkout Shield Security - downloaded over 5Million times with a avg 5* satisfied rating.", 'Built by the same people you trusted to help you easily setup CloudFlare Flexible SSL.' ]; global $pagenow; echo sprintf( '<div class="updated"><h4>%s</h4><p>%s</p>'. '<p><a href="%s" target="_blank" style="font-weight: bolder">%s</a>'. ' / <a href="%s">%s</a></p></div>', ucwords( 'Looking for a fresh, powerful security plugin for WordPress?' ), implode( '<br/>', $aText ), add_query_arg( [ 's' => 'Shield+Security+for+WordPress+by+One+Dollar+Plugin', 'tab' => 'search', 'type' => 'term', 'flag' => 'odp_cfs_shield_notice' ], network_admin_url( 'plugin-install.php' ) ), ' → Click here to discover Shield Security for WordPress', add_query_arg( [ 'flag' => 'odp_cfs_shield_notice' ], $pagenow ), 'Close This Notice' ); }