Google XML Sitemaps v3 for qTranslate - Version 3.2.6.1

Version Description

Download this release

Release Info

Developer DSmidgy
Plugin Icon wp plugin Google XML Sitemaps v3 for qTranslate
Version 3.2.6.1
Comparing to
See all releases

Code changes from version 3.2.5.1 to 3.2.6.1

documentation.txt CHANGED
@@ -231,6 +231,10 @@
231
  Changed get_bloginfo('siteurl') to get_bloginfo('url') to avoid deprecation warning
232
  Changed has_cap(10) to has_cap('level_10') to avoid deprecation warning
233
  Fixed wrong SQL statement for author pages (Ticket #1108), thanks to twoenough
 
 
 
 
234
 
235
  Maybe Todo:
236
  ==============================================================================
231
  Changed get_bloginfo('siteurl') to get_bloginfo('url') to avoid deprecation warning
232
  Changed has_cap(10) to has_cap('level_10') to avoid deprecation warning
233
  Fixed wrong SQL statement for author pages (Ticket #1108), thanks to twoenough
234
+ 2010-07-11 3.2.5 Backported Bing ping success fix from beta
235
+ Added friendly hint to try out the new beta
236
+ 2010-09-19 3.2.6 Removed YAHOO ping since YAHOO uses bing now
237
+ Removed deprecated function call
238
 
239
  Maybe Todo:
240
  ==============================================================================
readme.txt CHANGED
@@ -4,15 +4,15 @@ Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
4
  Tags: seo, google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml, qtranslate
5
  Requires at least: 2.1
6
  Tested up to: 3.3
7
- Stable tag: 3.2.5.1
8
 
9
  This plugin will generate a special XML sitemap which will help search engines to better index your blog. With qTranslate support.
10
 
11
  == Description ==
12
 
13
  This plugin will generate a special XML sitemap which will help search engines like Google, Bing, Yahoo and Ask.com to better index your blog. With such a sitemap, it's much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.
14
-
15
- This fork is compatible with qTranslate multilingual plugin. More on http://blog.slo-host.com/2011/06/qtranslate-support-for-google-xml-sitemaps-plugin/
16
 
17
  Related Links:
18
 
4
  Tags: seo, google, sitemaps, google sitemaps, yahoo, msn, ask, live, xml sitemap, xml, qtranslate
5
  Requires at least: 2.1
6
  Tested up to: 3.3
7
+ Stable tag: 3.2.6.1
8
 
9
  This plugin will generate a special XML sitemap which will help search engines to better index your blog. With qTranslate support.
10
 
11
  == Description ==
12
 
13
  This plugin will generate a special XML sitemap which will help search engines like Google, Bing, Yahoo and Ask.com to better index your blog. With such a sitemap, it's much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.
14
+ <br />
15
+ This fork is compatible with qTranslate multilingual plugin. It can translate more types of URLs (categories, tags, etc.) than NeoEGM's plugin. More on http://blog.slo-host.com/2011/06/qtranslate-support-for-google-xml-sitemaps-plugin/
16
 
17
  Related Links:
18
 
sitemap-core.original.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
 
4
- $Id: sitemap-core.php 412231 2011-07-19 21:35:16Z arnee $
5
 
6
  */
7
 
@@ -188,31 +188,6 @@ class GoogleSitemapGeneratorStatus {
188
  return round($this->_googleEndTime - $this->_googleStartTime,2);
189
  }
190
 
191
- var $_usedYahoo = false;
192
- var $_yahooUrl = '';
193
- var $_yahooSuccess = false;
194
- var $_yahooStartTime = 0;
195
- var $_yahooEndTime = 0;
196
-
197
- function StartYahooPing($url) {
198
- $this->_yahooUrl = $url;
199
- $this->_usedYahoo = true;
200
- $this->_yahooStartTime = $this->GetMicrotimeFloat();
201
-
202
- $this->Save();
203
- }
204
-
205
- function EndYahooPing($success) {
206
- $this->_yahooEndTime = $this->GetMicrotimeFloat();
207
- $this->_yahooSuccess = $success;
208
-
209
- $this->Save();
210
- }
211
-
212
- function GetYahooTime() {
213
- return round($this->_yahooEndTime - $this->_yahooStartTime,2);
214
- }
215
-
216
  var $_usedAsk = false;
217
  var $_askUrl = '';
218
  var $_askSuccess = false;
@@ -746,7 +721,7 @@ class GoogleSitemapGenerator {
746
  /**
747
  * @var Version of the generator in SVN
748
  */
749
- var $_svnVersion = '$Id: sitemap-core.php 412231 2011-07-19 21:35:16Z arnee $';
750
 
751
  /**
752
  * @var array The unserialized array with the stored options
@@ -910,8 +885,6 @@ class GoogleSitemapGenerator {
910
  $this->_options["sm_b_xml"]=true; //Create a .xml file
911
  $this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
912
  $this->_options["sm_b_ping"]=true; //Auto ping Google
913
- $this->_options["sm_b_pingyahoo"]=false; //Auto ping YAHOO
914
- $this->_options["sm_b_yahookey"]=''; //YAHOO Application Key
915
  $this->_options["sm_b_pingask"]=true; //Auto ping Ask.com
916
  $this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
917
  $this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
@@ -2245,20 +2218,6 @@ class GoogleSitemapGenerator {
2245
  }
2246
  }
2247
 
2248
- //Ping YAHOO
2249
- if($this->GetOption("b_pingyahoo")===true && $this->GetOption("b_yahookey")!="" && !empty($pingUrl)) {
2250
- $sPingUrl="http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=" . $this->GetOption("b_yahookey") . "&url=" . urlencode($pingUrl);
2251
- $status->StartYahooPing($sPingUrl);
2252
- $pingres=$this->RemoteOpen($sPingUrl);
2253
-
2254
- if($pingres==NULL || $pingres===false || strpos(strtolower($pingres),"success")===false) {
2255
- trigger_error("Failed to ping YAHOO: " . htmlspecialchars(strip_tags($pingres)),E_USER_NOTICE);
2256
- $status->EndYahooPing(false,$this->_lastError);
2257
- } else {
2258
- $status->EndYahooPing(true);
2259
- }
2260
- }
2261
-
2262
  //Ping Bing
2263
  if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
2264
  $sPingUrl="http://www.bing.com/webmaster/ping.aspx?siteMap=" . urlencode($pingUrl);
@@ -2308,9 +2267,6 @@ class GoogleSitemapGenerator {
2308
  case "google":
2309
  $url = $status->_googleUrl;
2310
  break;
2311
- case "yahoo":
2312
- $url = $status->_yahooUrl;
2313
- break;
2314
  case "msn":
2315
  $url = $status->_msnUrl;
2316
  break;
1
  <?php
2
  /*
3
 
4
+ $Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee $
5
 
6
  */
7
 
188
  return round($this->_googleEndTime - $this->_googleStartTime,2);
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  var $_usedAsk = false;
192
  var $_askUrl = '';
193
  var $_askSuccess = false;
721
  /**
722
  * @var Version of the generator in SVN
723
  */
724
+ var $_svnVersion = '$Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee $';
725
 
726
  /**
727
  * @var array The unserialized array with the stored options
885
  $this->_options["sm_b_xml"]=true; //Create a .xml file
886
  $this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
887
  $this->_options["sm_b_ping"]=true; //Auto ping Google
 
 
888
  $this->_options["sm_b_pingask"]=true; //Auto ping Ask.com
889
  $this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
890
  $this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
2218
  }
2219
  }
2220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2221
  //Ping Bing
2222
  if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
2223
  $sPingUrl="http://www.bing.com/webmaster/ping.aspx?siteMap=" . urlencode($pingUrl);
2267
  case "google":
2268
  $url = $status->_googleUrl;
2269
  break;
 
 
 
2270
  case "msn":
2271
  $url = $status->_msnUrl;
2272
  break;
sitemap-core.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
 
4
- $Id: sitemap-core.php 412231 2011-07-19 21:35:16Z arnee $
5
 
6
  */
7
 
@@ -188,31 +188,6 @@ class GoogleSitemapGeneratorStatus {
188
  return round($this->_googleEndTime - $this->_googleStartTime,2);
189
  }
190
 
191
- var $_usedYahoo = false;
192
- var $_yahooUrl = '';
193
- var $_yahooSuccess = false;
194
- var $_yahooStartTime = 0;
195
- var $_yahooEndTime = 0;
196
-
197
- function StartYahooPing($url) {
198
- $this->_yahooUrl = $url;
199
- $this->_usedYahoo = true;
200
- $this->_yahooStartTime = $this->GetMicrotimeFloat();
201
-
202
- $this->Save();
203
- }
204
-
205
- function EndYahooPing($success) {
206
- $this->_yahooEndTime = $this->GetMicrotimeFloat();
207
- $this->_yahooSuccess = $success;
208
-
209
- $this->Save();
210
- }
211
-
212
- function GetYahooTime() {
213
- return round($this->_yahooEndTime - $this->_yahooStartTime,2);
214
- }
215
-
216
  var $_usedAsk = false;
217
  var $_askUrl = '';
218
  var $_askSuccess = false;
@@ -746,7 +721,7 @@ class GoogleSitemapGenerator {
746
  /**
747
  * @var Version of the generator in SVN
748
  */
749
- var $_svnVersion = '$Id: sitemap-core.php 412231 2011-07-19 21:35:16Z arnee $';
750
 
751
  /**
752
  * @var array The unserialized array with the stored options
@@ -910,8 +885,6 @@ class GoogleSitemapGenerator {
910
  $this->_options["sm_b_xml"]=true; //Create a .xml file
911
  $this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
912
  $this->_options["sm_b_ping"]=true; //Auto ping Google
913
- $this->_options["sm_b_pingyahoo"]=false; //Auto ping YAHOO
914
- $this->_options["sm_b_yahookey"]=''; //YAHOO Application Key
915
  $this->_options["sm_b_pingask"]=true; //Auto ping Ask.com
916
  $this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
917
  $this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
@@ -2257,20 +2230,6 @@ class GoogleSitemapGenerator {
2257
  }
2258
  }
2259
 
2260
- //Ping YAHOO
2261
- if($this->GetOption("b_pingyahoo")===true && $this->GetOption("b_yahookey")!="" && !empty($pingUrl)) {
2262
- $sPingUrl="http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=" . $this->GetOption("b_yahookey") . "&url=" . urlencode($pingUrl);
2263
- $status->StartYahooPing($sPingUrl);
2264
- $pingres=$this->RemoteOpen($sPingUrl);
2265
-
2266
- if($pingres==NULL || $pingres===false || strpos(strtolower($pingres),"success")===false) {
2267
- trigger_error("Failed to ping YAHOO: " . htmlspecialchars(strip_tags($pingres)),E_USER_NOTICE);
2268
- $status->EndYahooPing(false,$this->_lastError);
2269
- } else {
2270
- $status->EndYahooPing(true);
2271
- }
2272
- }
2273
-
2274
  //Ping Bing
2275
  if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
2276
  $sPingUrl="http://www.bing.com/webmaster/ping.aspx?siteMap=" . urlencode($pingUrl);
@@ -2320,9 +2279,6 @@ class GoogleSitemapGenerator {
2320
  case "google":
2321
  $url = $status->_googleUrl;
2322
  break;
2323
- case "yahoo":
2324
- $url = $status->_yahooUrl;
2325
- break;
2326
  case "msn":
2327
  $url = $status->_msnUrl;
2328
  break;
1
  <?php
2
  /*
3
 
4
+ $Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee $
5
 
6
  */
7
 
188
  return round($this->_googleEndTime - $this->_googleStartTime,2);
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  var $_usedAsk = false;
192
  var $_askUrl = '';
193
  var $_askSuccess = false;
721
  /**
722
  * @var Version of the generator in SVN
723
  */
724
+ var $_svnVersion = '$Id: sitemap-core.php 440117 2011-09-19 13:24:49Z arnee $';
725
 
726
  /**
727
  * @var array The unserialized array with the stored options
885
  $this->_options["sm_b_xml"]=true; //Create a .xml file
886
  $this->_options["sm_b_gzip"]=true; //Create a gzipped .xml file(.gz) file
887
  $this->_options["sm_b_ping"]=true; //Auto ping Google
 
 
888
  $this->_options["sm_b_pingask"]=true; //Auto ping Ask.com
889
  $this->_options["sm_b_pingmsn"]=true; //Auto ping MSN
890
  $this->_options["sm_b_manual_enabled"]=false; //Allow manual creation of the sitemap via GET request
2230
  }
2231
  }
2232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2233
  //Ping Bing
2234
  if($this->GetOption("b_pingmsn") && !empty($pingUrl)) {
2235
  $sPingUrl="http://www.bing.com/webmaster/ping.aspx?siteMap=" . urlencode($pingUrl);
2279
  case "google":
2280
  $url = $status->_googleUrl;
2281
  break;
 
 
 
2282
  case "msn":
2283
  $url = $status->_msnUrl;
2284
  break;
sitemap-ui.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
 
4
- $Id: sitemap-ui.php 412231 2011-07-19 21:35:16Z arnee $
5
 
6
  */
7
 
@@ -183,7 +183,7 @@ class GoogleSitemapGeneratorUI {
183
 
184
  //Options of the category "Basic Settings" are boolean, except the filename and the autoprio provider
185
  if(substr($k,0,5)=="sm_b_") {
186
- if($k=="sm_b_filename" || $k=="sm_b_fileurl_manual" || $k=="sm_b_filename_manual" || $k=="sm_b_prio_provider" || $k=="sm_b_manual_key" || $k == "sm_b_yahookey" || $k == "sm_b_style" || $k == "sm_b_memory") {
187
  if($k=="sm_b_filename_manual" && strpos($_POST[$k],"\\")!==false){
188
  $_POST[$k]=stripslashes($_POST[$k]);
189
  }
@@ -418,10 +418,6 @@ class GoogleSitemapGeneratorUI {
418
  background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-google.gif);
419
  }
420
 
421
- a.sm_resYahoo {
422
- background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-yahoo.gif);
423
- }
424
-
425
  a.sm_resBing {
426
  background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-bing.gif);
427
  }
@@ -607,10 +603,7 @@ class GoogleSitemapGeneratorUI {
607
  <?php $this->HtmlPrintBoxHeader('sm_smres',__('Sitemap Resources:','sitemap'),true); ?>
608
  <a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
609
  <a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwb'); ?>"><?php _e('Webmaster Blog','sitemap'); ?></a>
610
-
611
- <a class="sm_button sm_resYahoo" href="<?php echo $this->sg->GetRedirectLink('sitemap-yse'); ?>"><?php _e('Site Explorer','sitemap'); ?></a>
612
- <a class="sm_button sm_resYahoo" href="<?php echo $this->sg->GetRedirectLink('sitemap-ywb'); ?>"><?php _e('Search Blog','sitemap'); ?></a>
613
-
614
  <a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
615
  <a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lswcb'); ?>"><?php _e('Webmaster Center Blog','sitemap'); ?></a>
616
  <br />
@@ -695,19 +688,7 @@ class GoogleSitemapGeneratorUI {
695
  echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=google&noheader=true",'sitemap'),__('There was a problem while notifying Google. <a href="%s">View result</a>','sitemap')) . "</li>";
696
  }
697
  }
698
-
699
- if($status->_usedYahoo) {
700
- if($status->_yahooSuccess) {
701
- echo "<li>" .__("YAHOO was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
702
- $yt = $status->GetYahooTime();
703
- if($yt>4) {
704
- echo "<li class=\sm_optimize\">" . str_replace("%time%",$yt,__("It took %time% seconds to notify YAHOO, maybe you want to disable this feature to reduce the building time.",'sitemap')) . "</li>";
705
- }
706
- } else {
707
- echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=yahoo&noheader=true",'sitemap'),__('There was a problem while notifying YAHOO. <a href="%s">View result</a>','sitemap')) . "</li>";
708
- }
709
- }
710
-
711
  if($status->_usedMsn) {
712
  if($status->_msnSuccess) {
713
  echo "<li>" .__("Bing was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
@@ -833,12 +814,6 @@ class GoogleSitemapGeneratorUI {
833
  <label for="sm_b_pingask"><?php _e('Notify Ask.com about updates of your Blog', 'sitemap') ?></label><br />
834
  <small><?php _e('No registration required.','sitemap'); ?></small>
835
  </li>
836
- <li>
837
- <input type="checkbox" id="sm_b_pingyahoo" name="sm_b_pingyahoo" <?php echo ($this->sg->GetOption("b_pingyahoo")==true?"checked=\"checked\"":"") ?> />
838
- <label for="sm_b_pingyahoo"><?php _e('Notify YAHOO about updates of your Blog', 'sitemap') ?></label><br />
839
- <label for="sm_b_yahookey"><?php _e('Your Application ID:', 'sitemap') ?> <input type="text" name="sm_b_yahookey" id="sm_b_yahookey" value="<?php echo $this->sg->GetOption("b_yahookey"); ?>" /></label><br />
840
- <small><?php echo str_replace(array("%s1","%s2"),array($this->sg->GetRedirectLink('sitemap-ykr'),' (<a href="http://developer.yahoo.net/about/">Web Services by Yahoo!</a>)'),__('Don\'t you have such a key? <a href="%s1">Request one here</a>! %s2','sitemap')); ?></small>
841
- </li>
842
  <li>
843
  <label for="sm_b_robots">
844
  <input type="checkbox" id="sm_b_robots" name="sm_b_robots" <?php echo ($this->sg->GetOption("b_robots")==true?"checked=\"checked\"":"") ?> />
@@ -1315,14 +1290,14 @@ class GoogleSitemapGeneratorUI {
1315
  <input type="hidden" name="business" value="<?php echo "donate" /* N O S P A M */ . "@" . "arnebra" . "chhold.de"; ?>" />
1316
  <input type="hidden" name="item_name" value="Sitemap Generator for WordPress. Please tell me if if you don't want to be listed on the donator list." />
1317
  <input type="hidden" name="no_shipping" value="1" />
1318
- <input type="hidden" name="return" value="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $this->sg->GetBackLink(); ?>&amp;sm_donated=true" />
1319
  <input type="hidden" name="item_number" value="0001" />
1320
  <input type="hidden" name="currency_code" value="<?php echo $myLc["cc"]; ?>" />
1321
  <input type="hidden" name="bn" value="PP-BuyNowBF" />
1322
  <input type="hidden" name="lc" value="<?php echo $myLc["lc"]; ?>" />
1323
  <input type="hidden" name="rm" value="2" />
1324
  <input type="hidden" name="on0" value="Your Website" />
1325
- <input type="hidden" name="os0" value="<?php echo get_bloginfo("home"); ?>"/>
1326
  </form>
1327
  </div>
1328
  <?php
1
  <?php
2
  /*
3
 
4
+ $Id: sitemap-ui.php 440117 2011-09-19 13:24:49Z arnee $
5
 
6
  */
7
 
183
 
184
  //Options of the category "Basic Settings" are boolean, except the filename and the autoprio provider
185
  if(substr($k,0,5)=="sm_b_") {
186
+ if($k=="sm_b_filename" || $k=="sm_b_fileurl_manual" || $k=="sm_b_filename_manual" || $k=="sm_b_prio_provider" || $k=="sm_b_manual_key" || $k == "sm_b_style" || $k == "sm_b_memory") {
187
  if($k=="sm_b_filename_manual" && strpos($_POST[$k],"\\")!==false){
188
  $_POST[$k]=stripslashes($_POST[$k]);
189
  }
418
  background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-google.gif);
419
  }
420
 
 
 
 
 
421
  a.sm_resBing {
422
  background-image:url(<?php echo $this->sg->GetPluginUrl(); ?>img/icon-bing.gif);
423
  }
603
  <?php $this->HtmlPrintBoxHeader('sm_smres',__('Sitemap Resources:','sitemap'),true); ?>
604
  <a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
605
  <a class="sm_button sm_resGoogle" href="<?php echo $this->sg->GetRedirectLink('sitemap-gwb'); ?>"><?php _e('Webmaster Blog','sitemap'); ?></a>
606
+
 
 
 
607
  <a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lwt'); ?>"><?php _e('Webmaster Tools','sitemap'); ?></a>
608
  <a class="sm_button sm_resBing" href="<?php echo $this->sg->GetRedirectLink('sitemap-lswcb'); ?>"><?php _e('Webmaster Center Blog','sitemap'); ?></a>
609
  <br />
688
  echo "<li class=\"sm_error\">" . str_replace("%s",wp_nonce_url($this->sg->GetBackLink() . "&sm_ping_service=google&noheader=true",'sitemap'),__('There was a problem while notifying Google. <a href="%s">View result</a>','sitemap')) . "</li>";
689
  }
690
  }
691
+
 
 
 
 
 
 
 
 
 
 
 
 
692
  if($status->_usedMsn) {
693
  if($status->_msnSuccess) {
694
  echo "<li>" .__("Bing was <b>successfully notified</b> about changes.",'sitemap'). "</li>";
814
  <label for="sm_b_pingask"><?php _e('Notify Ask.com about updates of your Blog', 'sitemap') ?></label><br />
815
  <small><?php _e('No registration required.','sitemap'); ?></small>
816
  </li>
 
 
 
 
 
 
817
  <li>
818
  <label for="sm_b_robots">
819
  <input type="checkbox" id="sm_b_robots" name="sm_b_robots" <?php echo ($this->sg->GetOption("b_robots")==true?"checked=\"checked\"":"") ?> />
1290
  <input type="hidden" name="business" value="<?php echo "donate" /* N O S P A M */ . "@" . "arnebra" . "chhold.de"; ?>" />
1291
  <input type="hidden" name="item_name" value="Sitemap Generator for WordPress. Please tell me if if you don't want to be listed on the donator list." />
1292
  <input type="hidden" name="no_shipping" value="1" />
1293
+ <input type="hidden" name="return" value="<?php echo $this->sg->GetBackLink(); ?>&amp;sm_donated=true" />
1294
  <input type="hidden" name="item_number" value="0001" />
1295
  <input type="hidden" name="currency_code" value="<?php echo $myLc["cc"]; ?>" />
1296
  <input type="hidden" name="bn" value="PP-BuyNowBF" />
1297
  <input type="hidden" name="lc" value="<?php echo $myLc["lc"]; ?>" />
1298
  <input type="hidden" name="rm" value="2" />
1299
  <input type="hidden" name="on0" value="Your Website" />
1300
+ <input type="hidden" name="os0" value="<?php echo get_bloginfo("url"); ?>"/>
1301
  </form>
1302
  </div>
1303
  <?php
sitemap.original.php ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ $Id: sitemap.php 440117 2011-09-19 13:24:49Z arnee $
5
+
6
+ Google XML Sitemaps Generator for WordPress
7
+ ==============================================================================
8
+
9
+ This generator will create a sitemaps.org compliant sitemap of your WordPress blog.
10
+ Currently homepage, posts, static pages, categories, archives and author pages are supported.
11
+
12
+ The priority of a post depends on its comments. You can choose the way the priority
13
+ is calculated in the options screen.
14
+
15
+ Feel free to visit my website under www.arnebrachhold.de!
16
+
17
+ For aditional details like installation instructions, please check the readme.txt and documentation.txt files.
18
+
19
+ Have fun!
20
+ Arne
21
+
22
+
23
+ Info for WordPress:
24
+ ==============================================================================
25
+ Plugin Name: Google XML Sitemaps
26
+ Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
27
+ Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog.
28
+ Version: 3.2.6
29
+ Author: Arne Brachhold
30
+ Author URI: http://www.arnebrachhold.de/
31
+ Text Domain: sitemap
32
+ Domain Path: /lang/
33
+
34
+ */
35
+
36
+ /**
37
+ * Loader class for the Google Sitemap Generator
38
+ *
39
+ * This class takes care of the sitemap plugin and tries to load the different parts as late as possible.
40
+ * On normal requests, only this small class is loaded. When the sitemap needs to be rebuild, the generator itself is loaded.
41
+ * The last stage is the user interface which is loaded when the administration page is requested.
42
+ */
43
+ class GoogleSitemapGeneratorLoader {
44
+ /**
45
+ * Enabled the sitemap plugin with registering all required hooks
46
+ *
47
+ * If the sm_command and sm_key GET params are given, the function will init the generator to rebuild the sitemap.
48
+ */
49
+ function Enable() {
50
+
51
+ //Check for 3.0 multisite, NOT supported yet!
52
+ if((defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE) || (function_exists('is_multisite') && is_multisite())) {
53
+ if(function_exists('is_super_admin') && is_super_admin()) {
54
+ add_action('admin_notices', array('GoogleSitemapGeneratorLoader', 'AddMultisiteWarning'));
55
+ }
56
+
57
+ return;
58
+ }
59
+
60
+ //Register the sitemap creator to wordpress...
61
+ add_action('admin_menu', array('GoogleSitemapGeneratorLoader', 'RegisterAdminPage'));
62
+
63
+ //Nice icon for Admin Menu (requires Ozh Admin Drop Down Plugin)
64
+ add_filter('ozh_adminmenu_icon', array('GoogleSitemapGeneratorLoader', 'RegisterAdminIcon'));
65
+
66
+ //Additional links on the plugin page
67
+ add_filter('plugin_row_meta', array('GoogleSitemapGeneratorLoader', 'RegisterPluginLinks'),10,2);
68
+
69
+ //Existing posts was deleted
70
+ add_action('delete_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'),9999,1);
71
+
72
+ //Existing post was published
73
+ add_action('publish_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'),9999,1);
74
+
75
+ //Existing page was published
76
+ add_action('publish_page', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'),9999,1);
77
+
78
+ //WP Cron hook
79
+ add_action('sm_build_cron', array('GoogleSitemapGeneratorLoader', 'CallBuildSitemap'),1,0);
80
+
81
+ //External build hook
82
+ add_action('sm_rebuild', array('GoogleSitemapGeneratorLoader', 'CallBuildNowRequest'),1,0);
83
+
84
+ //Robots.txt request
85
+ add_action('do_robots', array('GoogleSitemapGeneratorLoader', 'CallDoRobots'),100,0);
86
+
87
+ //Help topics for context sensitive help
88
+ add_filter('contextual_help_list', array('GoogleSitemapGeneratorLoader', 'CallHtmlShowHelpList'),9999,2);
89
+
90
+ //Check if this is a BUILD-NOW request (key will be checked later)
91
+ if(!empty($_GET["sm_command"]) && !empty($_GET["sm_key"])) {
92
+ GoogleSitemapGeneratorLoader::CallCheckForManualBuild();
93
+ }
94
+
95
+ //Check if the result of a ping request should be shown
96
+ if(!empty($_GET["sm_ping_service"])) {
97
+ GoogleSitemapGeneratorLoader::CallShowPingResult();
98
+ }
99
+ }
100
+
101
+ /**
102
+ * Outputs the warning bar if multisite mode is activated
103
+ */
104
+ function AddMultisiteWarning() {
105
+ echo "<div id='sm-multisite-warning' class='error fade'><p><strong>".__('This version of Google XML Sitemaps is not multisite compatible.','sitemap')."</strong><br /> ".sprintf(__('Unfortunately this version of the Google XML Sitemaps plugin was not tested with the multisite feature of WordPress 3.0 yet. <br />The plugin will not be active until you disable the multisite mode. <br />Or you can <a href="%1$s">try the new beta</a> which supports all the new WordPress features!','sitemap'), "http://www.arnebrachhold.de/redir/sitemap-info-beta/")."</p></div>";
106
+ }
107
+
108
+ /**
109
+ * Registers the plugin in the admin menu system
110
+ */
111
+ function RegisterAdminPage() {
112
+
113
+ if (function_exists('add_options_page')) {
114
+ add_options_page(__('XML-Sitemap Generator','sitemap'), __('XML-Sitemap','sitemap'), 'level_10', GoogleSitemapGeneratorLoader::GetBaseName(), array('GoogleSitemapGeneratorLoader','CallHtmlShowOptionsPage'));
115
+ }
116
+ }
117
+
118
+ function RegisterAdminIcon($hook) {
119
+ if ( $hook == GoogleSitemapGeneratorLoader::GetBaseName() && function_exists('plugins_url')) {
120
+ return plugins_url('img/icon-arne.gif',GoogleSitemapGeneratorLoader::GetBaseName());
121
+ }
122
+ return $hook;
123
+ }
124
+
125
+ function RegisterPluginLinks($links, $file) {
126
+ $base = GoogleSitemapGeneratorLoader::GetBaseName();
127
+ if ($file == $base) {
128
+ $links[] = '<a href="options-general.php?page=' . GoogleSitemapGeneratorLoader::GetBaseName() .'">' . __('Settings','sitemap') . '</a>';
129
+ $links[] = '<a href="http://www.arnebrachhold.de/redir/sitemap-plist-faq/">' . __('FAQ','sitemap') . '</a>';
130
+ $links[] = '<a href="http://www.arnebrachhold.de/redir/sitemap-plist-support/">' . __('Support','sitemap') . '</a>';
131
+ $links[] = '<a href="http://www.arnebrachhold.de/redir/sitemap-plist-donate/">' . __('Donate','sitemap') . '</a>';
132
+ }
133
+ return $links;
134
+ }
135
+
136
+ /**
137
+ * Invokes the HtmlShowOptionsPage method of the generator
138
+ */
139
+ function CallHtmlShowOptionsPage() {
140
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
141
+ $gs = &GoogleSitemapGenerator::GetInstance();
142
+ $gs->HtmlShowOptionsPage();
143
+ }
144
+ }
145
+
146
+ /**
147
+ * Invokes the CheckForAutoBuild method of the generator
148
+ */
149
+ function CallCheckForAutoBuild($args) {
150
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
151
+ $gs = &GoogleSitemapGenerator::GetInstance();
152
+ $gs->CheckForAutoBuild($args);
153
+ }
154
+ }
155
+
156
+ /**
157
+ * Invokes the CheckForAutoBuild method of the generator
158
+ */
159
+ function CallBuildNowRequest() {
160
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
161
+ $gs = &GoogleSitemapGenerator::GetInstance();
162
+ $gs->BuildNowRequest();
163
+ }
164
+ }
165
+
166
+ /**
167
+ * Invokes the BuildSitemap method of the generator
168
+ */
169
+ function CallBuildSitemap() {
170
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
171
+ $gs = &GoogleSitemapGenerator::GetInstance();
172
+ $gs->BuildSitemap();
173
+ }
174
+ }
175
+
176
+ /**
177
+ * Invokes the CheckForManualBuild method of the generator
178
+ */
179
+ function CallCheckForManualBuild() {
180
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
181
+ $gs = &GoogleSitemapGenerator::GetInstance();
182
+ $gs->CheckForManualBuild();
183
+ }
184
+ }
185
+
186
+ /**
187
+ * Invokes the ShowPingResult method of the generator
188
+ */
189
+ function CallShowPingResult() {
190
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
191
+ $gs = &GoogleSitemapGenerator::GetInstance();
192
+ $gs->ShowPingResult();
193
+ }
194
+ }
195
+
196
+
197
+ function CallHtmlShowHelpList($filterVal,$screen) {
198
+
199
+ $id = get_plugin_page_hookname(GoogleSitemapGeneratorLoader::GetBaseName(),'options-general.php');
200
+
201
+ if($screen == $id) {
202
+ $links = array(
203
+ __('Plugin Homepage','sitemap')=>'http://www.arnebrachhold.de/redir/sitemap-help-home/',
204
+ __('My Sitemaps FAQ','sitemap')=>'http://www.arnebrachhold.de/redir/sitemap-help-faq/'
205
+ );
206
+
207
+ $filterVal[$id] = '';
208
+
209
+ $i=0;
210
+ foreach($links AS $text=>$url) {
211
+ $filterVal[$id].='<a href="' . $url . '">' . $text . '</a>' . ($i < (count($links)-1)?'<br />':'') ;
212
+ $i++;
213
+ }
214
+ }
215
+ return $filterVal;
216
+ }
217
+
218
+ function CallDoRobots() {
219
+ if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
220
+ $gs = &GoogleSitemapGenerator::GetInstance();
221
+ $gs->DoRobots();
222
+ }
223
+ }
224
+
225
+ /**
226
+ * Loads the actual generator class and tries to raise the memory and time limits if not already done by WP
227
+ *
228
+ * @return boolean true if run successfully
229
+ */
230
+ function LoadPlugin() {
231
+
232
+ $mem = abs(intval(@ini_get('memory_limit')));
233
+ if($mem && $mem < 64) {
234
+ @ini_set('memory_limit', '64M');
235
+ }
236
+
237
+ $time = abs(intval(@ini_get("max_execution_time")));
238
+ if($time != 0 && $time < 120) {
239
+ @set_time_limit(120);
240
+ }
241
+
242
+ if(!class_exists("GoogleSitemapGenerator")) {
243
+
244
+ $path = trailingslashit(dirname(__FILE__));
245
+
246
+ if(!file_exists( $path . 'sitemap-core.php')) return false;
247
+ require_once($path. 'sitemap-core.php');
248
+ }
249
+
250
+ GoogleSitemapGenerator::Enable();
251
+ return true;
252
+ }
253
+
254
+ /**
255
+ * Returns the plugin basename of the plugin (using __FILE__)
256
+ *
257
+ * @return string The plugin basename, "sitemap" for example
258
+ */
259
+ function GetBaseName() {
260
+ return plugin_basename(__FILE__);
261
+ }
262
+
263
+ /**
264
+ * Returns the name of this loader script, using __FILE__
265
+ *
266
+ * @return string The __FILE__ value of this loader script
267
+ */
268
+ function GetPluginFile() {
269
+ return __FILE__;
270
+ }
271
+
272
+ /**
273
+ * Returns the plugin version
274
+ *
275
+ * Uses the WP API to get the meta data from the top of this file (comment)
276
+ *
277
+ * @return string The version like 3.1.1
278
+ */
279
+ function GetVersion() {
280
+ if(!isset($GLOBALS["sm_version"])) {
281
+ if(!function_exists('get_plugin_data')) {
282
+ if(file_exists(ABSPATH . 'wp-admin/includes/plugin.php')) require_once(ABSPATH . 'wp-admin/includes/plugin.php'); //2.3+
283
+ else if(file_exists(ABSPATH . 'wp-admin/admin-functions.php')) require_once(ABSPATH . 'wp-admin/admin-functions.php'); //2.1
284
+ else return "0.ERROR";
285
+ }
286
+ $data = get_plugin_data(__FILE__, false, false);
287
+ $GLOBALS["sm_version"] = $data['Version'];
288
+ }
289
+ return $GLOBALS["sm_version"];
290
+ }
291
+ }
292
+
293
+ //Enable the plugin for the init hook, but only if WP is loaded. Calling this php file directly will do nothing.
294
+ if(defined('ABSPATH') && defined('WPINC')) {
295
+ add_action("init",array("GoogleSitemapGeneratorLoader","Enable"),1000,0);
296
+ }
297
+ ?>
sitemap.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: sitemap.php 412231 2011-07-19 21:35:16Z arnee $
5
 
6
  Google XML Sitemaps Generator for WordPress
7
  ==============================================================================
@@ -25,8 +25,8 @@
25
  Plugin Name: Google XML Sitemaps for qTranslate
26
  Plugin URI: http://wordpress.org/extend/plugins/google-xml-sitemaps-v3-for-qtranslate/
27
  Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog. With qTranslate support.
28
- Version: 3.2.5.1
29
- Author: DSmidgy
30
  Author URI: http://blog.slo-host.com/
31
  Text Domain: sitemap
32
  Domain Path: /lang/
1
  <?php
2
 
3
  /*
4
+ $Id: sitemap.php 440117 2011-09-19 13:24:49Z arnee $
5
 
6
  Google XML Sitemaps Generator for WordPress
7
  ==============================================================================
25
  Plugin Name: Google XML Sitemaps for qTranslate
26
  Plugin URI: http://wordpress.org/extend/plugins/google-xml-sitemaps-v3-for-qtranslate/
27
  Description: This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog. With qTranslate support.
28
+ Version: 3.2.6.1
29
+ Author: DSmidgy, NeoEGM, Arne Brachhold
30
  Author URI: http://blog.slo-host.com/
31
  Text Domain: sitemap
32
  Domain Path: /lang/