File: /home/primrwxj/thepianobag.sidegigs.info/wp-content/plugins/affilibuilder/modules/settings.php
<?php
add_action('admin_menu', 'wcf_item_menu');
function wcf_item_menu() {
add_menu_page( __('AffiliBuilder', 'sc'), __('AffiliBuilder', 'sc'), 'edit_published_posts', 'wcf_config', 'wcf_config', plugins_url( '/images/logo_icon.png', __FILE__ ) );
add_submenu_page( 'wcf_config', __('Settings', 'sc'), __('Settings', 'sc'), 'edit_published_posts', 'wcf_settings', 'wcf_settings');
remove_submenu_page('wcf_config','wcf_config');
}
function wcf_config(){
$settings = get_option('wcf_settings');
$config = get_option('wqln_options');
set_time_limit( 0 );
?>
<style>
.tw-bs .form-horizontal .control-label{
width: 240px !important;
}
.tw-bs .form-horizontal .controls {
margin-left: 260px !important;
}
</style>
<div class="wrap tw-bs">
<h2><?php _e('Settings', 'sc'); ?></h2>
<script>
jQuery(document).ready(function($){
var form_submited = 0;
$('body').on('submit', '#quick_launch_shooter', function( e ){
$('#ajax_loader').removeClass('hide');
$('#quick_launch_shooter button[type="submit"]').attr('disabled', true);
jQuery('#main_fieldset').attr("readonly", true);
if( form_submited == 1 ){
}else{
e.preventDefault();
setTimeout( function(){
form_submited = 1;
var all_plugins = $('#plugins_list').val().split("\n");
$.each( all_plugins, function( index, value ){
var data = {
plugin_url : value,
action : 'process_plugins_action'
}
jQuery.ajax({url: "<?php echo admin_url( 'admin-ajax.php' );?>",
type: 'POST',
data: data,
async: false,
beforeSend: function(msg){
//jQuery('#main_fieldset').attr("disabled", true);
jQuery('#ajax_loader').show();
},
success: function(msg){
console.log( msg );
//console.log('2');
var obj = $.parseJSON( msg );
if( obj.result == 'success' ){
$('#plugin_install_result').append('<div class="alert alert-success">'+obj.message+'</div>');
}
if( obj.result == 'error' ){
$('#plugin_install_result').append('<div class="alert alert-warning">'+obj.message+'</div>');
}
} ,
error: function(msg) {
}
});
})
$('#quick_launch_shooter').submit()
},500 )
}
})
})
</script>
<?php if( wp_verify_nonce($_POST['_wpnonce']) ): ?>
<div id="message" class="updated" ><?php _e('Executed correctly', 'sc'); ?></div>
<?php
$tmp = get_option('wcf_options');
foreach( $_POST as $key=>$value ){
$wcf_options[$key] = $value;
}
update_option('wcf_options', $wcf_options );
// processing data
// permalink data
if( $_POST['perma'] == 'on' ){
update_option( 'permalink_structure', '/%postname%/' );
}
// site title
if( $_POST['site_title'] != '' ){
update_option( 'blogname', stripslashes( sanitize_text_field( $_POST['site_title'] ) ) );
}
//drop data
if( $_POST['def_post'] == 'on' ){
global $wpdb;
$ids_list = array();
$ids_list[] = 0;
if( count( $_POST['keyword_image_id'] > 1 ) ){
foreach( $_POST['keyword_image_id'] as $sing_val ){
if( $sing_val == '' ) continue;
$ids_list[] = $sing_val;
}
}
$wpdb->query("DELETE FROM `".$wpdb->prefix."posts` WHERE `ID` NOT IN ( ".implode(',', $ids_list)." ) ;");
$wpdb->query("TRUNCATE `".$wpdb->prefix."comments`;");
}
// adding pages
if( $_POST['about'] == 'on' ){
$my_post = array(
'post_title' => 'About',
'post_content' => '
<p>
Thank you for visiting '.get_option('home').'. We strive to make this the top resource online and provide quality information to all visitors.</p>
<p>
I sincerely hope you enjoy the website I have put together here and that you get great use out of it. Please visit often and help me spread the word!</p>
<p>
Take Care,
'.get_option('home').'</p>
',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'page'
);
wp_insert_post( $my_post );
}
if( $_POST['pp'] == 'on' ){
$my_post = array(
'post_title' => 'Privacy Policy',
'post_content' => '
<h3>Who we are</h3>
<p>Our website address is: '.get_option('home').'</p>
<h3>What personal data we collect and why we collect it</h3>
<h4>Comments</h4>
<p>When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.</p>
<p>An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.</p>
<h4>Media</h4>
<p>If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.</p>
<h4>Contact forms</h4>
<h4>Cookies</h4>
<p>If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.</p>
<p>If you have an account and you log in to this site, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.</p>
<p>When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed.</p>
<p>If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.</p>
<h4>Embedded content from other websites</h4>
<p>Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.</p>
<p>These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.</p>
<h4>Analytics</h4>
<h3>Who we share your data with</h3>
<h3>How long we retain your data</h3>
<p>If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.</p>
<p>For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.</p>
<h3>What rights you have over your data</h3>
<p>If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.</p>
</h3>Where we send your data</h3>
<p>Visitor comments may be checked through an automated spam detection service.</p>
<h3>Your contact information</h3>
<h3>Additional information</h3>
<h4>How we protect your data</h4>
<h4>What data breach procedures we have in place</h4>
<h4>What third parties we receive data from</h4>
<h4>What automated decision making and/or profiling we do with user data</h4>
<h4>Industry regulatory disclosure requirements</h4>
',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'page'
);
wp_insert_post( $my_post );
}
if( $_POST['cont'] == 'on' ){
$my_post = array(
'post_title' => 'Contact',
'post_content' => '<div>
If you have any questions, comments or suggestion about our website, please contact at '.get_option('admin_email').'</div>
',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'page'
);
wp_insert_post( $my_post );
}
// content pages
$arr = $_POST['keywords'] ;
for( $i=1; $i < count( $_POST['keyword'] ); $i++ ){
$single_word = $_POST['keyword'][$i];
$title2use = $_POST['title'][$i];
// video content
if( $_POST['rel_video'] == 'yes' ){
$video_code = wcf_get_related_video( $single_word ) ;
$video_code = '<iframe width="560" height="315" src="//www.youtube.com/embed/'.$video_code.'" frameborder="0" allowfullscreen></iframe>';
}else{
$video_code = '';
}
// getting file content
$remote_content = wp_remote_get( $_POST['keyword_file_url'][$i] );
if( !is_wp_error( $remote_content ) ){
$remote_content = $remote_content["body"];
}else{
$remote_content = '';
}
$spinned = wqln_api_get_spinned_text( $remote_content );
if( $spinned['success'] ){
$remote_content = $spinned['text'];
}else{
$spinner_error_msg = $spinned['msg'];
}
//ads block
if( $_POST['related_amazon_product'] == 'yes' ){
$ads_block = wcf_get_replated_products( $single_word );
}else{
$ads_block = '';
}
if( $_POST['content_element_order'] == 'vi_az_ar' ){
$content = $video_code.'<br/>'.$ads_block.'<br/>'.$remote_content;
}
if( $_POST['content_element_order'] == 'ar_az_vi' ){
$content = $remote_content.'<br/>'.$ads_block.'<br/>'.$video_code;
}
// custom ads
$content = '<div class="top_ads_front">'.$config['ads_block_before_content'].'</div>'.$content.'<div class="bottom_ads_front">'.$config['ads_block_after_content'].'</div>';
$my_post = array(
'post_title' => $title2use,
'post_content' => $content,
'post_status' => 'publish',
'post_author' => 1,
'post_type' => $_POST['post_type_']
);
// Insert the post into the database
$id = wp_insert_post( $my_post );
update_post_meta( $id, 'is_imported', '1' );
if( isset( $_POST['keyword_image_id'][$i] ) ){
set_post_thumbnail( $id, $_POST['keyword_image_id'][$i] );
update_post_meta( $id, '_thumbnail_id', $_POST['keyword_image_id'][$i] );
}
}
// plugins activation
/*
if( $_POST['yseo'] == 'on' ){
wqln_grab_plugin( 'wordpress-seo');
//run_activate_plugin( 'wordpress-seo/wp-seo.php' );
}
if( $_POST['lla'] == 'on' ){
wqln_grab_plugin( 'limit-login-attempts');
//run_activate_plugin( 'limit-login-attempts/limit-login-attempts.php' );
}
if( $_POST['cf7'] == 'on' ){
wqln_grab_plugin( 'contact-form-7');
//run_activate_plugin( 'contact-form-7/wp-contact-form-7.php' );
}
if( $_POST['wsc'] == 'on' ){
wqln_grab_plugin( 'wp-super-cache');
//run_activate_plugin( 'wp-super-cache/wp-cache.php' );
}
if( $_POST['bws'] == 'on' ){
wqln_grab_plugin( 'better-wp-security');
//run_activate_plugin( 'better-wp-security/better-wp-security.php' );
}
if( $_POST['pll'] == 'on' ){
wqln_grab_plugin( 'pretty-link');
//run_activate_plugin( 'pretty-link/pretty-link.php' );
}
if( $_POST['gcs'] == 'on' ){
wqln_grab_plugin( 'cookie-law-info');
//run_activate_plugin( 'pretty-link/pretty-link.php' );
}
*/
?>
<?php else: ?>
<?php if( $processed == 1 ): ?>
<div id="message" class="updated" ><?php _e('Data Imported', 'sc'); ?></div>
<?php endif; ?>
<?php //exit; ?>
<?php endif; ?>
<form class="form-horizontal" method="post" id="quick_launch_shooter" action="">
<?php wp_nonce_field();
$config = get_option('wcf_options');
if( $spinner_error_msg ){
echo '<div class="alert alert-error" >'.$spinner_error_msg.'</div>';
}
?>
<ul class="nav nav-tabs launch_nav">
<li class="active"><a href="tab_main">Main</a></li>
<li><a href="tab_pages">Pages to add</a></li>
<li><a href="tab_plugins">Plugins to install</a></li>
<li><a href="tab_content">Content Pages</a></li>
</ul>
<fieldset id="main_fieldset" >
<?php if( $config['license_code'] != 'user3947' && 1 == 2 ){ ?>
<div class="control-group">
<label class="control-label" for="input01">Licensing Code:</label>
<div class="controls">
<input type="text" class="input-xlarge" name="license_code">
</div>
</div>
<?php }else{ ?>
<input type="hidden" class="input-xlarge" name="license_code" value="<?php echo $config['license_code'];?>">
<div class="single_tab tab_main">
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Site title</label>
<div class="controls">
<label class="checkbox">
<input type="text" name="site_title" >
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Change Permalinks to %Postname%</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="perma" <?php if( $config['perma'] == 'on' ){ echo ' checked '; } ?> value="on">
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Delete Demo Posts, Pages and Comments</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="def_post" <?php if( $config['def_post'] == 'on' ){ echo ' checked '; } ?> value="on">
</label>
</div>
</div>
<div class="alert alert-danger">
<strong>Please note:</strong> If you are using this plugin on an existing website, it will clear out your current settings and content
</div>
</div>
<div class="single_tab tab_pages">
<div class="control-group">
<legend>Pages to Add</legend>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">About</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="about" <?php if( $config['about'] == 'on' ){ echo ' checked '; } ?> value="on">
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Privacy Policy</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="pp" <?php if( $config['pp'] == 'on' ){ echo ' checked '; } ?> value="on">
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Contact</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" name="cont" <?php if( $config['cont'] == 'on' ){ echo ' checked '; } ?> value="on">
</label>
</div>
</div>
</div>
<div class="single_tab tab_plugins">
<div class="control-group">
<legend>Plugins To Install</legend>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Plugins to Install</label>
<div class="controls">
<textarea name="plugins_list" class="w_100" id="plugins_list" ></textarea>
<br/>
<span class="help-block">Enter one plugin url per line. Note: All plugins need to have WP Repo links or <button type="button" class="btn btn-success" id="load_def_plugins">Load Recommended Plugins</button></span>
</div>
</div>
</div>
<div class="single_tab tab_content">
<div class="control-group">
<legend>Content Pages</legend>
</div>
<div class="control-group">
<label class="control-label" for="textarea">Enter Your Keywords</label>
<div class="controls">
<input type="button" class="btn btn-success add_line" value="Add Keyword" />
<br/><br/>
<div class="row_cliche hide">
<div class="single_keyword">
<input type="text" name="keyword[]" placeholder="Enter Keyword" />
<input type="text" name="title[]" placeholder="Enter Title" />
<input type="text" class="keyword_file_url" name="keyword_file_url[]" placeholder="File URL here" />
<input type="button" class="btn btn-success upload_file" value="Upload Content" />
<input type="hidden" class="keyword_image_id" value="<?php echo $config['keyword_image_id'][$cnt]; ?>" name="keyword_image_id[]" />
<input type="text" class="keyword_image_url" name="keyword_image_url[]" placeholder="Image URL here" />
<input type="button" class="btn btn-warning upload_image" value="Featured Image" />
<input type="button" class="btn btn-danger remove_line" value="Delete" />
</div>
</div>
<div class="kw_list">
<?php
if( count( $config['keyword'] ) > 0 ):
for( $cnt = 1; $cnt < count( $config['keyword'] ); $cnt++ ){
?>
<div class="single_keyword">
<input type="text" name="keyword[]" value="<?php echo $config['keyword'][$cnt]; ?>" placeholder="Enter Keyword" />
<input type="text" name="title[]" value="<?php echo $config['title'][$cnt]; ?>" placeholder="Enter Title" />
<input type="text" class="keyword_file_url" value="<?php echo $config['keyword_file_url'][$cnt]; ?>" name="keyword_file_url[]" placeholder="File URL here" />
<input type="button" class="btn btn-success upload_file" value="Upload Content" />
<input type="hidden" class="keyword_image_id" value="<?php echo $config['keyword_image_id'][$cnt]; ?>" name="keyword_image_id[]" />
<input type="text" class="keyword_image_url" value="<?php echo $config['keyword_image_url'][$cnt]; ?>" name="keyword_image_url[]" placeholder="Image URL here" />
<input type="button" class="btn btn-warning upload_image" value="Featured Image" />
<input type="button" class="btn btn-danger remove_line" value="Delete" />
</div>
<?php } ?>
<?php else: ?>
<div class="single_keyword">
<input type="text" name="keyword[]" value="<?php echo $config['keyword'][$cnt]; ?>" placeholder="Enter Keyword" />
<input type="text" name="title[]" value="<?php echo $config['title'][$cnt]; ?>" placeholder="Enter Title" />
<input type="text" class="keyword_file_url" value="" name="keyword_file_url[]" placeholder="File URL here" />
<input type="button" class="btn btn-success upload_file" value="Upload Content" />
<input type="hidden" class="keyword_image_id" value="" name="keyword_image_id[]" />
<input type="text" class="keyword_image_url" value="" name="keyword_image_url[]" placeholder="Image URL here" />
<input type="button" class="btn btn-warning upload_image" value="Featured Image" />
<input type="button" class="btn btn-danger remove_line" value="Delete" />
</div>
<?php endif; ?>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="select01">Post Type</label>
<div class="controls">
<select name="post_type_">
<option value="post" <?php if( $config['post_type_'] == 'no' ) echo ' selected '; ?> >Post</option>
<option value="page" <?php if( $config['post_type_'] == 'yes' ) echo ' selected '; ?> >Page</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="select01">Add relevant Youtube video</label>
<div class="controls">
<select name="rel_video">
<option value="no" <?php if( $config['rel_video'] == 'no' ) echo ' selected '; ?> >No</option>
<option value="yes" <?php if( $config['rel_video'] == 'yes' ) echo ' selected '; ?> >Yes</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="select01">Ads System</label>
<div class="controls">
<select name="ads_system_select">
<option value="" >None</option>
<option value="system_amazon" <?php if( $config['ads_system_select'] == 'system_amazon' ) echo ' selected '; ?> >Amazon</option>
<option value="system_ebay" <?php if( $config['ads_system_select'] == 'system_ebay' ) echo ' selected '; ?> >eBay</option>
<option value="system_cj" <?php if( $config['ads_system_select'] == 'system_cj' ) echo ' selected '; ?> >CJ</option>
<option value="system_wm" <?php if( $config['ads_system_select'] == 'system_wm' ) echo ' selected '; ?> >WalMart</option>
<option value="system_ae" <?php if( $config['ads_system_select'] == 'system_ae' ) echo ' selected '; ?> >AliExpress</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="select01">Add relevant Product</label>
<div class="controls">
<select name="related_amazon_product">
<option value="no" <?php if( $config['related_amazon_product'] == 'no' ) echo ' selected '; ?> >No</option>
<option value="yes" <?php if( $config['related_amazon_product'] == 'yes' ) echo ' selected '; ?> >Yes</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="select01">Content Elements Order</label>
<div class="controls">
<select name="content_element_order">
<option value="vi_az_ar" <?php if( $config['content_element_order'] == 'vi_az_ar' ) echo ' selected '; ?> >Video - Ads - Article</option>
<option value="ar_az_vi" <?php if( $config['content_element_order'] == 'ar_az_vi' ) echo ' selected '; ?> >Article - Ads - Video</option>
</select>
</div>
</div>
<?php } ?>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Process <img src="<?php echo plugins_url( '/images/ajax-loader.gif', __FILE__ ); ?>" id="ajax_loader" class="hide" /></button>
<div id="plugin_install_result"></div>
</div>
</fieldset>
</form>
</div>
<?php
}
function wcf_settings(){
?>
<div class="wrap tw-bs4">
<h2><?php _e('Settings', 'sc'); ?></h2>
<hr/>
<?php
if( wp_verify_nonce( $_POST['settings_nonce'], 'settings_action' ) ): ?>
<div id="message" class="updated" ><?php _e('Settings saved successfully', 'sc'); ?></div>
<?php
foreach( $_POST as $key=>$value ){
$wqln_options[$key] = $value;
}
update_option('wqln_options', $wqln_options );
?>
<?php else: ?>
<?php endif; ?>
<div class="ads_block_settings">
<?php echo @file_get_contents("http://www.imarketersclub.com/?wpadhub=2"); ?>
</div>
<form class="form-horizontal" method="post" action="">
<?php echo wp_nonce_field('settings_action','settings_nonce', true, false);
$config = get_option('wqln_options');
?>
<div id="accordion">
<div class="card">
<div class="card-header">
<a class="collapsed card-link" data-toggle="collapse" href="#collapse66">
Youtube Settings
</a>
</div>
<div id="collapse66" class="collapse" data-parent="#accordion">
<div class="card-body">
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Youtube Developer Key</label>
<div class="controls">
<label class="">
<input type="text" class="input-xlarge" name="youtube_api_key" value="<?php echo $config['youtube_api_key']; ?>">
</label>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save Settings</button>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<a class="collapsed card-link" data-toggle="collapse" href="#collapse667">
Pixabay Settings
</a>
</div>
<div id="collapse667" class="collapse" data-parent="#accordion">
<div class="card-body">
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Developer Key</label>
<div class="controls">
<label class="">
<input type="text" class="input-xlarge" name="pb_api_key" value="<?php echo $config['pb_api_key']; ?>">
</label>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save Settings</button>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<a class="collapsed card-link" data-toggle="collapse" href="#collapse3">
Content Spinning
</a>
</div>
<div id="collapse3" class="collapse" data-parent="#accordion">
<div class="card-body">
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Use Spinner</label>
<div class="controls">
<label class="">
<select id="cntr" name="use_spinner">
<option value="no" <?php if( $config['use_spinner'] == 'no' ) echo ' selected '; ?> >Dont Use Spinner</option>
<option value="bs" <?php if( $config['use_spinner'] == 'bs' ) echo ' selected '; ?> >BestSpinner</option>
<option value="sr" <?php if( $config['use_spinner'] == 'sr' ) echo ' selected '; ?> >Spin Rewriter</option>
</select>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">BestSpinner Login</label>
<div class="controls">
<label class="">
<input type="text" class="input-xlarge" name="bs_login" value="<?php echo $config['bs_login']; ?>">
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">BestSpinner Password</label>
<div class="controls">
<label class="">
<input type="text" class="input-xlarge" name="bs_pass" value="<?php echo $config['bs_pass']; ?>">
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Spin Rewriter Login</label>
<div class="controls">
<label class="">
<input type="text" class="input-xlarge" name="sr_login" value="<?php echo $config['sr_login']; ?>">
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">Spin Rewriter API Key</label>
<div class="controls">
<label class="">
<input type="text" class="input-xlarge" name="sr_pass" value="<?php echo $config['sr_pass']; ?>">
</label>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save Settings</button>
<div class="subsign">
<p>Get Your Best Spinner Account <a href="http://www.wpmarketertools.com/bestspinner" target="_blank">Here</a></p>
<p>Get Your Spin Rewriter Account <a href="http://www.wpmarketertools.com/spinrewriter" target="_blank">Here</a></p>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<a class="collapsed card-link" data-toggle="collapse" href="#collapse4">
Custom Ads
</a>
</div>
<div id="collapse4" class="collapse" data-parent="#accordion">
<div class="control-group">
<label class="control-label" for="textarea">Show Ads On</label>
<div class="controls">
<select class="input-xlarge w_100" name="show_ads_on[]" multiple >
<option value="post" <?php if( in_array( 'post', (array)$config['show_ads_on'] ) ) echo ' selected '; ?> >Post
<option value="page" <?php if( in_array( 'page', (array)$config['show_ads_on'] ) ) echo ' selected '; ?> >Page
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="textarea">Ads Before Content</label>
<div class="controls">
<textarea class="input-xlarge w_100" name="ads_block_before_content" rows="5"><?php echo stripslashes( $config['ads_block_before_content'] ); ?></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="textarea">Ads After Content</label>
<div class="controls">
<textarea class="input-xlarge w_100" name="ads_block_after_content" rows="5"><?php echo stripslashes( $config['ads_block_after_content'] ); ?></textarea>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save Settings</button>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>