Version Description
- Control of the Plugin version
- Increasing of the Plugin stabilization
- Improvement of the Plugin optimization
Download this release
Release Info
Developer | MageNet |
Plugin | Website Monetization by MageNet |
Version | 1.0.14 |
Comparing to | |
See all releases |
Code changes from version 1.0.13 to 1.0.14
- monetization-by-magenet.php +10 -3
- readme.txt +5 -0
monetization-by-magenet.php
CHANGED
@@ -2,10 +2,16 @@
|
|
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.
|
6 |
Author: MageNet.com
|
7 |
Author URI: http://magenet.com
|
8 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
// Stop direct call
|
10 |
if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
|
11 |
|
@@ -26,7 +32,7 @@ if (!class_exists('MagenetLinkAutoinstall')) {
|
|
26 |
private $api_get = "/wordpress/get";
|
27 |
private $api_test = "/wordpress/test";
|
28 |
private $is_active_seo_plugin = false;
|
29 |
-
|
30 |
private $link_shown = 0;
|
31 |
private $lastError = 0;
|
32 |
|
@@ -234,7 +240,8 @@ if (!class_exists('MagenetLinkAutoinstall')) {
|
|
234 |
$siteurl = get_option("siteurl");
|
235 |
$params = http_build_query(array(
|
236 |
'url' => $siteurl,
|
237 |
-
'key' => $key
|
|
|
238 |
));
|
239 |
if (function_exists('curl_init') && function_exists('curl_exec')) {
|
240 |
$ch = curl_init();
|
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.14
|
6 |
Author: MageNet.com
|
7 |
Author URI: http://magenet.com
|
8 |
*/
|
9 |
+
|
10 |
+
if(!function_exists('get_plugin_data'))
|
11 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
12 |
+
$plugin_data = get_plugin_data(__FILE__);
|
13 |
+
|
14 |
+
define("plugin_version", $plugin_data['Version']);
|
15 |
// Stop direct call
|
16 |
if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
|
17 |
|
32 |
private $api_get = "/wordpress/get";
|
33 |
private $api_test = "/wordpress/test";
|
34 |
private $is_active_seo_plugin = false;
|
35 |
+
private $key = false;
|
36 |
private $link_shown = 0;
|
37 |
private $lastError = 0;
|
38 |
|
240 |
$siteurl = get_option("siteurl");
|
241 |
$params = http_build_query(array(
|
242 |
'url' => $siteurl,
|
243 |
+
'key' => $key,
|
244 |
+
'version' => plugin_version
|
245 |
));
|
246 |
if (function_exists('curl_init') && function_exists('curl_exec')) {
|
247 |
$ch = curl_init();
|
readme.txt
CHANGED
@@ -84,6 +84,11 @@ 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.13 =
|
88 |
* Fix small bug
|
89 |
|
84 |
3. "Pages options" menu
|
85 |
|
86 |
== Changelog ==
|
87 |
+
= 1.0.14 =
|
88 |
+
* Control of the Plugin version
|
89 |
+
* Increasing of the Plugin stabilization
|
90 |
+
* Improvement of the Plugin optimization
|
91 |
+
|
92 |
= 1.0.13 =
|
93 |
* Fix small bug
|
94 |
|