Website Monetization by MageNet - Version 1.0.11

Version Description

  • Fix problems with host security
Download this release

Release Info

Developer MageNet
Plugin Icon 128x128 Website Monetization by MageNet
Version 1.0.11
Comparing to
See all releases

Code changes from version 1.0.10 to 1.0.11

Files changed (2) hide show
  1. monetization-by-magenet.php +6 -8
  2. readme.txt +3 -0
monetization-by-magenet.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Website Monetization by MageNet
4
  Description: Website Monetization by MageNet allows you to sell contextual ads from your pages automatically and receive payments with PayPal. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://magenet.com" target="_blank">Sign up for a MageNet Key</a>, and 3) Go to Settings > "Website Monetization by MageNet" configuration page, and save your MageNet Key.
5
- Version: 1.0.10
6
  Author: MageNet.com
7
  Author URI: http://magenet.com
8
  */
@@ -95,7 +95,6 @@ if (!class_exists('MagenetLinkAutoinstall')) {
95
  )".$charset_collate.";";
96
  $sql_add_index = "CREATE INDEX page_url ON `".$wpdb->prefix."magenet_links` (page_url(100));";
97
 
98
- // Проверка на существование таблицы
99
  if ( $wpdb->get_var("show tables like '".$table."'") != $table ) {
100
  dbDelta($sql_table_magenet_links);
101
  $wpdb->query($sql_add_index);
@@ -137,14 +136,13 @@ if (!class_exists('MagenetLinkAutoinstall')) {
137
  $link_data = $this->getLinks();
138
  $content .= '<div class="mads-block">';
139
  if (count($link_data) > 0) {
140
- foreach($link_data as $link) {
141
- $content .= "\n".$link['link_html'];
142
- }
143
  }
144
  $content .='</div>';
145
  }
146
-
147
-
148
  return $content;
149
  }
150
 
@@ -233,7 +231,7 @@ if (!class_exists('MagenetLinkAutoinstall')) {
233
  'url' => $siteurl,
234
  'key' => $key
235
  ));
236
- if (function_exists('curl_init')) {
237
  $ch = curl_init();
238
  curl_setopt($ch, CURLOPT_URL, $url);
239
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
2
  /*
3
  Plugin Name: Website Monetization by MageNet
4
  Description: Website Monetization by MageNet allows you to sell contextual ads from your pages automatically and receive payments with PayPal. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://magenet.com" target="_blank">Sign up for a MageNet Key</a>, and 3) Go to Settings > "Website Monetization by MageNet" configuration page, and save your MageNet Key.
5
+ Version: 1.0.11
6
  Author: MageNet.com
7
  Author URI: http://magenet.com
8
  */
95
  )".$charset_collate.";";
96
  $sql_add_index = "CREATE INDEX page_url ON `".$wpdb->prefix."magenet_links` (page_url(100));";
97
 
 
98
  if ( $wpdb->get_var("show tables like '".$table."'") != $table ) {
99
  dbDelta($sql_table_magenet_links);
100
  $wpdb->query($sql_add_index);
136
  $link_data = $this->getLinks();
137
  $content .= '<div class="mads-block">';
138
  if (count($link_data) > 0) {
139
+ foreach($link_data as $link) {
140
+ $content .= "\n".$link['link_html'];
141
+ }
142
  }
143
  $content .='</div>';
144
  }
145
+
 
146
  return $content;
147
  }
148
 
231
  'url' => $siteurl,
232
  'key' => $key
233
  ));
234
+ if (function_exists('curl_init') && function_exists('curl_exec')) {
235
  $ch = curl_init();
236
  curl_setopt($ch, CURLOPT_URL, $url);
237
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
readme.txt CHANGED
@@ -84,6 +84,9 @@ MageNet crawler will index your sites the same way Google does. It will “read
84
  3. "Pages options" menu
85
 
86
  == Changelog ==
 
 
 
87
  = 1.0.9 =
88
  * Fix some bugs and problems
89
 
84
  3. "Pages options" menu
85
 
86
  == Changelog ==
87
+ = 1.0.11 =
88
+ * Fix problems with host security
89
+
90
  = 1.0.9 =
91
  * Fix some bugs and problems
92