HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/plugins/facebook-auto-publish/admin/admin-notices.php
<?php
if( !defined('ABSPATH') ){ exit();}
function wp_fbap_admin_notice()
{
	add_thickbox();
	$sharelink_text_array_fb = array
						(
						"I use WP2Social Auto Publish wordpress plugin from @xyzscripts and you should too.",
						"WP2Social Auto Publish wordpress plugin from @xyzscripts is awesome",
						"Thanks @xyzscripts for developing such a wonderful Facebook auto publishing wordpress plugin",
						"I was looking for a Facebook publishing plugin and I found this. Thanks @xyzscripts",
						"Its very easy to use WP2Social Auto Publish wordpress plugin from @xyzscripts",
						"I installed WP2Social Auto Publish from @xyzscripts,it works flawlessly",
						"WP2Social Auto Publish wordpress plugin that i use works terrific",
						"I am using WP2Social Auto Publish wordpress plugin from @xyzscripts and I like it",
						"The WP2Social Auto Publish plugin from @xyzscripts is simple and works fine",
						"I've been using this Facebook plugin for a while now and it is really good",
						"WP2Social Auto Publish wordpress plugin is a fantastic plugin",
						"WP2Social Auto Publish wordpress plugin is easy to use and works great. Thank you!",
						"Good and flexible  WP2Social Auto Publish plugin especially for beginners",
						"The best Facebook Auto publish wordpress plugin I have used ! THANKS @xyzscripts",
						);
$sharelink_text_fb = array_rand($sharelink_text_array_fb, 1);
$sharelink_text_fb = $sharelink_text_array_fb[$sharelink_text_fb];
$xyz_fbap_link = admin_url('admin.php?page=facebook-auto-publish-settings&fbap_blink=en');
$xyz_fbap_link = wp_nonce_url($xyz_fbap_link,'fbap-blk');
$xyz_fbap_notice = admin_url('admin.php?page=facebook-auto-publish-settings&fbap_notice=hide');
$xyz_fbap_notice = wp_nonce_url($xyz_fbap_notice,'fbap-shw');
	echo '
	<script type="text/javascript">
			function xyz_fbap_shareon_tckbox(){
			tb_show("Share on","#TB_inline?width=500&amp;height=75&amp;inlineId=show_share_icons_fb&class=thickbox");
		}
	</script>
	<div id="fbap_notice_td" class="error" style="color: #666666;margin-left: 2px; padding: 5px;line-height:16px;">
	<p>Thank you for using <a href="https://wordpress.org/plugins/facebook-auto-publish/" target="_blank"> WP2Social Auto Publish </a> plugin from <a href="https://xyzscripts.com/" target="_blank">xyzscripts.com</a>. Would you consider supporting us with the continued development of the plugin using any of the below methods?</p>
	<p>
	<a href="https://wordpress.org/support/plugin/facebook-auto-publish/reviews" class="button xyz_rate_btn" target="_blank">Rate it 5★\'s on wordpress</a>';
	if(get_option('xyz_credit_link')=="0")
		echo '<a href="'.$xyz_fbap_link.'" class="button xyz_backlink_btn xyz_blink">Enable Backlink</a>';
	
	echo '<a class="button xyz_share_btn" onclick=xyz_fbap_shareon_tckbox();>Share on</a>
		<a href="https://xyzscripts.com/donate/5" class="button xyz_donate_btn" target="_blank">Donate</a>
	
	<a href="'.$xyz_fbap_notice.'" class="button xyz_show_btn">Don\'t Show This Again</a>
	</p>

	<div id="show_share_icons_fb" style="display: none;">
	<a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="http://www.facebook.com/sharer/sharer.php?u=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/" target="_blank">Facebook</a>
	<a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://Twitter.com/share?url=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/&text='.$sharelink_text_fb.'" target="_blank">Twitter</a>
	<a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://www.linkedin.com/shareArticle?mini=true&url=https://xyzscripts.com/wordpress-plugins/Facebook-auto-publish/" target="_blank">LinkedIn</a>
	</div>
	</div>';
}
$fbap_installed_date = get_option('fbap_installed_date');
if ($fbap_installed_date=="") {
	$fbap_installed_date = time();
}

if($fbap_installed_date < ( time() - (20*24*60*60) ))
{
	if (get_option('xyz_fbap_dnt_shw_notice') != "hide")
	{
		add_action('admin_notices', 'wp_fbap_admin_notice');
	}
}
?>