芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/rambut.bf1.my/wp-content/plugins/cloudflare-flexible-ssl/shieldprom.php
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( '
%s
%s
'. '
%s
'. ' /
%s
', ucwords( 'Looking for a fresh, powerful security plugin for WordPress?' ), implode( '
', $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' ); }