<script type="text/javascript" src="<?php echo $this->cbnetpo_incpath;?>tooltip.js"></script>
<link href="<?php echo $this->cbnetpo_incpath;?>tooltip.css" rel="stylesheet" type="text/css">
<script><!--//
function cbnetpoShowHide(Div,Img) {
	var divCtrl = document.getElementById(Div);
	if ( Img != '' ) var theImg = document.getElementById(Img);
	if ( divCtrl.style == "" || divCtrl.style.display == "none" ) {
		divCtrl.style.display = "block";
		 if ( Img != '' ) theImg.src = '<?php echo $this->cbnetpo_incpath;?>images/arr_green2.gif';
	} else if ( divCtrl.style != "" || divCtrl.style.display == "block" ) {
		divCtrl.style.display = "none";
		 if ( Img != '' ) theImg.src = '<?php echo $this->cbnetpo_incpath;?>images/arr_green1.gif';
	}
}//--></script>
<div class="wrap">
 <?php $this->cbnetpoHeader(); ?>
 <h3><?php _e('URIs to Ping', 'cbnetpo'); ?></h3>
 <p>The following services will automatically be pinged when you publish new posts or drafts.  
 <strong>Not</strong> when you publish future posts or edit previously published posts, as WordPress does by default.</p>
 <p><strong>NB:</strong> This list is synchronized with the <a href="options-writing.php" target="_blank">original update services list</a>.</p>
<p>Visit to <a href="https://itspankajha.wordpress.com/portfolio/" target="_blank">WordPress Ping Optimizer</a> plugin official home page for know about the list of ping service you can use or any FAQ</p>
<?php include_once(plugin_dir_path(__FILE__).'about.php'); ?>
 <form method="post">
 <p><?php _e('Separate multiple service URIs with line breaks:', 'cbnetpo'); ?><br />
 <textarea name="cbnetpo[uris]" cols="60" rows="10"><?php echo $this->cbnetpo_ping_sites;?></textarea></p>
 <p><input type="checkbox" name="cbnetpo[ping]" id="ping_checkbox" value="1" <?php echo $ping_enable_chk;?> /> Enable pinging</p>
 <p>
 <input type="checkbox" name="cbnetpo[limit_ping]" id="limit_ping" value="1" <?php echo $limit_ping_chk;?> onclick="cbnetpoShowHide('limit_ping_dv','')" /> Limit excessive pinging in short time
 <span id="limit_ping_dv" style="display:<?php echo $limit_ping_display;?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ping at most <input type="text" name="cbnetpo[limit_number]" value="<?php echo $this->cbnetpo_options['limit_number'];?>" style="width:25px" maxlength="5" /> time(s) within 
 <input type="text" name="cbnetpo[limit_time]" value="<?php echo $this->cbnetpo_options['limit_time'];?>" style="width:25px" maxlength="5" /> minute(s)</span>
 </p>
 <p>
 <input type="submit" name="cbnetpo[save]" value="<?php _e('Save Settings', 'cbnetpo'); ?>" class="button" />
 <input type="submit" name="cbnetpo[pingnow]" value="<?php _e('Ping Now', 'cbnetpo'); ?>" class="button" onclick="return confirm('Are you sure you want to ping these services now? Pinging too often could get you banned for spamming.');" />
 </p>
 </form>
 <h2>WordPress ping Optimizer Needs Your Support</h2> 
It is hard to continue development and support for this free plugin without contributions from users like you. If you enjoy using WordPress ping Optimizer and find it useful, please consider <a href="https://itspankajha.wordpress.com/donation/" target="_blank"><span style="color:blue;font-weight:bold">making a small donation</span></a>. Your donation will help encourage and support the plugin's continued development and better user support. Remember some part of our donation will go for charity would spread lots of smiles.
	
 <?php if ( cbnetpo_LOG == true ) { ?>
 <h3><?php _e('Ping Log', 'cbnetpo'); ?></h3>
 <?php 
 list($pinglog,$exists,$pinglogrecords) = $this->cbnetpoGetLogData();
 
 if($exists){?><p><a href="?page=<?php echo $this->cbnetpo_path;?>&d=yes" onclick="return confirm('All ping log data will be deleted. Are you sure?')" style="color:#FF0000;font-weight:bold"><img src="<?php echo $this->cbnetpo_incpath;?>images/delete.gif" border="0" align="absmiddle"> Clear Log (<?php echo $pinglogrecords; ?> Records)</a></p><?php }?>
 <?php } ?>
 <p><strong><?php _e('Following are the lastest actions performed by the plugin:', 'cbnetpo'); ?></strong>
 <?php 
 echo $pinglog;
 ?>
 </p>
 <?php $this->cbnetpoFooter(); ?>
</div>