Wp-Insert - Version 2.0.3

Version Description

Download this release

Release Info

Developer namith.jawahar
Plugin Icon 128x128 Wp-Insert
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

includes/adwidgets/admin-page.php CHANGED
@@ -42,31 +42,29 @@ function wp_insert_adwidgets_content($post, $args) {
42
  $id = $args['id'];
43
  $name = $args['args']['name'].'['.$location.']';
44
 
45
- if(!$data) {
46
- $data = array();
47
- }
48
 
49
  $controls = array();
50
- $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data[$location]['status']);
51
- $controls['ad_code_1'] = wp_insert_get_control('textarea', false, $name.'[ad_code_1]', $id.'-ad_code_1', $data[$location]['ad_code_1'], 'Ad Code (Primary Network):');
52
- $controls['ad_code_2'] = wp_insert_get_control('textarea', false, $name.'[ad_code_2]', $id.'-ad_code_2', $data[$location]['ad_code_2'], 'Ad Code (Secondary Network):');
53
- $controls['ad_code_3'] = wp_insert_get_control('textarea', false, $name.'[ad_code_3]', $id.'-ad_code_3', $data[$location]['ad_code_3'], 'Ad Code (Tertiary Network):');
54
 
55
- $countries = wp_insert_get_countries();
56
- $controls['country_1'] = wp_insert_get_control('popup', false, $name.'[country_1]', $id.'-country_1', $data[$location]['country_1'], 'Geo Targets', '', array('type' => 'countries'));
57
- $controls['country_code_1'] = wp_insert_get_control('textarea', false, $name.'[country_code_1]', $id.'-country_code_1', $data[$location]['country_code_1'], 'Ad Code', '', null, 'input widefat');
58
 
59
- $controls['rules_exclude_home'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_home]', $id.'-rules_exclude_home', $data[$location]['rules_exclude_home'], '', '', null, '', false);
60
- $controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data[$location]['rules_exclude_archives'], '', '', null, '', false);
61
- $controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data[$location]['rules_exclude_categories'], '', '', null, '', false);
62
- $controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data[$location]['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
63
- $controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data[$location]['rules_exclude_search'], '', '', null, '', false);
64
- $controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data[$location]['rules_exclude_page'], '', '', null, '', false);
65
- $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data[$location]['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
66
- $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data[$location]['rules_exclude_post'], '', '', null, '', false);
67
- $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data[$location]['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
68
 
69
- $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data[$location]['styles'], 'Styles:');
70
 
71
  echo $controls['status']['html'];
72
 
42
  $id = $args['id'];
43
  $name = $args['args']['name'].'['.$location.']';
44
 
45
+ if(!isset($data[$location])) { $data[$location] = array(); }
46
+ $data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
 
47
 
48
  $controls = array();
49
+ $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
50
+ $controls['ad_code_1'] = wp_insert_get_control('textarea', false, $name.'[ad_code_1]', $id.'-ad_code_1', $data['ad_code_1'], 'Ad Code (Primary Network):');
51
+ $controls['ad_code_2'] = wp_insert_get_control('textarea', false, $name.'[ad_code_2]', $id.'-ad_code_2', $data['ad_code_2'], 'Ad Code (Secondary Network):');
52
+ $controls['ad_code_3'] = wp_insert_get_control('textarea', false, $name.'[ad_code_3]', $id.'-ad_code_3', $data['ad_code_3'], 'Ad Code (Tertiary Network):');
53
 
54
+ $controls['country_1'] = wp_insert_get_control('popup', false, $name.'[country_1]', $id.'-country_1', $data['country_1'], 'Geo Targets', '', array('type' => 'countries'));
55
+ $controls['country_code_1'] = wp_insert_get_control('textarea', false, $name.'[country_code_1]', $id.'-country_code_1', $data['country_code_1'], 'Ad Code', '', null, 'input widefat');
 
56
 
57
+ $controls['rules_exclude_home'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_home]', $id.'-rules_exclude_home', $data['rules_exclude_home'], '', '', null, '', false);
58
+ $controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
59
+ $controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
60
+ $controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
61
+ $controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
62
+ $controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
63
+ $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
64
+ $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
65
+ $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
66
 
67
+ $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
68
 
69
  echo $controls['status']['html'];
70
 
includes/common/common.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  require_once(dirname(__FILE__).'/activate-upgrade.php');
3
  require_once(dirname(__FILE__).'/status.php');
4
  require_once(dirname(__FILE__).'/countries.php');
1
  <?php
2
+ require_once(dirname(__FILE__).'/sanitize.php');
3
  require_once(dirname(__FILE__).'/activate-upgrade.php');
4
  require_once(dirname(__FILE__).'/status.php');
5
  require_once(dirname(__FILE__).'/countries.php');
includes/common/controls.php CHANGED
@@ -114,16 +114,23 @@ function wp_insert_get_vtabs($id, $args) {
114
  }
115
 
116
  function wp_insert_get_table($args) {
 
117
  $output = '<table'.(($args['id'] != '')?' id="'.$args['id'].'"':'').(($args['class'] != '')?' class="'.$args['class'].'"':'').(($args['style'] != '')?' style="'.$args['style'].'"':'').'>';
 
118
  foreach($args['rows'] as $row) {
119
- $output .= '<tr'.(($row['id'] != '')?' id="'.$row['id'].'"':'').(($row['class'] != '')?' class="'.$row['class'].'"':'').(($row['style'] != '')?' style="'.$row['style'].'"':'').'>';
120
- foreach($row['cells'] as $cell) {
121
- if($cell['type'] == '') { $cell['type'] = 'td'; }
122
- $output .= '<'.$cell['type'].(($cell['colspan'] != '')?' colspan="'.$cell['colspan'].'"':'').(($cell['id'] != '')?' id="'.$cell['id'].'"':'').(($cell['class'] != '')?' class="'.$cell['class'].'"':'').(($cell['style'] != '')?' style="'.$cell['style'].'"':'').'>';
123
- $output .= $cell['content'];
124
- $output .= '</'.$cell['type'].'>';
 
 
 
 
 
 
125
  }
126
- $output .= '</tr>';
127
  }
128
  $output .= '</table>';
129
  return $output;
114
  }
115
 
116
  function wp_insert_get_table($args) {
117
+ $args = wp_insert_sanitize_array($args, array('id', 'class', 'style', 'rows'));
118
  $output = '<table'.(($args['id'] != '')?' id="'.$args['id'].'"':'').(($args['class'] != '')?' class="'.$args['class'].'"':'').(($args['style'] != '')?' style="'.$args['style'].'"':'').'>';
119
+ if(isset($args['rows']) && is_array($args['rows'])) {
120
  foreach($args['rows'] as $row) {
121
+ $row = wp_insert_sanitize_array($row, array('id', 'class', 'style', 'cells'));
122
+ $output .= '<tr'.(($row['id'] != '')?' id="'.$row['id'].'"':'').(($row['class'] != '')?' class="'.$row['class'].'"':'').(($row['style'] != '')?' style="'.$row['style'].'"':'').'>';
123
+ if(isset($row['cells']) && is_array($row['cells'])) {
124
+ foreach($row['cells'] as $cell) {
125
+ $cell = wp_insert_sanitize_array($cell, array('type', 'colspan', 'id', 'class', 'style', 'content'));
126
+ if($cell['type'] == '') { $cell['type'] = 'td'; }
127
+ $output .= '<'.$cell['type'].(($cell['colspan'] != '')?' colspan="'.$cell['colspan'].'"':'').(($cell['id'] != '')?' id="'.$cell['id'].'"':'').(($cell['class'] != '')?' class="'.$cell['class'].'"':'').(($cell['style'] != '')?' style="'.$cell['style'].'"':'').'>';
128
+ $output .= $cell['content'];
129
+ $output .= '</'.$cell['type'].'>';
130
+ }
131
+ }
132
+ $output .= '</tr>';
133
  }
 
134
  }
135
  $output .= '</table>';
136
  return $output;
includes/common/geoip/GeoIP.dat CHANGED
Binary file
includes/common/images/adsense.gif ADDED
Binary file
includes/common/images/chitika.gif ADDED
Binary file
includes/common/images/clicksor.gif ADDED
Binary file
includes/common/sanitize.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function wp_insert_sanitize_array($masterArray, $parameters) {
3
+ if(!is_array($masterArray)) {
4
+ $masterArray = array();
5
+ }
6
+ if(isset($masterArray) && isset($parameters) && is_array($parameters)) {
7
+ foreach($parameters as $parameter) {
8
+ if(!isset($masterArray[$parameter])) {
9
+ $masterArray[$parameter] = '';
10
+ }
11
+ }
12
+ }
13
+ return $masterArray;
14
+ }
15
+ ?>
includes/common/status.php CHANGED
@@ -15,8 +15,8 @@ function wp_insert_track_post_instance($content) {
15
  add_action('wp', 'wp_insert_track_ad_instance', 1);
16
  function wp_insert_track_ad_instance($content) {
17
  global $wpInsertAdInstance;
18
- $networkCount = intval(get_option('wp_insert_multiple_network_status'));
19
- $wpInsertAdInstance = rand(1, $networkCount);
20
  }
21
 
22
  function wp_insert_get_page_details() {
@@ -37,13 +37,20 @@ function wp_insert_get_page_details() {
37
  } else if(is_page()) {
38
  $page_details['type'] = 'PAGE';
39
  } else if(is_single()) {
40
- $page_details['type'] = 'POST';
 
 
 
 
41
  }
42
 
43
  return $page_details;
44
  }
45
 
46
  function wp_insert_get_ad_status($rules) {
 
 
 
47
  if(!$rules['status']) {
48
  return false;
49
  }
@@ -94,6 +101,9 @@ function wp_insert_get_ad_status($rules) {
94
  return false;
95
  }
96
  break;
 
 
 
97
  }
98
  return true;
99
  }
15
  add_action('wp', 'wp_insert_track_ad_instance', 1);
16
  function wp_insert_track_ad_instance($content) {
17
  global $wpInsertAdInstance;
18
+ $networkCount = get_option('wp_insert_multiple_network_status');
19
+ $wpInsertAdInstance = rand(1, floatval($networkCount));
20
  }
21
 
22
  function wp_insert_get_page_details() {
37
  } else if(is_page()) {
38
  $page_details['type'] = 'PAGE';
39
  } else if(is_single()) {
40
+ if(is_singular('post')) {
41
+ $page_details['type'] = 'POST';
42
+ } else {
43
+ $page_details['type'] = 'CUSTOM';
44
+ }
45
  }
46
 
47
  return $page_details;
48
  }
49
 
50
  function wp_insert_get_ad_status($rules) {
51
+ if(!isset($rules)) { return false; }
52
+ $rules = wp_insert_sanitize_array($rules, array('status', 'rules_exclude_home', 'rules_home_instances', 'rules_exclude_archives', 'rules_archives_instances', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_categories_instances', 'rules_exclude_search', 'rules_search_instances', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions'));
53
+
54
  if(!$rules['status']) {
55
  return false;
56
  }
101
  return false;
102
  }
103
  break;
104
+ case 'CUSTOM':
105
+ return true;
106
+ break;
107
  }
108
  return true;
109
  }
includes/common/support.php CHANGED
@@ -159,6 +159,6 @@ function wp_insert_showcase_content() {
159
  }
160
 
161
  function wp_insert_matching_blog_content() {
162
- echo '<a href="http://smartlogix.co.in/matching-blog-for-100-offer/"><img src="'.WP_INSERT_URL.'/includes/common/images/blog_for_$100_ad.png" style="margin-top: 5px;" /></a><br /><small style="display: block; text-align: center;">This offer is only available for a limited period to Wp-Insert users and our existing customers.</small>';
163
  }
164
  ?>
159
  }
160
 
161
  function wp_insert_matching_blog_content() {
162
+ echo '<a href="http://smartlogix.co.in/matching-blog-for-100-offer/"><img src="'.WP_INSERT_URL.'/includes/common/images/blog_for_$100_ad.png" style="margin-top: 5px;" /></a><br /><small style="display: block; text-align: center;">This offer is only available for a limited period to Wp-Insert users and our existing customers.</small><small style="display: block; text-align: center;">If you face any difficulties placing the order, drop us an email : <a href="mailto:support@smartlogix.co.in">support@smartlogix.co.in</a></small>';
163
  }
164
  ?>
includes/inpostads/admin-page.php CHANGED
@@ -27,38 +27,41 @@ function wp_insert_inpostads_content($post, $args) {
27
  $id = $args['id'];
28
  $name = $args['args']['name'].'['.$location.']';
29
 
30
- if(!$data) {
31
- $data = array();
 
 
 
32
  }
33
 
34
  $controls = array();
35
- $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data[$location]['status']);
36
- $controls['ad_code_1'] = wp_insert_get_control('textarea', false, $name.'[ad_code_1]', $id.'-ad_code_1', $data[$location]['ad_code_1'], 'Ad Code (Primary Network):');
37
- $controls['ad_code_2'] = wp_insert_get_control('textarea', false, $name.'[ad_code_2]', $id.'-ad_code_2', $data[$location]['ad_code_2'], 'Ad Code (Secondary Network):');
38
- $controls['ad_code_3'] = wp_insert_get_control('textarea', false, $name.'[ad_code_3]', $id.'-ad_code_3', $data[$location]['ad_code_3'], 'Ad Code (Tertiary Network):');
39
 
40
- $controls['country_1'] = wp_insert_get_control('popup', false, $name.'[country_1]', $id.'-country_1', $data[$location]['country_1'], 'Geo Targets', '', array('type' => 'countries'));
41
- $controls['country_code_1'] = wp_insert_get_control('textarea', false, $name.'[country_code_1]', $id.'-country_code_1', $data[$location]['country_code_1'], 'Ad Code', '', null, 'input widefat');
42
 
43
- $controls['rules_exclude_home'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_home]', $id.'-rules_exclude_home', $data[$location]['rules_exclude_home'], '', '', null, '', false);
44
- $controls['rules_home_instances'] = wp_insert_get_control('popup', false, $name.'[rules_home_instances]', $id.'-rules_home_instances', $data[$location]['rules_home_instances'], '', '', array('type' => 'instances'), '', false);
45
- $controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data[$location]['rules_exclude_archives'], '', '', null, '', false);
46
- $controls['rules_archives_instances'] = wp_insert_get_control('popup', false, $name.'[rules_archives_instances]', $id.'-rules_archives_instances', $data[$location]['rules_archives_instances'], '', '', array('type' => 'instances'), '', false);
47
- $controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data[$location]['rules_exclude_categories'], '', '', null, '', false);
48
- $controls['rules_categories_instances'] = wp_insert_get_control('popup', false, $name.'[rules_categories_instances]', $id.'-rules_categories_instances', $data[$location]['rules_categories_instances'], '', '', array('type' => 'instances'), '', false);
49
- $controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data[$location]['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
50
- $controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data[$location]['rules_exclude_search'], '', '', null, '', false);
51
- $controls['rules_search_instances'] = wp_insert_get_control('popup', false, $name.'[rules_search_instances]', $id.'-rules_search_instances', $data[$location]['rules_search_instances'], '', '', array('type' => 'instances'), '', false);
52
- $controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data[$location]['rules_exclude_page'], '', '', null, '', false);
53
- $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data[$location]['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
54
- $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data[$location]['rules_exclude_post'], '', '', null, '', false);
55
- $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data[$location]['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
56
 
57
- $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data[$location]['styles'], 'Styles:');
58
 
59
  if($location == 'middle') {
60
- $controls['minimum_character_count'] = wp_insert_get_control('text', false, $name.'[minimum_character_count]', $id.'-minimum_character_count', $data[$location]['minimum_character_count'], 'Minimum Character Count', 'Show the ad only if the Content meets the minimum character count. If this parameter is set to 0 (or empty) minimum character count check will be deactivated.', null, 'input widefat');
61
- $controls['paragraph_buffer_count'] = wp_insert_get_control('text', false, $name.'[paragraph_buffer_count]', $id.'-paragraph_buffer_count', $data[$location]['paragraph_buffer_count'], 'Paragraph Buffer Count', 'Shows the ad after X number of Paragraphs. If this parameter is set to 0 (or empty) the ad will appear in the middle of the content.', null, 'input widefat');
62
  }
63
 
64
  echo $controls['status']['html'];
27
  $id = $args['id'];
28
  $name = $args['args']['name'].'['.$location.']';
29
 
30
+ if(!isset($data[$location])) { $data[$location] = array(); }
31
+ if($location == 'middle') {
32
+ $data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles', 'minimum_character_count', 'paragraph_buffer_count'));
33
+ } else {
34
+ $data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
35
  }
36
 
37
  $controls = array();
38
+ $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
39
+ $controls['ad_code_1'] = wp_insert_get_control('textarea', false, $name.'[ad_code_1]', $id.'-ad_code_1', $data['ad_code_1'], 'Ad Code (Primary Network):');
40
+ $controls['ad_code_2'] = wp_insert_get_control('textarea', false, $name.'[ad_code_2]', $id.'-ad_code_2', $data['ad_code_2'], 'Ad Code (Secondary Network):');
41
+ $controls['ad_code_3'] = wp_insert_get_control('textarea', false, $name.'[ad_code_3]', $id.'-ad_code_3', $data['ad_code_3'], 'Ad Code (Tertiary Network):');
42
 
43
+ $controls['country_1'] = wp_insert_get_control('popup', false, $name.'[country_1]', $id.'-country_1', $data['country_1'], 'Geo Targets', '', array('type' => 'countries'));
44
+ $controls['country_code_1'] = wp_insert_get_control('textarea', false, $name.'[country_code_1]', $id.'-country_code_1', $data['country_code_1'], 'Ad Code', '', null, 'input widefat');
45
 
46
+ $controls['rules_exclude_home'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_home]', $id.'-rules_exclude_home', $data['rules_exclude_home'], '', '', null, '', false);
47
+ $controls['rules_home_instances'] = wp_insert_get_control('popup', false, $name.'[rules_home_instances]', $id.'-rules_home_instances', $data['rules_home_instances'], '', '', array('type' => 'instances'), '', false);
48
+ $controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
49
+ $controls['rules_archives_instances'] = wp_insert_get_control('popup', false, $name.'[rules_archives_instances]', $id.'-rules_archives_instances', $data['rules_archives_instances'], '', '', array('type' => 'instances'), '', false);
50
+ $controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
51
+ $controls['rules_categories_instances'] = wp_insert_get_control('popup', false, $name.'[rules_categories_instances]', $id.'-rules_categories_instances', $data['rules_categories_instances'], '', '', array('type' => 'instances'), '', false);
52
+ $controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
53
+ $controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
54
+ $controls['rules_search_instances'] = wp_insert_get_control('popup', false, $name.'[rules_search_instances]', $id.'-rules_search_instances', $data['rules_search_instances'], '', '', array('type' => 'instances'), '', false);
55
+ $controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
56
+ $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
57
+ $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
58
+ $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
59
 
60
+ $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
61
 
62
  if($location == 'middle') {
63
+ $controls['minimum_character_count'] = wp_insert_get_control('text', false, $name.'[minimum_character_count]', $id.'-minimum_character_count', $data['minimum_character_count'], 'Minimum Character Count', 'Show the ad only if the Content meets the minimum character count. If this parameter is set to 0 (or empty) minimum character count check will be deactivated.', null, 'input widefat');
64
+ $controls['paragraph_buffer_count'] = wp_insert_get_control('text', false, $name.'[paragraph_buffer_count]', $id.'-paragraph_buffer_count', $data['paragraph_buffer_count'], 'Paragraph Buffer Count', 'Shows the ad after X number of Paragraphs. If this parameter is set to 0 (or empty) the ad will appear in the middle of the content.', null, 'input widefat');
65
  }
66
 
67
  echo $controls['status']['html'];
includes/legal-pages/admin-page.php CHANGED
@@ -25,13 +25,12 @@ function wp_insert_legal_content($post, $args) {
25
  $id = $args['id'];
26
  $name = $args['args']['name'].'['.$location.']';
27
 
28
- if(!$data) {
29
- $data = array();
30
- }
31
 
32
  $controls = array();
33
- $controls['content'] = wp_insert_get_control('nicedit', false, $name.'[content]', $id.'-content', $data[$location]['content'], '', 'Leave the field empty to reset to the default content', null);
34
- $controls['pages'] = wp_insert_get_control('popup', false, $name.'[pages]', $id.'-pages', $data[$location]['pages'], 'Assign Page(s):', '', array('type' => 'pages'));
35
 
36
  $tabData = array(
37
  array(
25
  $id = $args['id'];
26
  $name = $args['args']['name'].'['.$location.']';
27
 
28
+ if(!isset($data[$location])) { $data[$location] = array(); }
29
+ $data = wp_insert_sanitize_array($data[$location], array('content', 'pages'));
 
30
 
31
  $controls = array();
32
+ $controls['content'] = wp_insert_get_control('nicedit', false, $name.'[content]', $id.'-content', $data['content'], '', 'Leave the field empty to reset to the default content', null);
33
+ $controls['pages'] = wp_insert_get_control('popup', false, $name.'[pages]', $id.'-pages', $data['pages'], 'Assign Page(s):', '', array('type' => 'pages'));
34
 
35
  $tabData = array(
36
  array(
includes/multiple-adnetwork/activate-upgrade.php CHANGED
@@ -4,7 +4,7 @@ function wp_insert_multiple_network_activate_upgrade() {
4
  if(!get_option('wp_insert_multiple_network_status')) {
5
  $value = '1';
6
  $value = wp_insert_multiple_network_upgrade_from_1x($value);
7
- update_option('wp_insert_multiple_network_status', $values);
8
  }
9
  }
10
 
4
  if(!get_option('wp_insert_multiple_network_status')) {
5
  $value = '1';
6
  $value = wp_insert_multiple_network_upgrade_from_1x($value);
7
+ update_option('wp_insert_multiple_network_status', $value);
8
  }
9
  }
10
 
includes/multiple-adnetwork/meta-box.php CHANGED
@@ -9,7 +9,9 @@ function wp_insert_multiple_network_status_content($post, $args) {
9
  array('value' => '2', 'text' => 'Primary and Secondary Ad Networks'),
10
  array('value' => '3', 'text' => 'All Ad Networks'),
11
  );
12
- $info = "Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network. At a time only ads from one network (Randomly Choosen) will be shown. This feature can also be used to randomly display different sized Ads from the same network. Please note that this option is global and applied to Template Ads, In Post Ads as well as Ad Widgets.";
13
- echo wp_insert_get_control('select', true, $name.'[status]', $id.'-status', $data, 'Select the Ad Network Setup that best suits you :', $info, $networkOptions);
 
 
14
  }
15
  ?>
9
  array('value' => '2', 'text' => 'Primary and Secondary Ad Networks'),
10
  array('value' => '3', 'text' => 'All Ad Networks'),
11
  );
12
+ echo wp_insert_get_control('select', true, $name.'[status]', $id.'-status', $data, 'Select the Ad Network Setup that best suits you :', '', $networkOptions);
13
+ echo '<small>Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network. At a time only ads from one network (Randomly Choosen) will be shown. This feature can also be used to randomly display different sized Ads from the same network. Please note that this option is global and applied to Template Ads, In Post Ads as well as Ad Widgets.</small>';
14
+ echo '<p><b>Recommended Primary Ad Network</b><br /><a href="http://google.com/adsense"><img src="'.WP_INSERT_URL.'/includes/common/images/adsense.gif" /></a></p>';
15
+ echo '<p><b>Recommended Secondary Ad Networks</b><br /><a href="https://chitika.com/publishers/apply.php?refid=smartlogix"><img src="'.WP_INSERT_URL.'/includes/common/images/chitika.gif" /></a>&nbsp;&nbsp;<a href="http://signup.clicksor.com/pub/index.php?ref=285056"><img src="'.WP_INSERT_URL.'/includes/common/images/clicksor.gif" /></a></p>';
16
  }
17
  ?>
includes/syntax-highlighting/admin-page.php CHANGED
@@ -23,12 +23,11 @@ function wp_insert_syntax_highlighting_content($post, $args) {
23
  $id = $args['id'];
24
  $name = $args['args']['name'].'['.$location.']';
25
 
26
- if(!$data) {
27
- $data = array();
28
- }
29
 
30
  $controls = array();
31
- $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data[$location]['status'], '', 'Syntax Highlighting support using Editarea 0.8.2 by <a target="_blank" href="http://www.cdolivet.com/index.php?page=editArea">Christophe Dolivet</a>');
32
 
33
  echo $controls['status']['html'];
34
  echo wp_insert_get_script_tag($controls);
23
  $id = $args['id'];
24
  $name = $args['args']['name'].'['.$location.']';
25
 
26
+ if(!isset($data[$location])) { $data[$location] = array(); }
27
+ $data = wp_insert_sanitize_array($data[$location], array('status'));
 
28
 
29
  $controls = array();
30
+ $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status'], '', 'Syntax Highlighting support using Editarea 0.8.2 by <a target="_blank" href="http://www.cdolivet.com/index.php?page=editArea">Christophe Dolivet</a>');
31
 
32
  echo $controls['status']['html'];
33
  echo wp_insert_get_script_tag($controls);
includes/templateads/admin-page.php CHANGED
@@ -42,31 +42,29 @@ function wp_insert_templateads_content($post, $args) {
42
  $id = $args['id'];
43
  $name = $args['args']['name'].'['.$location.']';
44
 
45
- if(!$data) {
46
- $data = array();
47
- }
48
 
49
  $controls = array();
50
- $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data[$location]['status']);
51
- $controls['ad_code_1'] = wp_insert_get_control('textarea', false, $name.'[ad_code_1]', $id.'-ad_code_1', $data[$location]['ad_code_1'], 'Ad Code (Primary Network):');
52
- $controls['ad_code_2'] = wp_insert_get_control('textarea', false, $name.'[ad_code_2]', $id.'-ad_code_2', $data[$location]['ad_code_2'], 'Ad Code (Secondary Network):');
53
- $controls['ad_code_3'] = wp_insert_get_control('textarea', false, $name.'[ad_code_3]', $id.'-ad_code_3', $data[$location]['ad_code_3'], 'Ad Code (Tertiary Network):');
54
 
55
- $countries = wp_insert_get_countries();
56
- $controls['country_1'] = wp_insert_get_control('popup', false, $name.'[country_1]', $id.'-country_1', $data[$location]['country_1'], 'Geo Targets', '', array('type' => 'countries'));
57
- $controls['country_code_1'] = wp_insert_get_control('textarea', false, $name.'[country_code_1]', $id.'-country_code_1', $data[$location]['country_code_1'], 'Ad Code', '', null, 'input widefat');
58
 
59
- $controls['rules_exclude_home'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_home]', $id.'-rules_exclude_home', $data[$location]['rules_exclude_home'], '', '', null, '', false);
60
- $controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data[$location]['rules_exclude_archives'], '', '', null, '', false);
61
- $controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data[$location]['rules_exclude_categories'], '', '', null, '', false);
62
- $controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data[$location]['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
63
- $controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data[$location]['rules_exclude_search'], '', '', null, '', false);
64
- $controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data[$location]['rules_exclude_page'], '', '', null, '', false);
65
- $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data[$location]['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
66
- $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data[$location]['rules_exclude_post'], '', '', null, '', false);
67
- $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data[$location]['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
68
 
69
- $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data[$location]['styles'], 'Styles:');
70
 
71
  echo $controls['status']['html'];
72
 
42
  $id = $args['id'];
43
  $name = $args['args']['name'].'['.$location.']';
44
 
45
+ if(!isset($data[$location])) { $data[$location] = array(); }
46
+ $data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
 
47
 
48
  $controls = array();
49
+ $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
50
+ $controls['ad_code_1'] = wp_insert_get_control('textarea', false, $name.'[ad_code_1]', $id.'-ad_code_1', $data['ad_code_1'], 'Ad Code (Primary Network):');
51
+ $controls['ad_code_2'] = wp_insert_get_control('textarea', false, $name.'[ad_code_2]', $id.'-ad_code_2', $data['ad_code_2'], 'Ad Code (Secondary Network):');
52
+ $controls['ad_code_3'] = wp_insert_get_control('textarea', false, $name.'[ad_code_3]', $id.'-ad_code_3', $data['ad_code_3'], 'Ad Code (Tertiary Network):');
53
 
54
+ $controls['country_1'] = wp_insert_get_control('popup', false, $name.'[country_1]', $id.'-country_1', $data['country_1'], 'Geo Targets', '', array('type' => 'countries'));
55
+ $controls['country_code_1'] = wp_insert_get_control('textarea', false, $name.'[country_code_1]', $id.'-country_code_1', $data['country_code_1'], 'Ad Code', '', null, 'input widefat');
 
56
 
57
+ $controls['rules_exclude_home'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_home]', $id.'-rules_exclude_home', $data['rules_exclude_home'], '', '', null, '', false);
58
+ $controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
59
+ $controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
60
+ $controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
61
+ $controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
62
+ $controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
63
+ $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
64
+ $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
65
+ $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
66
 
67
+ $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
68
 
69
  echo $controls['status']['html'];
70
 
includes/tracking-codes/admin-page.php CHANGED
@@ -23,18 +23,17 @@ function wp_insert_tracking_codes_content($post, $args) {
23
  $data = $args['args']['data'];
24
  $id = $args['id'];
25
  $name = $args['args']['name'].'['.$location.']';
26
-
27
- if(!$data) {
28
- $data = array();
29
- }
30
 
31
  $controls = array();
32
- $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data[$location]['status']);
33
 
34
  if($location == 'analytics') {
35
- $controls['code'] = wp_insert_get_control('text', false, $name.'[code]', $id.'-code', $data[$location]['code'], 'Google Analytics Tracker ID:', 'Your Google Analytics Tracker ID (XX-XXXXX-X)');
36
  } else {
37
- $controls['code'] = wp_insert_get_control('textarea', false, $name.'[code]', $id.'-code', $data[$location]['code'], 'Code:');
38
  }
39
 
40
  echo $controls['status']['html'];
23
  $data = $args['args']['data'];
24
  $id = $args['id'];
25
  $name = $args['args']['name'].'['.$location.']';
26
+
27
+ if(!isset($data[$location])) { $data[$location] = array(); }
28
+ $data = wp_insert_sanitize_array($data[$location], array('status', 'code'));
 
29
 
30
  $controls = array();
31
+ $controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
32
 
33
  if($location == 'analytics') {
34
+ $controls['code'] = wp_insert_get_control('text', false, $name.'[code]', $id.'-code', $data['code'], 'Google Analytics Tracker ID:', 'Your Google Analytics Tracker ID (XX-XXXXX-X)');
35
  } else {
36
+ $controls['code'] = wp_insert_get_control('textarea', false, $name.'[code]', $id.'-code', $data['code'], 'Code:');
37
  }
38
 
39
  echo $controls['status']['html'];
includes/tracking-codes/codes.php CHANGED
@@ -2,26 +2,29 @@
2
  add_action('wp_head', 'wp_insert_tracking_codes_wp_head');
3
  function wp_insert_tracking_codes_wp_head() {
4
  $options = get_option('wp_insert_tracking_codes_options');
5
- if($options['header']['status']) {
6
- echo $options['header']['code'];
 
7
  }
8
  }
9
 
10
  add_action('wp_footer', 'wp_insert_tracking_codes_wp_footer');
11
  function wp_insert_tracking_codes_wp_footer() {
12
  $options = get_option('wp_insert_tracking_codes_options');
13
- if($options['analytics']['status'] && ($options['analytics']['code'] != '')) {
 
14
  echo '<script type="text/javascript">';
15
  echo 'var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");';
16
  echo 'document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));';
17
  echo '</script>';
18
  echo '<script type="text/javascript">';
19
- echo 'var pageTracker = _gat._getTracker("'.$options['analytics']['code'].'");';
20
  echo 'pageTracker._trackPageview();';
21
  echo '</script>';
22
  }
23
- if($options['footer']['status']) {
24
- echo $options['footer']['code'];
 
25
  }
26
  }
27
  ?>
2
  add_action('wp_head', 'wp_insert_tracking_codes_wp_head');
3
  function wp_insert_tracking_codes_wp_head() {
4
  $options = get_option('wp_insert_tracking_codes_options');
5
+ $header = wp_insert_sanitize_array($options['header'], array('status', 'code'));
6
+ if($header['status']) {
7
+ echo $header['code'];
8
  }
9
  }
10
 
11
  add_action('wp_footer', 'wp_insert_tracking_codes_wp_footer');
12
  function wp_insert_tracking_codes_wp_footer() {
13
  $options = get_option('wp_insert_tracking_codes_options');
14
+ $analytics = wp_insert_sanitize_array($options['analytics'], array('status', 'code'));
15
+ if($analytics['status'] && ($analytics['code'] != '')) {
16
  echo '<script type="text/javascript">';
17
  echo 'var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");';
18
  echo 'document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));';
19
  echo '</script>';
20
  echo '<script type="text/javascript">';
21
+ echo 'var pageTracker = _gat._getTracker("'.$analytics['code'].'");';
22
  echo 'pageTracker._trackPageview();';
23
  echo '</script>';
24
  }
25
+ $footer = wp_insert_sanitize_array($options['footer'], array('status', 'code'));
26
+ if($footer['status']) {
27
+ echo $footer['code'];
28
  }
29
  }
30
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:www.wp-insert.smartlogix.co.in/support
4
  Tags: adsense,google,widget,post,admin,plugin,ads,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,privacy policy,privacy,policy,automatic privacy policy,blog,feed,feeds,formatting,html,javascript,manage,post,posts,seo,sidebar,widget,widgets,wordpress,tracking,syntex highlighter,highlighting,theme tools,plugin tools,developer tools,highlighting,theme editor,plugin editor,middle ad,ad filtration,pagewise ad filtration,template ads,ad tags,adbrite ads,adsense ready,easy adsense,adsense optimized,terms and conditions,terms,conditions,automatic terms and conditions
5
  Requires at least: 3.2
6
  Tested up to: 3.4.2
7
- Stable tag: 2.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,7 +12,7 @@ Wp-Insert is the most powerful yet easiest to use WordPress ad management plugin
12
 
13
  == Description ==
14
 
15
- **WP-INSERT by <a href=\"http://www.smartlogix.co.in/\" title=\"Smart Logix\">Smart Logix</a> : The ultimate wordpress plugin**
16
 
17
  Wp-Insert is the most powerful yet easiest to use wordpress ad management plugin which does a lot more than ad management.
18
 
@@ -89,9 +89,12 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
89
 
90
  8. Different Legal Page Templates
91
 
92
- 9. Easy to manage analiytics or any other tracking codes
93
 
94
  10. Syntax Highlighting
 
 
 
95
  == Upgrade Notice ==
96
 
97
  = 2.0 =
4
  Tags: adsense,google,widget,post,admin,plugin,ads,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,privacy policy,privacy,policy,automatic privacy policy,blog,feed,feeds,formatting,html,javascript,manage,post,posts,seo,sidebar,widget,widgets,wordpress,tracking,syntex highlighter,highlighting,theme tools,plugin tools,developer tools,highlighting,theme editor,plugin editor,middle ad,ad filtration,pagewise ad filtration,template ads,ad tags,adbrite ads,adsense ready,easy adsense,adsense optimized,terms and conditions,terms,conditions,automatic terms and conditions
5
  Requires at least: 3.2
6
  Tested up to: 3.4.2
7
+ Stable tag: 2.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ **WP-INSERT by <a href=\"http://www.smartlogix.co.in/\" title=\"Smart Logix\">Smart Logix</a> : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)**
16
 
17
  Wp-Insert is the most powerful yet easiest to use wordpress ad management plugin which does a lot more than ad management.
18
 
89
 
90
  8. Different Legal Page Templates
91
 
92
+ 9. Easy to manage analytics or any other tracking codes
93
 
94
  10. Syntax Highlighting
95
+ == Change Log ==
96
+
97
+ <a href=\"http://www.wp-insert.smartlogix.co.in/change-log/\" title=\"Change Log\">Change Log</a>
98
  == Upgrade Notice ==
99
 
100
  = 2.0 =
wp-insert.php CHANGED
@@ -2,11 +2,11 @@
2
  /*
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
- Description: WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
6
- Version: 2.0.2
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
- WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
10
  */
11
 
12
  /* Copyright 2009 NAMITH JAWAHAR (website : http://www.smartlogix.co.in)
@@ -31,7 +31,7 @@ if(!defined('WP_INSERT_URL'))
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR',WP_PLUGIN_DIR.'/wp-insert');
33
  if(!defined('WP_INSERT_VERSION'))
34
- define('WP_INSERT_VERSION', '2.0.1');
35
  /*Includes*/
36
  require_once (dirname(__FILE__).'/includes/includes.php');
37
  ?>
2
  /*
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
+ Description: WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
6
+ Version: 2.0.3
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
+ WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
10
  */
11
 
12
  /* Copyright 2009 NAMITH JAWAHAR (website : http://www.smartlogix.co.in)
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR',WP_PLUGIN_DIR.'/wp-insert');
33
  if(!defined('WP_INSERT_VERSION'))
34
+ define('WP_INSERT_VERSION', '2.0.3');
35
  /*Includes*/
36
  require_once (dirname(__FILE__).'/includes/includes.php');
37
  ?>