Easy Plugin for AdSense - Version 6.10

Version Description

Fixing a cross-site request forgery vulnerability. (Credit: Charlie Eriksen via Secunia SVCRP.)

=

Download this release

Release Info

Developer manojtd
Plugin Icon 128x128 Easy Plugin for AdSense
Version 6.10
Comparing to
See all releases

Code changes from version 6.06 to 6.10

admin.php CHANGED
@@ -25,6 +25,7 @@ echo '<script type="text/javascript" src="'. get_option('siteurl') . '/' . PLUGI
25
  if (isset($this->ezTran)) {
26
  echo '<div class="wrap" style="width:900px">' ;
27
  echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">' ;
 
28
  $this->ezTran->printAdminPage() ;
29
  echo "</form>\n</div>" ;
30
  }
@@ -37,10 +38,13 @@ else {
37
 
38
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
39
  <?php
40
- $plgDir = dirname(__FILE__) ;
41
- $plgName = 'easy-adsense' ;
42
- if (empty($this->options['kill_rating'])) renderRating($myPlugins[$plgName], $plgDir) ;
43
- if (empty($this->options['kill_invites'])) renderInvite($myPlugins[$plgName], $plgName) ;
 
 
 
44
  ?>
45
  <table class="form-table">
46
  <tr><th scope="row"><h3><?php _e('Instructions', 'easy-adsenser') ; ?></h3></th></tr>
25
  if (isset($this->ezTran)) {
26
  echo '<div class="wrap" style="width:900px">' ;
27
  echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">' ;
28
+ wp_nonce_field('EzAdsenseSubmit','EzAdsenseNonce');
29
  $this->ezTran->printAdminPage() ;
30
  echo "</form>\n</div>" ;
31
  }
38
 
39
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
40
  <?php
41
+ wp_nonce_field('EzAdsenseSubmit','EzAdsenseNonce');
42
+ $plgDir = dirname(__FILE__) ;
43
+ $plgName = 'easy-adsense' ;
44
+ if (empty($this->options['kill_rating']))
45
+ renderRating($myPlugins[$plgName], $plgDir) ;
46
+ if (empty($this->options['kill_invites']))
47
+ renderInvite($myPlugins[$plgName], $plgName) ;
48
  ?>
49
  <table class="form-table">
50
  <tr><th scope="row"><h3><?php _e('Instructions', 'easy-adsenser') ; ?></h3></th></tr>
easy-adsense-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easy AdSense
4
  Plugin URI: http://www.thulasidas.com/adsense
5
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
6
- Version: 6.06
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
@@ -47,7 +47,6 @@ if (!class_exists("EzAdSense")) {
47
  $this->options = $this->mkDefaultOptions() ;
48
  }
49
  $this->setLang() ;
50
- $this->handleSubmits() ;
51
  $this->plugindir = get_option('siteurl') . '/' . PLUGINDIR .
52
  '/' . basename(dirname(__FILE__)) ;
53
  // Counts and limis
@@ -66,6 +65,9 @@ if (!class_exists("EzAdSense")) {
66
  if (empty($_POST)) {
67
  return ;
68
  }
 
 
 
69
  if ((isset($_POST['ezAds-translate']) && !empty($_POST['ezAds-translate'])) ||
70
  (isset($_POST['ezAds-make']) && !empty($_POST['ezAds-make'])) ||
71
  (isset($_POST['ezAds-clear']) && !empty($_POST['ezAds-clear'])) ||
@@ -342,6 +344,7 @@ if (!class_exists("EzAdSense")) {
342
  // if the defaults are not loaded, send error message
343
  if (empty($this->defaults)) return ;
344
  if (file_exists (dirname (__FILE__).'/admin.php')) {
 
345
  echo $this->adminMsg ;
346
  include (dirname (__FILE__).'/admin.php');
347
  }
3
  Plugin Name: Easy AdSense
4
  Plugin URI: http://www.thulasidas.com/adsense
5
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
6
+ Version: 6.10
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
47
  $this->options = $this->mkDefaultOptions() ;
48
  }
49
  $this->setLang() ;
 
50
  $this->plugindir = get_option('siteurl') . '/' . PLUGINDIR .
51
  '/' . basename(dirname(__FILE__)) ;
52
  // Counts and limis
65
  if (empty($_POST)) {
66
  return ;
67
  }
68
+ if (!check_admin_referer('EzAdsenseSubmit','EzAdsenseNonce')) {
69
+ return ;
70
+ }
71
  if ((isset($_POST['ezAds-translate']) && !empty($_POST['ezAds-translate'])) ||
72
  (isset($_POST['ezAds-make']) && !empty($_POST['ezAds-make'])) ||
73
  (isset($_POST['ezAds-clear']) && !empty($_POST['ezAds-clear'])) ||
344
  // if the defaults are not loaded, send error message
345
  if (empty($this->defaults)) return ;
346
  if (file_exists (dirname (__FILE__).'/admin.php')) {
347
+ $this->handleSubmits() ;
348
  echo $this->adminMsg ;
349
  include (dirname (__FILE__).'/admin.php');
350
  }
head-text.php CHANGED
@@ -29,16 +29,17 @@ function renderHeadText($name, $plg) {
29
  $text = $link . $desc ;
30
  $price = $plg['price'] ;
31
  $moreInfo =
32
- "<b><a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Pro Version</a></b>" ;
33
  $toolTip .= addslashes('<br />' . $moreInfo) ;
34
  $why = addslashes($plg['pro']) ;
35
  $version = 'Lite' ;
36
  echo "<b>Get Pro Version!</b>
37
- <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' border='0' alt='ezPayPal -- Instant PayPal Shop.' class='alignright'/></a>
38
  <br />
39
  You are using the $version version of $value, which is also available as in a Pro version.
40
  <ul><li>
41
  $moreInfo
 
42
  <li>$why And it costs only \$$price!</li>
43
  </ul>" ;
44
  }
@@ -49,32 +50,31 @@ function renderProText($name, $plg) {
49
  $desc = $plg['desc'] ;
50
  $toolTip = $plg['title'] ;
51
  $price = $plg['price'] ;
 
52
  $moreInfo =
53
  "&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Lite Version </a>" .
54
- "&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Pro Version</a>" ;
55
  $toolTip .= addslashes('<br />' . $moreInfo) ;
56
  $why = addslashes($plg['pro']) ;
57
- echo '<div style="background-color:#ffcccc;padding:5px;border: solid 1px">
58
- <center>
59
- <big style="color:#a48;font-variant: small-caps;text-decoration:underline" onmouseover="TagToTip(\'pro\', WIDTH, 300, TITLE, \'Buy the Pro Version\',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true, FIX, [this, 5, 5])"><b>The Pro Version</b></big>
60
- </center>' ;
61
 
62
  $value .= '<b><i> Lite</i></b>' ;
63
- echo "Thank you for using $value. The \"Pro\" version gives you more options$filter. Consider <a href='http://buy.thulasidas.com/$name' title='Pro version of this plugin. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">buying it</a>. It costs only \$$price." ;
64
 
65
- echo "<div id='pro'>" ;
66
  renderHeadText($name, $plg) ;
67
- echo "</div>" ;
68
  }
69
 
70
  function renderAffiliate() {
71
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
72
- echo "<div style='padding:0px;border:none; width:300px' id='support' onmouseover=\"Tip('<b>ezAffiliates</b>: The most affiliate-centric revenue sharing model on the Web. Finally, you can make some serious returns on your web presence.<br /><b>Generous 50% Commission</b>: perhaps the highest rate of revenue sharing on the web. With just a couple of sales of this plugin, you will have recovered your purchase price!<br /><b>$10 Minimum Payout</b> so that you will not be waiting forever before you qualify for payment.<br /><b>Lifetime Tracking</b>: ezAffiliates uses cookie-less tracking technology to attribute every purchase of your lead to your account. Whatever your leads buy from us, whenever they do, will earn you commission. No cookie expiry!<br /><b>High Quality Products</b> such as this plugin, and other premium plugins and PHP packages.<br /><b>Diverse Markets</b>: Bloggers who blog about plugins, PayPal integration, affiliate marketing, MacOS apps and even eBooks will find ezAffiliates attractive and more effective that their current ad campaigns.', WIDTH, 295, TITLE, 'ezAffiliates', FIX, [this, 0, 0])\" onmouseout=\"UnTip()\" ><a href='http://affiliates.thulasidas.com'><img src='$plugindir/invite.gif' /></a></div>" ;
73
  }
74
 
75
  function renderSupportText($name, $plg, $long=true) {
76
  $value = '<em><strong>'.$plg['value'].'</strong></em>';
77
- $supportText = "<div style=\"background-color:#cff;padding:5px;border: solid 1px\" id=\"support\"><b>Support $value. <a href=\"http://buy.thulasidas.com/$name\" title=\"Pro version of this plugin. Instant download link.\">Go Pro!</a></b>" ;
78
  if ($long) $longText = "How about " ;
79
  else $longText= '' ;
80
  $supportText .= "<br />$longText<span onmouseover=\"TagToTip('dropbox', WIDTH, 440, TITLE, 'What is DropBox?',STICKY, 1, CLOSEBTN, true, FIX, [this, -150, 2])\"><a href='http://db.tt/qsogWB1' title='Sign up for Dropbox -- free 2GB online storage on the cloud!' target='_blank'>2GB of <em>free</em> online storage</a></span>?" ;
@@ -84,33 +84,33 @@ function renderSupportText($name, $plg, $long=true) {
84
  if ($long) $longText = "My books on " ;
85
  else $longText= 'Books: ' ;
86
  $supportText .= "<br />$longText<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('unreal', WIDTH, 205, TITLE, 'Buy &lt;em&gt;The Unreal Universe&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://buy.thulasidas.com/unreal' target='_blank'>Physics &amp; Philosophy</a></b></span> or " ;
87
- $supportText .= "<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('pqd', WIDTH, 205, TITLE, '&lt;em&gt;Principles of Quant. Devel.&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20' target='_blank'>Money &amp; Finance</a></b></span>." ;
88
  echo $supportText ;
89
  }
90
 
91
  function renderTipDivs($name) {
92
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
93
  echo <<<ENDDIVS
94
- <div id="arvixe">
95
  <a href="http://www.arvixe.com/1933-27-1-310.html" target="_blank">Arvixe</a> is my favorite hosting provider. Friendly service, extremely competitive rates, and of course a great affiliate program.
96
  </div>
97
 
98
- <span id="dropbox">
99
  Dropbox! gives you 2GB of network (cloud) storage for free, which I find quite adequate for any normal user. (That sounds like the famous last words by Bill Gates, doesn’t it? “64KB of memory should be enough for anyone!”) And, you can get 250MB extra for every successful referral you make. That brings me to my ulterior motive – please use this link to sign up. When you do, I get 250MB extra. Don’t worry, you get 250MB extra as well. So I can grow my online storage up to 8GB, which should keep me happy for a long time. Thank you!
100
  </span>
101
 
102
- <div id="unreal" style="margin-left:auto;margin-right:auto;width:200px;display:block;">
103
  <div style="text-align:center;width:200px;padding:1px;background:#aad;margin:2px;">
104
  <div style="text-align:center;width:192px;height:180px;padding:2px;border:solid 1px #000;background:#ccf;margin:1px;">
105
  <a style="text-decoration:none;" href="http://buy.thulasidas.com/unreal-universe" title="Find out more about The Unreal Universe and buy it ($1.49 for eBook, $15.95 for paperback). It will change the way you view life and reality!">
106
- <big style="font-size:14px;font-family:arial;color:#a48;font-variant: small-caps;"><b>The Unreal Universe</b></big><br />
107
  <small style="font-size:12px;font-family:arial;color:#000;">
108
  A Book on Physics and Philosophy
109
  </small>
110
  </a>
111
  <hr />
112
- <table border="0" cellpadding="0" cellspacing="0" summary="" width="100%" align="center">
113
- <tr><td width="65%">
114
  <a style="text-decoration:none;" href="http://buy.thulasidas.com/unreal-universe" title="Find out more about The Unreal Universe and buy it ($1.49 for eBook or Kindle, $15.95 for paperback). It will change the way you view life and reality!">
115
  <small style="font-size:10px;font-family:arial;color:#000;">
116
  Pages: 292<br />
@@ -121,14 +121,14 @@ Illustrations: 34<br />
121
  Tables: 8 <br />
122
  Bibliography: Yes<br />
123
  Index: Yes<br />
124
- ISBN:<br />9789810575946&nbsp;<br />
125
- <font color="red"><b>Only $1.49!</b></font>
126
  </small>
127
  </a>
128
  </td>
129
  <td>
130
  <a style="text-decoration:none;" href="http://buy.thulasidas.com/unreal-universe" title="Find out more about The Unreal Universe and buy it ($1.49 for eBook or Kindle, $15.95 for paperback). It will change the way you view life and reality!">
131
- <img class="alignright" src="$plugindir/unreal.gif" border="0px" alt="TheUnrealUniverse" title="Read more about The Unreal Universe" />
132
  </a>
133
  </td>
134
  </tr>
@@ -137,18 +137,18 @@ ISBN:<br />9789810575946&nbsp;<br />
137
  </div>
138
  </div>
139
 
140
- <div id="pqd" style="margin-left:auto;margin-right:auto;width:200px;display:block;">
141
  <div style="text-align:center;width:200px;padding:1px;background:#000;margin:2px;">
142
  <div style="text-align:center;width:190px;height:185px;padding:2px;padding-top:1px;padding-left:4px;border:solid 1px #fff;background:#411;margin:1px;">
143
  <a style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
144
- <big style="font-size:14px;font-family:arial;color:#fff;font-variant: small-caps;">A Remarkable Book from Wiley-Finance</big>
145
  </a>
146
  <hr />
147
- <table border="0" cellpadding="2px" cellspacing="0" summary="" width="100%" align="center">
148
  <tr><td style="padding:0px">
149
  <div style="border:solid 1px #faa;height:126px;width:82px;">
150
  <a style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
151
- <img src="$plugindir/pqd-82x126.gif" border="0px" alt="PQD" title="Principles of Quantitative Development from Amazon.com" />
152
  </a>
153
  </div>
154
  </td>
@@ -170,7 +170,7 @@ Want to break into the lucrative world of trading and quantitative finance? You
170
  ENDDIVS;
171
  }
172
 
173
- echo '<td width="30%">' ;
174
 
175
  if (rand(0,2) % 2 || $plgName == "easy-ads" || $plgName == "google-adsense") {
176
  renderSupportText($plgName, $myPlugins[$plgName], $myPlugins[$plgName]['long']) ;
@@ -179,7 +179,7 @@ if (rand(0,2) % 2 || $plgName == "easy-ads" || $plgName == "google-adsense") {
179
  else renderAffiliate() ;
180
 
181
  echo '</td>' ;
182
- echo '<td width="30%">' ;
183
 
184
  renderProText($plgName, $myPlugins[$plgName]) ;
185
 
29
  $text = $link . $desc ;
30
  $price = $plg['price'] ;
31
  $moreInfo =
32
+ "<b><a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of {$plg['value']} for \$$price. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Pro Version</a></b>" ;
33
  $toolTip .= addslashes('<br />' . $moreInfo) ;
34
  $why = addslashes($plg['pro']) ;
35
  $version = 'Lite' ;
36
  echo "<b>Get Pro Version!</b>
37
+ <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright'/></a>
38
  <br />
39
  You are using the $version version of $value, which is also available as in a Pro version.
40
  <ul><li>
41
  $moreInfo
42
+ </li>
43
  <li>$why And it costs only \$$price!</li>
44
  </ul>" ;
45
  }
50
  $desc = $plg['desc'] ;
51
  $toolTip = $plg['title'] ;
52
  $price = $plg['price'] ;
53
+ $popup = "onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"";
54
  $moreInfo =
55
  "&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Lite Version </a>" .
56
+ "&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' $popup>Pro Version</a>" ;
57
  $toolTip .= addslashes('<br />' . $moreInfo) ;
58
  $why = addslashes($plg['pro']) ;
59
+ echo "<div style='background-color:#ffcccc;padding:5px;border: solid 1px;text-align:center;'>
60
+ <span style='font-size:14px;color:#a48;font-variant: small-caps;text-decoration:underline;text-align:center;' $popup onmouseover=\"TagToTip('pro', WIDTH, 300, TITLE, 'Buy the Pro Version',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true, FIX, [this, 5, 5])\"><b>The Pro Version</b></span><br />" ;
 
 
61
 
62
  $value .= '<b><i> Lite</i></b>' ;
63
+ echo "Thank you for using $value. The \"Pro\" version gives you more options$filter. Consider <a href='http://buy.thulasidas.com/$name' title='Pro version of this plugin. Instant download link.' $popup>buying it</a>. It costs only \$$price." ;
64
 
65
+ echo "<div id='pro' style='display:none'>" ;
66
  renderHeadText($name, $plg) ;
67
+ echo "</div></div>" ;
68
  }
69
 
70
  function renderAffiliate() {
71
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
72
+ echo "<div style='padding:0px;border:none; width:300px' id='support' onmouseover=\"Tip('<b>ezAffiliates</b>: The most affiliate-centric revenue sharing model on the Web. Finally, you can make some serious returns on your web presence.<br /><b>Generous 50% Commission</b>: perhaps the highest rate of revenue sharing on the web. With just a couple of sales of this plugin, you will have recovered your purchase price!<br /><b>$10 Minimum Payout</b> so that you will not be waiting forever before you qualify for payment.<br /><b>Lifetime Tracking</b>: ezAffiliates uses cookie-less tracking technology to attribute every purchase of your lead to your account. Whatever your leads buy from us, whenever they do, will earn you commission. No cookie expiry!<br /><b>High Quality Products</b> such as this plugin, and other premium plugins and PHP packages.<br /><b>Diverse Markets</b>: Bloggers who blog about plugins, PayPal integration, affiliate marketing, MacOS apps and even eBooks will find ezAffiliates attractive and more effective that their current ad campaigns.', WIDTH, 295, TITLE, 'ezAffiliates', FIX, [this, 0, 0])\" onmouseout=\"UnTip()\" ><a href='http://affiliates.thulasidas.com'><img src='$plugindir/invite.gif' alt='ezAffiliates' onclick=\"popupwindow('http://affiliates.thulasidas.com/','50-50 Revenue Share', 1024, 768);return false;\"/></a></div>" ;
73
  }
74
 
75
  function renderSupportText($name, $plg, $long=true) {
76
  $value = '<em><strong>'.$plg['value'].'</strong></em>';
77
+ $supportText = "<div style=\"background-color:#cff;padding:5px;border: solid 1px\" id=\"support\"><b>Support $value. <a href=\"http://buy.thulasidas.com/$name\" title=\"Pro version of this plugin. Instant download link.\" onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Go Pro!</a></b>" ;
78
  if ($long) $longText = "How about " ;
79
  else $longText= '' ;
80
  $supportText .= "<br />$longText<span onmouseover=\"TagToTip('dropbox', WIDTH, 440, TITLE, 'What is DropBox?',STICKY, 1, CLOSEBTN, true, FIX, [this, -150, 2])\"><a href='http://db.tt/qsogWB1' title='Sign up for Dropbox -- free 2GB online storage on the cloud!' target='_blank'>2GB of <em>free</em> online storage</a></span>?" ;
84
  if ($long) $longText = "My books on " ;
85
  else $longText= 'Books: ' ;
86
  $supportText .= "<br />$longText<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('unreal', WIDTH, 205, TITLE, 'Buy &lt;em&gt;The Unreal Universe&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://buy.thulasidas.com/unreal' target='_blank'>Physics &amp; Philosophy</a></b></span> or " ;
87
+ $supportText .= "<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('pqd', WIDTH, 205, TITLE, '&lt;em&gt;Principles of Quant. Devel.&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20' target='_blank'>Money &amp; Finance</a></b></span>.</div>" ;
88
  echo $supportText ;
89
  }
90
 
91
  function renderTipDivs($name) {
92
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
93
  echo <<<ENDDIVS
94
+ <div id="arvixe" style='display:none;'>
95
  <a href="http://www.arvixe.com/1933-27-1-310.html" target="_blank">Arvixe</a> is my favorite hosting provider. Friendly service, extremely competitive rates, and of course a great affiliate program.
96
  </div>
97
 
98
+ <span id="dropbox" style='display:none;'>
99
  Dropbox! gives you 2GB of network (cloud) storage for free, which I find quite adequate for any normal user. (That sounds like the famous last words by Bill Gates, doesn’t it? “64KB of memory should be enough for anyone!”) And, you can get 250MB extra for every successful referral you make. That brings me to my ulterior motive – please use this link to sign up. When you do, I get 250MB extra. Don’t worry, you get 250MB extra as well. So I can grow my online storage up to 8GB, which should keep me happy for a long time. Thank you!
100
  </span>
101
 
102
+ <div id="unreal" style="margin-left:auto;margin-right:auto;width:200px;display:none;">
103
  <div style="text-align:center;width:200px;padding:1px;background:#aad;margin:2px;">
104
  <div style="text-align:center;width:192px;height:180px;padding:2px;border:solid 1px #000;background:#ccf;margin:1px;">
105
  <a style="text-decoration:none;" href="http://buy.thulasidas.com/unreal-universe" title="Find out more about The Unreal Universe and buy it ($1.49 for eBook, $15.95 for paperback). It will change the way you view life and reality!">
106
+ <span style="font-size:14px;font-family:arial;color:#a48;font-variant: small-caps;"><b>The Unreal Universe</b></span><br />
107
  <small style="font-size:12px;font-family:arial;color:#000;">
108
  A Book on Physics and Philosophy
109
  </small>
110
  </a>
111
  <hr />
112
+ <table style="border-width:0;padding:2px;width:100%;margin-left:auto;margin-right:auto;border-spacing:0;border-collapse:collapse;">
113
+ <tr><td style="width:65%">
114
  <a style="text-decoration:none;" href="http://buy.thulasidas.com/unreal-universe" title="Find out more about The Unreal Universe and buy it ($1.49 for eBook or Kindle, $15.95 for paperback). It will change the way you view life and reality!">
115
  <small style="font-size:10px;font-family:arial;color:#000;">
116
  Pages: 292<br />
121
  Tables: 8 <br />
122
  Bibliography: Yes<br />
123
  Index: Yes<br />
124
+ ISBN: 9789810575946&nbsp;<br />
125
+ <span style="font-color=#ff0000;"><b>Only $1.49!</b></span>
126
  </small>
127
  </a>
128
  </td>
129
  <td>
130
  <a style="text-decoration:none;" href="http://buy.thulasidas.com/unreal-universe" title="Find out more about The Unreal Universe and buy it ($1.49 for eBook or Kindle, $15.95 for paperback). It will change the way you view life and reality!">
131
+ <img class="alignright" src="$plugindir/unreal.gif" alt="TheUnrealUniverse" title="Read more about The Unreal Universe" />
132
  </a>
133
  </td>
134
  </tr>
137
  </div>
138
  </div>
139
 
140
+ <div id="pqd" style="margin-left:auto;margin-right:auto;width:200px;display:none;">
141
  <div style="text-align:center;width:200px;padding:1px;background:#000;margin:2px;">
142
  <div style="text-align:center;width:190px;height:185px;padding:2px;padding-top:1px;padding-left:4px;border:solid 1px #fff;background:#411;margin:1px;">
143
  <a style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
144
+ <span style="font-size:14px;font-family:arial;color:#fff;font-variant: small-caps;">A Remarkable Book from Wiley-Finance</span>
145
  </a>
146
  <hr />
147
+ <table style="border-width:0;padding:2px;width:100%;margin-left:auto;margin-right:auto;border-spacing:0;border-collapse:collapse;">
148
  <tr><td style="padding:0px">
149
  <div style="border:solid 1px #faa;height:126px;width:82px;">
150
  <a style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
151
+ <img src="$plugindir/pqd-82x126.gif" alt="PQD" title="Principles of Quantitative Development from Amazon.com" />
152
  </a>
153
  </div>
154
  </td>
170
  ENDDIVS;
171
  }
172
 
173
+ echo '<td style="width:30%">' ;
174
 
175
  if (rand(0,2) % 2 || $plgName == "easy-ads" || $plgName == "google-adsense") {
176
  renderSupportText($plgName, $myPlugins[$plgName], $myPlugins[$plgName]['long']) ;
179
  else renderAffiliate() ;
180
 
181
  echo '</td>' ;
182
+ echo '<td style="width:30%">' ;
183
 
184
  renderProText($plgName, $myPlugins[$plgName]) ;
185
 
lang/easy-translator.php CHANGED
@@ -327,6 +327,8 @@ msgstr ""
327
  $pot .= '<div style="width:100%;padding:15px"></div>' ;
328
 
329
  foreach ($POs as $n => $po) {
 
 
330
  $pot .= $po->textId() . "\n" . $po->textStr() . "\n\n" ;
331
  }
332
  }
327
  $pot .= '<div style="width:100%;padding:15px"></div>' ;
328
 
329
  foreach ($POs as $n => $po) {
330
+ if (!is_object ($po) && gettype ($po) == 'object')
331
+ $po = unserialize (serialize ($po)); // need this only on Chrome!!
332
  $pot .= $po->textId() . "\n" . $po->textStr() . "\n\n" ;
333
  }
334
  }
myPlugins.php CHANGED
@@ -2,11 +2,10 @@
2
 
3
  $myPlugins = array() ;
4
 
5
- $needPHP5 = ' <p> <font color="#c00">Note that this plugin requires PHPv5.0+. Please use the Lite version first to ensure that it works before buying the Pro version. If it does not work on your web host, consider the amazing <a href="http://buy.thulasidas.com/easy-adsense/" title="The most popular plugin to insert AdSense on your blog"><em><strong>Easy AdSense Pro</strong></em></a> for all your advertising needs. It can insert non-AdSense blocks as well.</font></p>' ;
6
 
7
  $myPlugins['ezpaypal-pro'] =
8
  array('value' => 'ezPayPal',
9
- 'support' => 'YBB5HXSJ97C7E',
10
  'price' => '9.95',
11
  'share' => false,
12
  'long' => false,
@@ -17,7 +16,6 @@ $myPlugins['ezpaypal-pro'] =
17
 
18
  $myPlugins['easy-ads'] =
19
  array('value' => 'Easy Ads',
20
- 'support' => 'YBB5HXSJ97C7E',
21
  'price' => '8.95',
22
  'share' => true,
23
  'long' => false,
@@ -28,7 +26,6 @@ $myPlugins['easy-ads'] =
28
 
29
  $myPlugins['easy-paypal'] =
30
  array('value' => 'Easy PayPal',
31
- 'support' => 'YBB5HXSJ97C7E',
32
  'price' => '6.95',
33
  'share' => false,
34
  'long' => false,
@@ -39,7 +36,6 @@ $myPlugins['easy-paypal'] =
39
 
40
  $myPlugins['google-adsense'] =
41
  array('value' => 'Google AdSense',
42
- 'support' => '6M4A94KQMA9UL',
43
  'price' => '5.95',
44
  'share' => true,
45
  'long' => false,
@@ -51,7 +47,6 @@ $myPlugins['google-adsense'] =
51
 
52
  $myPlugins['easy-adsense'] =
53
  array('value' => 'Easy AdSense',
54
- 'support' => 'HYZ5AWPYSC8VA',
55
  'price' => '4.95',
56
  'share' => true,
57
  'long' => true,
@@ -68,7 +63,6 @@ $myPlugins['easy-adsense'] =
68
 
69
  $myPlugins['adsense-now'] =
70
  array('value' => 'AdSense Now!',
71
- 'support' => 'UE28AQZUTTX8Q',
72
  'price' => '3.95',
73
  'share' => true,
74
  'long' => true,
@@ -82,7 +76,6 @@ $myPlugins['adsense-now'] =
82
 
83
  $myPlugins['theme-tweaker'] =
84
  array('value' => 'Theme Tweaker',
85
- 'support' => 'UKPDMR89Z22DN',
86
  'price' => '3.95',
87
  'share' => false,
88
  'long' => true,
@@ -96,7 +89,6 @@ $myPlugins['theme-tweaker'] =
96
 
97
  $myPlugins['easy-quiz'] =
98
  array('value' => 'Easy Quiz',
99
- 'support' => 'UKPDMR89Z22DN',
100
  'price' => '2.95',
101
  'share' => false,
102
  'long' => true,
@@ -109,9 +101,22 @@ $myPlugins['easy-quiz'] =
109
  <li>Ability to tweak the quiz display colors.</li>
110
  <li>Color pickers for customization with live preview on the admin page.</li>') ;
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  $myPlugins['easy-latex'] =
113
  array('value' => 'Easy WP LaTeX',
114
- 'support' => 'UFFMGT9QHJY2N',
115
  'price' => '2.95',
116
  'share' => false,
117
  'long' => true,
@@ -122,7 +127,6 @@ $myPlugins['easy-latex'] =
122
 
123
  $myPlugins['easy-translator'] =
124
  array('value' => 'Easy Translator',
125
- 'support' => '48XZQ7LRDAV28',
126
  'price' => '1.95' ,
127
  'share' => false,
128
  'long' => true,
@@ -133,7 +137,6 @@ $myPlugins['easy-translator'] =
133
 
134
  $myPlugins['unreal-universe'] =
135
  array('value' => 'The Unreal Universe - eBook',
136
- 'support' => '',
137
  'url' => 'http://www.theunrealuniverse.com',
138
  'amazon' => 'http://www.amazon.com/exec/obidos/ASIN/9810575947/unrblo-20',
139
  'price' => '1.49',
@@ -147,7 +150,6 @@ $myPlugins['unreal-universe'] =
147
 
148
  $myPlugins['iphoto-tagger'] =
149
  array('value' => 'iPhoto Tagger -- Helper for iPhoto imports',
150
- 'support' => '',
151
  'price' => '1.99',
152
  'share' => false,
153
  'long' => true,
2
 
3
  $myPlugins = array() ;
4
 
5
+ $needPHP5 = ' <br /> <span style="font-color:#c00;">Note that this plugin requires PHPv5.0+. Please use the Lite version first to ensure that it works before buying the Pro version. If it does not work on your web host, consider the amazing <a href="http://buy.thulasidas.com/easy-adsense/" title="The most popular plugin to insert AdSense on your blog"><em><strong>Easy AdSense Pro</strong></em></a> for all your advertising needs. It can insert non-AdSense blocks as well.</span>' ;
6
 
7
  $myPlugins['ezpaypal-pro'] =
8
  array('value' => 'ezPayPal',
 
9
  'price' => '9.95',
10
  'share' => false,
11
  'long' => false,
16
 
17
  $myPlugins['easy-ads'] =
18
  array('value' => 'Easy Ads',
 
19
  'price' => '8.95',
20
  'share' => true,
21
  'long' => false,
26
 
27
  $myPlugins['easy-paypal'] =
28
  array('value' => 'Easy PayPal',
 
29
  'price' => '6.95',
30
  'share' => false,
31
  'long' => false,
36
 
37
  $myPlugins['google-adsense'] =
38
  array('value' => 'Google AdSense',
 
39
  'price' => '5.95',
40
  'share' => true,
41
  'long' => false,
47
 
48
  $myPlugins['easy-adsense'] =
49
  array('value' => 'Easy AdSense',
 
50
  'price' => '4.95',
51
  'share' => true,
52
  'long' => true,
63
 
64
  $myPlugins['adsense-now'] =
65
  array('value' => 'AdSense Now!',
 
66
  'price' => '3.95',
67
  'share' => true,
68
  'long' => true,
76
 
77
  $myPlugins['theme-tweaker'] =
78
  array('value' => 'Theme Tweaker',
 
79
  'price' => '3.95',
80
  'share' => false,
81
  'long' => true,
89
 
90
  $myPlugins['easy-quiz'] =
91
  array('value' => 'Easy Quiz',
 
92
  'price' => '2.95',
93
  'share' => false,
94
  'long' => true,
101
  <li>Ability to tweak the quiz display colors.</li>
102
  <li>Color pickers for customization with live preview on the admin page.</li>') ;
103
 
104
+ $myPlugins['easy-text-links'] =
105
+ array('value' => 'Easy Text Links',
106
+ 'price' => '7.95',
107
+ 'share' => false,
108
+ 'long' => true,
109
+ 'blurb' =>'<em><strong>Easy Text Links</strong></em> is a robust and modern advertising plugin that ',
110
+ 'desc' => 'helps you sell and manage text links on your blog.',
111
+ 'title' => '<em><strong>Easy Text Links</strong></em> helps you make extra revenue from your blog by selling text links. Text link advertising can be significantly more lucrative than contextual ads. This plugin automates the insertion and expiration of the links, and helps you with quick reminder emails to your advertisers. If you get a lot of advertising enquiries for text links, this is the right plugin for you.',
112
+ 'pro' => '<em><strong>Easy Text Links</strong></em>, in its light form, is already a powerful plugin. The Pro version lets you integrate seamlessly with Easy PayPal and fully automate your link sales, expiration and reminder emails.',
113
+ 'benefits' => '<li>Automated link sales and management.</li>
114
+ <li>Automated email reminders, and subscription based links.</li>
115
+ <li>Choice of several attractive Advertise Here images.</li>
116
+ <li>Dedicated dedicated and multi-insertable widget for displaying your links.</li>') ;
117
+
118
  $myPlugins['easy-latex'] =
119
  array('value' => 'Easy WP LaTeX',
 
120
  'price' => '2.95',
121
  'share' => false,
122
  'long' => true,
127
 
128
  $myPlugins['easy-translator'] =
129
  array('value' => 'Easy Translator',
 
130
  'price' => '1.95' ,
131
  'share' => false,
132
  'long' => true,
137
 
138
  $myPlugins['unreal-universe'] =
139
  array('value' => 'The Unreal Universe - eBook',
 
140
  'url' => 'http://www.theunrealuniverse.com',
141
  'amazon' => 'http://www.amazon.com/exec/obidos/ASIN/9810575947/unrblo-20',
142
  'price' => '1.49',
150
 
151
  $myPlugins['iphoto-tagger'] =
152
  array('value' => 'iPhoto Tagger -- Helper for iPhoto imports',
 
153
  'price' => '1.99',
154
  'share' => false,
155
  'long' => true,
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://buy.thulasidas.com/easy-adsense
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
- Stable tag: 6.06
8
 
9
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
10
 
@@ -32,13 +32,13 @@ Easy AdSense is the freely distributed version of a premium plugin. The [Pro ver
32
 
33
  = New in this Release =
34
 
35
- More translation updates, better session handling.
36
 
37
  == Upgrade Notice ==
38
 
39
- = 6.06 =
40
 
41
- More translation updates, better session handling.
42
 
43
  == Screenshots ==
44
 
@@ -126,6 +126,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
126
 
127
  == Change Log ==
128
 
 
129
  * V6.06: More translation updates, better session handling. [Mar 29, 2013]
130
  * V6.05: Updating a few translations. Minor changes to the support module. [Feb 16, 2013]
131
  * V6.04: Bug fixes (Fatal error: Call-time pass-by-reference has been removed). [Jan 27, 2013]
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
+ Stable tag: 6.10
8
 
9
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
10
 
32
 
33
  = New in this Release =
34
 
35
+ Fixing a cross-site request forgery vulnerability. (Credit: Charlie Eriksen via Secunia SVCRP.)
36
 
37
  == Upgrade Notice ==
38
 
39
+ = 6.10 =
40
 
41
+ Fixing a cross-site request forgery vulnerability. (Credit: Charlie Eriksen via Secunia SVCRP.)
42
 
43
  == Screenshots ==
44
 
126
 
127
  == Change Log ==
128
 
129
+ * V6.10: Fixing a cross-site request forgery vulnerability. (Credit: Charlie Eriksen via Secunia SVCRP.) [Apr 27, 2013]
130
  * V6.06: More translation updates, better session handling. [Mar 29, 2013]
131
  * V6.05: Updating a few translations. Minor changes to the support module. [Feb 16, 2013]
132
  * V6.04: Bug fixes (Fatal error: Call-time pass-by-reference has been removed). [Jan 27, 2013]
support.php CHANGED
@@ -18,12 +18,11 @@ function renderSupport($name, $plg) {
18
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
19
  $value = $plg['value'];
20
  $desc = $plg['desc'] ;
21
- $support = $plg['support'] ;
22
  $url = 'http://www.thulasidas.com/plugins/' . $name . '#FAQ' ;
23
  $link = '<a href="' . $url . '" target="_blank">' . $value . '</a>' ;
24
  echo "&nbsp;<a href='http://support.thulasidas.com' onclick=\"popupwindow('http://support.thulasidas.com','ezSupport for $value', 1024, 768);return false;\" title='" ;
25
  _e('Ask a support question (in English or French only) via ezSupport @ $0.95', 'easy-adsenser') ;
26
- echo "'><img src='$plugindir/ezsupport.png' class='alignright' border='0' alt='ezSupport Portal'/></a>" ;
27
  printf(__("If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions.", 'easy-adsenser'), $value, $link) ;
28
  echo "<br style='line-height: 20px;'/>" ;
29
  _e("Or, if you still need help, you can raise a support ticket.", 'easy-adsenser') ;
18
  $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
19
  $value = $plg['value'];
20
  $desc = $plg['desc'] ;
 
21
  $url = 'http://www.thulasidas.com/plugins/' . $name . '#FAQ' ;
22
  $link = '<a href="' . $url . '" target="_blank">' . $value . '</a>' ;
23
  echo "&nbsp;<a href='http://support.thulasidas.com' onclick=\"popupwindow('http://support.thulasidas.com','ezSupport for $value', 1024, 768);return false;\" title='" ;
24
  _e('Ask a support question (in English or French only) via ezSupport @ $0.95', 'easy-adsenser') ;
25
+ echo "'><img src='$plugindir/ezsupport.png' class='alignright' alt='ezSupport Portal'/></a>" ;
26
  printf(__("If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions.", 'easy-adsenser'), $value, $link) ;
27
  echo "<br style='line-height: 20px;'/>" ;
28
  _e("Or, if you still need help, you can raise a support ticket.", 'easy-adsenser') ;
tail-text.php CHANGED
@@ -41,7 +41,6 @@ function makeTextWithTooltipTag($plg, $text, $tip, $title='', $width='')
41
  "onmouseover=\"TagToTip('". $plg . "', " .
42
  "$widthText $titleText FIX, [this, 5, 5])\" " .
43
  "onmouseout=\"UnTip()\">$text</span>" ;
44
- echo "<div id=$plg> $tip </div>";
45
  return $return ;
46
  }
47
  function renderPlg($name, $plg) {
@@ -58,13 +57,14 @@ function renderPlg($name, $plg) {
58
  $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
59
  $liteVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Get Lite Version</a> " ;
60
  $proVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Get Pro Version</a><br />" ;
61
- $why = "<a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin'><img src='$plugindir/ezpaypal.png' border='0' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
62
  <br />".$plg['pro'] ;
63
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
64
  "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
65
  makeTextWithTooltip($moreInfo, "Read more about $value at its own page.<br />".$title, "More Information about $value", 300) .
66
  makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) .
67
  makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
 
68
  "</li>\n" ;
69
  }
70
  function renderBook($name, $plg) {
@@ -81,13 +81,14 @@ function renderBook($name, $plg) {
81
  $amazon = $plg['amazon'] ;
82
  if (!empty($amazon)) $buyAmazon = "&nbsp;&nbsp; <a href='$amazon' title='Get $value from Amazon.com'>Get it at Amazon</a> " ;
83
  $buyNow = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy and download $value for \$$price'>Buy and Download now!</a><br />" ;
84
- $why = "<a href='http://buy.thulasidas.com/$name' title='$name'><img src='$plugindir/ezpaypal.png' border='0' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
85
  <br />".$title.$desc." $value costs only \$$price -- direct from the author." ;
86
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
87
  "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
88
  makeTextWithTooltip($moreInfo, "Read all about $value at its own site.<br />", "$value", 300) .
89
  makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 350) .
90
  makeTextWithTooltipTag($name, $buyNow, $why, "Buy $value!", 300) .
 
91
  "</li>\n" ;
92
  }
93
  ?>
@@ -104,7 +105,8 @@ function popupwindow(url, title, w, h){ var left =(screen.width/2)-(w/2); var
104
  <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
105
 
106
  <?php
107
- foreach ($myPlugins as $name => $plg) if ($name != $plgName) renderPlg($name, $plg) ;
 
108
  ?>
109
 
110
  </ul>
41
  "onmouseover=\"TagToTip('". $plg . "', " .
42
  "$widthText $titleText FIX, [this, 5, 5])\" " .
43
  "onmouseout=\"UnTip()\">$text</span>" ;
 
44
  return $return ;
45
  }
46
  function renderPlg($name, $plg) {
57
  $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
58
  $liteVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Get Lite Version</a> " ;
59
  $proVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Get Pro Version</a><br />" ;
60
+ $why = "<a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
61
  <br />".$plg['pro'] ;
62
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
63
  "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
64
  makeTextWithTooltip($moreInfo, "Read more about $value at its own page.<br />".$title, "More Information about $value", 300) .
65
  makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) .
66
  makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
67
+ "<span id=$name> $why </span>" .
68
  "</li>\n" ;
69
  }
70
  function renderBook($name, $plg) {
81
  $amazon = $plg['amazon'] ;
82
  if (!empty($amazon)) $buyAmazon = "&nbsp;&nbsp; <a href='$amazon' title='Get $value from Amazon.com'>Get it at Amazon</a> " ;
83
  $buyNow = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy and download $value for \$$price'>Buy and Download now!</a><br />" ;
84
+ $why = "<a href='http://buy.thulasidas.com/$name' title='$name' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
85
  <br />".$title.$desc." $value costs only \$$price -- direct from the author." ;
86
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
87
  "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
88
  makeTextWithTooltip($moreInfo, "Read all about $value at its own site.<br />", "$value", 300) .
89
  makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 350) .
90
  makeTextWithTooltipTag($name, $buyNow, $why, "Buy $value!", 300) .
91
+ "<span id=$name> $why </span>" .
92
  "</li>\n" ;
93
  }
94
  ?>
105
  <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
106
 
107
  <?php
108
+ $keys = array_rand($myPlugins, 3);
109
+ foreach ($keys as $name) if ($name != $plgName) renderPlg($name, $myPlugins[$name]) ;
110
  ?>
111
 
112
  </ul>
why-pro.php CHANGED
@@ -14,7 +14,7 @@ function renderWhyPro($name, $plg) {
14
  $toolTip .= addslashes('<br />' . $moreInfo) ;
15
  $why = addslashes($plg['pro']) ;
16
  echo "<b>Get Pro Version!</b>
17
- <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $value plugin for \$$price'><img src='$plugindir/ezpaypal.png' border='0' alt='ezPayPal -- Your Instant PayPal Shop.' class='alignright' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get $value', 1024, 768);return false;\"/></a>
18
  <br />
19
  You are using the Lite version of $value, which is available in two versions: <b>Lite</b> and <b>Pro</b>.
20
  <ul><li>
14
  $toolTip .= addslashes('<br />' . $moreInfo) ;
15
  $why = addslashes($plg['pro']) ;
16
  echo "<b>Get Pro Version!</b>
17
+ <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $value plugin for \$$price'><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Your Instant PayPal Shop.' class='alignright' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get $value', 1024, 768);return false;\"/></a>
18
  <br />
19
  You are using the Lite version of $value, which is available in two versions: <b>Lite</b> and <b>Pro</b>.
20
  <ul><li>