Website Monetization by MageNet - Version 1.0.20

Version Description

  • More user-friendly plug-in activation process.
  • Flexible Plug-in enabling via MageNet account
Download this release

Release Info

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

Code changes from version 1.0.19 to 1.0.20

Files changed (2) hide show
  1. MagenetLinkAutoinstall.php +9 -0
  2. readme.txt +4 -0
MagenetLinkAutoinstall.php CHANGED
@@ -14,6 +14,7 @@ if (!class_exists('MagenetLinkAutoinstall')) {
14
  private $api_activate = "/wordpress/activate";
15
  private $api_deactivate = "/wordpress/deactivate";
16
  private $api_uninstall = "/wordpress/uninstall";
 
17
  private $is_active_seo_plugin = false;
18
  private $key = false;
19
  private $link_shown = 0;
@@ -141,6 +142,9 @@ if (!class_exists('MagenetLinkAutoinstall')) {
141
  if ($test_key) {
142
  $this->setKey($magenet_key);
143
  $result_text = "<span style=\"color: #009900;\">Key confirmed</span>";
 
 
 
144
  } else {
145
  if($this -> lastError == 0) {
146
  $result_text = "<span style=\"color: #ca2222;\">Incorrect Key. Please try again</span>";
@@ -240,6 +244,11 @@ if (!class_exists('MagenetLinkAutoinstall')) {
240
  }
241
  return $result;
242
  }
 
 
 
 
 
243
  }
244
  }
245
  ?>
14
  private $api_activate = "/wordpress/activate";
15
  private $api_deactivate = "/wordpress/deactivate";
16
  private $api_uninstall = "/wordpress/uninstall";
17
+ private $api_status = "/wordpress/status";
18
  private $is_active_seo_plugin = false;
19
  private $key = false;
20
  private $link_shown = 0;
142
  if ($test_key) {
143
  $this->setKey($magenet_key);
144
  $result_text = "<span style=\"color: #009900;\">Key confirmed</span>";
145
+ if($this->status() == 2){
146
+ $result_text .= '<br><span style="color: #ff3838;">Check the box "Switch to Automatic" in "Your Sites" interface to start selling backlinks from your website in automatic mode.</span>';
147
+ }
148
  } else {
149
  if($this -> lastError == 0) {
150
  $result_text = "<span style=\"color: #ca2222;\">Incorrect Key. Please try again</span>";
244
  }
245
  return $result;
246
  }
247
+
248
+ public function status() {
249
+ $result = $this->sendRequest($this->api_host.$this->api_status, $this->getKey());
250
+ return intval($result);
251
+ }
252
  }
253
  }
254
  ?>
readme.txt CHANGED
@@ -84,6 +84,10 @@ 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.19 =
88
  * Plugin security has been improved
89
  * Fixed problems with compatibility with other plugin's
84
  3. "Pages options" menu
85
 
86
  == Changelog ==
87
+ = 1.0.20 =
88
+ * More user-friendly plug-in activation process.
89
+ * Flexible Plug-in enabling via MageNet account
90
+
91
  = 1.0.19 =
92
  * Plugin security has been improved
93
  * Fixed problems with compatibility with other plugin's