Website Monetization by MageNet - Version 1.0.17

Version Description

  • The bug, which didn't show the links on tags pages and categories pages, and some other pages, was fixed
Download this release

Release Info

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

Code changes from version 1.0.16 to 1.0.17

MagenetLinkAutoinstall.php CHANGED
@@ -209,13 +209,15 @@ if (!class_exists('MagenetLinkAutoinstall')) {
209
  }
210
  update_option("magenet_links_last_update", time());
211
  }
212
- $page_url = get_permalink();
 
 
213
 
214
  $check_page_without_last_slash_query = "";
215
  if($page_url[strlen($page_url)-1] == "/") {
216
- $check_page_without_last_slash_query = " OR page_url='" . substr($page_url, 0, -1) . "'";
217
  }
218
- $link_data = $wpdb->get_results("SELECT * FROM `" . $this->tbl_magenet_links . "` WHERE page_url='". $page_url ."'" . $check_page_without_last_slash_query, ARRAY_A);
219
  return $link_data;
220
  }
221
  return false;
209
  }
210
  update_option("magenet_links_last_update", time());
211
  }
212
+ $site_url = str_replace("'", "\'", get_option("siteurl"));
213
+ $page_url = parse_url($site_url.str_replace("'", "\'", $_SERVER["REQUEST_URI"]));
214
+ $url_for_check = $page_url['scheme'] . "://" . (isset($page_url['host']) ? $page_url['host'] : '') . (isset($page_url['path']) ? $page_url['path'] : '');
215
 
216
  $check_page_without_last_slash_query = "";
217
  if($page_url[strlen($page_url)-1] == "/") {
218
+ $check_page_without_last_slash_query = " OR page_url='" . substr($url_for_check, 0, -1) . "'";
219
  }
220
+ $link_data = $wpdb->get_results("SELECT * FROM `" . $this->tbl_magenet_links . "` WHERE page_url='". $url_for_check ."'" . $check_page_without_last_slash_query, ARRAY_A);
221
  return $link_data;
222
  }
223
  return false;
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.16
6
  Author: MageNet.com
7
  Author URI: http://magenet.com
8
  */
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.17
6
  Author: MageNet.com
7
  Author URI: http://magenet.com
8
  */
readme.txt CHANGED
@@ -84,10 +84,13 @@ 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.16 =
88
- * Fixed bug with not showing links on some pages
89
- * Increasing the Plugin security
90
- * Fixed the issue with errors on site after Plugin installation
91
 
92
  = 1.0.15 =
93
  * Fixed the issue with errors on site after Plugin installation
84
  3. "Pages options" menu
85
 
86
  == Changelog ==
87
+ = 1.0.17 =
88
+ * The bug, which didn't show the links on tags pages and categories pages, and some other pages, was fixed
89
+
90
  = 1.0.16 =
91
+ * The bug, which didn't show the links on some pages, was fixed
92
+ * Plugin security was increased
93
+ * Fixed the issue with errors on website, which occurred after Plugin installation
94
 
95
  = 1.0.15 =
96
  * Fixed the issue with errors on site after Plugin installation