Google XML Sitemaps - Version 2.7.1

Version Description

Download this release

Release Info

Developer arnee
Plugin Icon 128x128 Google XML Sitemaps
Version 2.7.1
Comparing to
See all releases

Code changes from version 2.7 to 2.7.1

Files changed (5) hide show
  1. readme.txt +31 -13
  2. screenshot-1.gif +0 -0
  3. sitemap-cs_CZ.mo +0 -0
  4. sitemap-cs_CZ.po +323 -0
  5. sitemap.php +31 -9
readme.txt CHANGED
@@ -1,36 +1,54 @@
1
=== Google Sitemap Generator for WordPress ===
2
3
- Tags: wordpress, sitemap, google, plugin
4
- Contributors: Arne, Michael, Rodney, Hirosama, James, John, Brad, Christian
5
6
- This generator will create a google compliant sitemap of your WordPress blog. Currently homepage, posts, static pages, categories and archives are supported. The priority of a post depends on its comments. More comments, higher priority! If you have external pages which don't belong to your blog, you can also add them to the list. This plugin will automaically notice Google whenever the sitemap gets regenerated.
7
8
== Installation ==
9
10
1. Upload the full directory into your wp-content/plugins directory
11
- 2. Make your blog directory writeable OR create two files called sitemap.xml and sitemap.xml.gz and make them writeable via CHMOD In most cases, your blog directory is already writeable.
12
- 2. Activate it in the Plugin options
13
- 3. Edit or publish a post or click on Rebuild Sitemap on the Sitemap Administration Interface
14
15
== Frequently Asked Questions ==
16
17
= I have no comments (or disabled them) and all my postings have a priority of zero! =
18
Disable automatic priority calculation and define a static priority for posts!
19
20
= Do I always have to click on "Rebuild Sitemap" if I modified a post? =
21
- A: No! If you edit/publish/delete a post, your sitemap gets regenerated!
22
23
- = So much configuration options� Do I need to change them? =
24
- A: No! Only if you want. Default values should be ok!
25
26
- = Works it with all WordPress versions? =
27
- A: I�m sorry I only tested it on 1.5.1.1. Some users reported problems with Wordpress 1.5. You should consider an update of your blog to the current WordPress Version which also contains "an important security fix".
28
29
= I get an fopen error and / or permission denied =
30
- A: If you get permission errors make sure that the script has writing rights in your blog directory. Try to create the sitemap.xml resp. sitemap.xml.gz at manually and upload them with a ftp program and set the rights with CHMOD. Then restart sitemap generation on the administration page. A good tutorial for changing file permissions can be found on the WordPress Codex.
31
32
= Which MySQL Versions are supported? =
33
- A: MySQL 4 works with all version, MySQL 3 support was added in version 2.12
34
35
= Do I really need to use this plugin? =
36
Maybe not if Google knows you page very well and visits your blog every day. If not, it's a good method to tell google about your pages and the last change of them. This makes Google possible to refresh the page only if it's needed and you save your bandwidth.
1
=== Google Sitemap Generator for WordPress ===
2
+ Contributors: arnee
3
+ Donate link: http://www.arnebrachhold.de/redir/sitemap-paypal
4
+ Tags: google, sitemaps, google sitemaps, yahoo, man, xml sitemap
5
+ Requires at least: 1.5.1
6
+ Stable tag: 2.7.1
7
8
+ This plugin will create a google sitemaps compliant XML-Sitemap of your WordPress blog.
9
10
+ == Description ==
11
+
12
+ This plugin will create a google sitemaps compliant XML-Sitemap of your WordPress blog. Currently homepage, posts, static pages, categories and archives are supported. The priority of a post depends on its comments. More comments, higher priority! If you have external pages which don't belong to your blog, you can also add them to the list. This plugin will automatically notice Google whenever the sitemap gets regenerated. You can also visit the plugin homepage for the latest beta version.
13
14
== Installation ==
15
16
1. Upload the full directory into your wp-content/plugins directory
17
+ 2. Make your blog directory writeable OR create two files named sitemap.xml and sitemap.xml.gz and make them writeable via CHMOD In most cases, your blog directory is already writeable.
18
+ 3. Double make sure that your blog directory is writable or two writable files named sitemap.xml and sitemap.xml.gz exist!
19
+ 4. Activate it in the Plugin options
20
+ 5. Edit or publish a post or click on Rebuild Sitemap on the Sitemap Administration Interface
21
22
== Frequently Asked Questions ==
23
24
= I have no comments (or disabled them) and all my postings have a priority of zero! =
25
+
26
Disable automatic priority calculation and define a static priority for posts!
27
28
= Do I always have to click on "Rebuild Sitemap" if I modified a post? =
29
30
+ No! If you edit/publish/delete a post, your sitemap gets regenerated!
31
+
32
+ = So much configuration options... Do I need to change them? =
33
+
34
+ No! Only if you want. Default values should be ok!
35
+
36
+ = Does it work with all WordPress versions? =
37
38
+ This version should work with all WordPress versions from 1.5.1. If you're using WordPress 2.1, check out the current [beta version](http://www.arnebrachhold.de/2006/01/07/google-sitemap-generator-for-wordpress-3-beta "Google Sitemap Generator for WordPress Plugin Beta Version")
39
40
= I get an fopen error and / or permission denied =
41
+
42
+ If you get permission errors make sure that the script has writing rights in your blog directory. Try to create the sitemap.xml resp. sitemap.xml.gz at manually and upload them with a ftp program and set the rights to 777 with CHMOD. Then restart sitemap generation on the administration page. A good tutorial for changing file permissions can be found on the WordPress Codex.
43
44
= Which MySQL Versions are supported? =
45
+
46
+ MySQL 4 works with all version, MySQL 3 support was added in version 2.12
47
48
= Do I really need to use this plugin? =
49
+
50
Maybe not if Google knows you page very well and visits your blog every day. If not, it's a good method to tell google about your pages and the last change of them. This makes Google possible to refresh the page only if it's needed and you save your bandwidth.
51
+
52
+ == Screenshots ==
53
+
54
+ 1. Administration interface in WordPress 1.5. Check the latest beta for WordPress 2.0 Style.
screenshot-1.gif ADDED
Binary file
sitemap-cs_CZ.mo ADDED
Binary file
sitemap-cs_CZ.po ADDED
@@ -0,0 +1,323 @@
1
+ # [Countryname] Language File for sitemap (sitemap-[localname].po)
2
+ # Copyright (C) 2005 [name] : [URL]
3
+ # This file is distributed under the same license as the WordPress package.
4
+ # [name] <[mail-address]>, 2005.
5
+ # $Id: sitemap.pot 2502 2005-07-03 20:50:38Z arnee $
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: sitemap\n"
10
+ "Report-Msgid-Bugs-To: <[mail-address]>\n"
11
+ "POT-Creation-Date: 2005-06-15 00:00+0000\n"
12
+ "PO-Revision-Date: 2007-08-05 23:21+0100\n"
13
+ "Last-Translator: Peter Kahoun <kahi@kahi.cz>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Language-Team: \n"
18
+
19
+ #: sitemap.php:375
20
+ msgid "always"
21
+ msgstr "vždy"
22
+
23
+ msgid "hourly"
24
+ msgstr "každou hodinu"
25
+
26
+ msgid "daily"
27
+ msgstr "denně"
28
+
29
+ msgid "weekly"
30
+ msgstr "týdně"
31
+
32
+ msgid "monthly"
33
+ msgstr "měsíčně"
34
+
35
+ msgid "yearly"
36
+ msgstr "ročně"
37
+
38
+ msgid "never"
39
+ msgstr "nikdy"
40
+
41
+ msgid "Detected Path"
42
+ msgstr "Zjištěná cesta"
43
+
44
+ msgid "Example"
45
+ msgstr "Příklad"
46
+
47
+ msgid "Absolute or relative path to the sitemap file, including name."
48
+ msgstr "Absolutní nebo relativní cesta k sitemap souboru, včetně jména souboru."
49
+
50
+ msgid "Complete URL to the sitemap file, including name."
51
+ msgstr "Celá URL k sitemap souboru, včetně jména."
52
+
53
+ msgid "Automatic location"
54
+ msgstr "Automatické umístění"
55
+
56
+ msgid "Manual location"
57
+ msgstr "Ruční umístění"
58
+
59
+ msgid "OR"
60
+ msgstr "NEBO"
61
+
62
+ msgid "Location of your sitemap file"
63
+ msgstr "Umístění vašeho sitemap souboru"
64
+
65
+ msgid "If your blog is in a subdirectory and you want to add pages which are NOT in the blog directory or beneath, you MUST place your sitemap file in the root directory (Look at the &quot;Location of your sitemap file&quot; section on this page)!"
66
+ msgstr "Je-li váš blog v podsložce a chcete-li přidat stránky, které NEJSOU v adresáři blogu (anebo v podadresářích), MUSÍTE umístit váš Sitemap soubor do kořenové složky (Viz sekce &quot;Umístění vašeho Sitemap souboru&quot; na této stránce)!"
67
+
68
+ #: sitemap.php:512
69
+ msgid "Configuration updated"
70
+ msgstr "Nastavení aktualizováno"
71
+
72
+ #: sitemap.php:513
73
+ msgid "Error"
74
+ msgstr "Chyba"
75
+
76
+ #: sitemap.php:521
77
+ msgid "A new page was added. Click on &quot;Save page changes&quot; to save your changes."
78
+ msgstr "Byla přidána nová stránka. Klikněte na &quot;Uložit změny&quot; pro jejich uložení."
79
+
80
+ #: sitemap.php:527
81
+ msgid "Pages saved"
82
+ msgstr "Stránka uložena"
83
+
84
+ #: sitemap.php:528
85
+ msgid "Error while saving pages"
86
+ msgstr "Při ukládání stránek nastala chyba"
87
+
88
+ #: sitemap.php:539
89
+ msgid "The page was deleted. Click on &quot;Save page changes&quot; to save your changes."
90
+ msgstr "Stránka byla odstraněna. Klikněte na &quot;Uložit změny&quot; pro jejich uložení."
91
+
92
+ #: sitemap.php:542
93
+ msgid "You changes have been cleared."
94
+ msgstr "Vaše změny byly zrušeny."
95
+
96
+ #: sitemap.php:555
97
+ msgid "Sitemap Generator"
98
+ msgstr "Sitemap generátor"
99
+
100
+ #: sitemap.php:558
101
+ msgid "Manual rebuild"
102
+ msgstr "Ruční znovu-vytvoření"
103
+
104
+ #: sitemap.php:559
105
+ msgid "If you want to build the sitemap without editing a post, click on here!"
106
+ msgstr "Chcete-li vytvořit Sitemap soubor, aniž byste museli upravovat příspěvek, klikněte sem!"
107
+
108
+ #: sitemap.php:560
109
+ msgid "Rebuild Sitemap"
110
+ msgstr "Znovu-vytvořit Sitemap"
111
+
112
+ #: sitemap.php:564
113
+ msgid "Additional pages"
114
+ msgstr "Stránky navíc"
115
+
116
+ #: sitemap.php:566
117
+ msgid "Here you can specify files or URLs which should be included in the sitemap, but do not belong to your Blog/WordPress.<br />For example, if your domain is www.foo.com and your blog is located on www.foo.com/blog you might want to include your homepage at www.foo.com"
118
+ msgstr "Zde můžete nastavit URL adresy, které mají být zahrnuty do Sitemap souboru, ale nenáleží k blogu/WordPressu.<br />Například, pokud vaše doména je www.něco.cz a váš blog se nachází na www.něco.cz/blog, možná byste chtěli zahrnout i www.něco.cz"
119
+
120
+ #: sitemap.php:568
121
+ msgid "URL to the page"
122
+ msgstr "URL stránky"
123
+
124
+ #: sitemap.php:569
125
+ msgid "Enter the URL to the page. Examples: http://www.foo.com/index.html or www.foo.com/home "
126
+ msgstr "Vložte URL (adresu) stránky. Příklady: http://www.něco.cz/index.html nebo www.něco.cz/home "
127
+
128
+ #: sitemap.php:571
129
+ msgid "Priority"
130
+ msgstr "Priorita"
131
+
132
+ #: sitemap.php:572
133
+ msgid "Choose the priority of the page relative to the other pages. For example, your homepage might have a higher priority than your imprint."
134
+ msgstr "Vyberte prioritu stránky relativně k ostatním stránkám. Například, vaše titulní stránka by měla mít vyšší prioritu než stránka O mně."
135
+
136
+ #: sitemap.php:574
137
+ msgid "Last Changed"
138
+ msgstr "Naposledy změněno"
139
+
140
+ #: sitemap.php:575
141
+ msgid "Enter the date of the last change as YYYY-MM-DD (2005-12-31 for example) (optional)."
142
+ msgstr "Vložte datum poslední změny ve formátu RRRR-MM-DD (například 2007-08-12) (nepovinné)."
143
+
144
+ #: sitemap.php:583
145
+ msgid "Change Frequency"
146
+ msgstr "Nastavit frekvenci"
147
+
148
+ #: sitemap.php:585
149
+ msgid "#"
150
+ msgstr "#"
151
+
152
+ #: sitemap.php:609
153
+ msgid "No pages defined."
154
+ msgstr "Nejsou definovány žádné stránky."
155
+
156
+ #: sitemap.php:616
157
+ msgid "Add new page"
158
+ msgstr "Přidat novou stránku"
159
+
160
+ #: sitemap.php:617:
161
+ msgid "Save page changes"
162
+ msgstr "Uložit změny"
163
+
164
+ #: sitemap.php:618:
165
+ msgid "Undo all page changes"
166
+ msgstr "Zrušit všechny změny"
167
+
168
+ #: sitemap.php:621:
169
+ msgid "Delete marked page"
170
+ msgstr "Smazat označenou stránku"
171
+
172
+ #: sitemap.php:627
173
+ msgid "Basic Options"
174
+ msgstr "Základní možnosti"
175
+
176
+ #: sitemap.php:632
177
+ msgid "Enable automatic priority calculation for posts based on comment count"
178
+ msgstr "Povolit automatický výpočet priority - na základě počtu komentářů"
179
+
180
+ #: sitemap.php:638
181
+ msgid "Write debug comments"
182
+ msgstr "Vkládat \"debug-komentáře\""
183
+
184
+ #: sitemap.php:643
185
+ msgid "Filename of the sitemap file"
186
+ msgstr "Jméno Sitemap souboru"
187
+
188
+ #: sitemap.php:650
189
+ msgid "Write a normal XML file (your filename)"
190
+ msgstr "Ukládat normální XML soubor (jméno vašeho souboru)"
191
+
192
+ #: sitemap.php:652
193
+ msgid "Detected URL"
194
+ msgstr "Zjištěná URL"
195
+
196
+ #: sitemap.php:657
197
+ msgid "Write a gzipped file (your filename + .gz)"
198
+ msgstr "Ukládat komprimovaný gzip soubor (jméno vašeho souboru + .gz)"
199
+
200
+ #: sitemap.php:664
201
+ msgid "Auto-Ping Google Sitemaps"
202
+ msgstr "Automaticky pingovat Google Sitemaps"
203
+
204
+ #: sitemap.php:665
205
+ msgid "This option will automatically tell Google about changes."
206
+ msgstr "Tato možnost automaticky oznamuje Googlu změny na webu."
207
+
208
+ #: sitemap.php:672
209
+ msgid "Includings"
210
+ msgstr "Obsah"
211
+
212
+ #: sitemap.php:677
213
+ msgid "Include homepage"
214
+ msgstr "Zahrnout titulní stránku"
215
+
216
+ #: sitemap.php:683
217
+ msgid "Include posts"
218
+ msgstr "Zahrnout příspěvky"
219
+
220
+ #: sitemap.php:689
221
+ msgid "Include static pages"
222
+ msgstr "Zahrnout statické stránky"
223
+
224
+ #: sitemap.php:695
225
+ msgid "Include categories"
226
+ msgstr "Zahrnout rubriky"
227
+
228
+ #: sitemap.php:701
229
+ msgid "Include archives"
230
+ msgstr "Zahrnout archivy"
231
+
232
+ #: sitemap.php:708
233
+ msgid "Change frequencies"
234
+ msgstr "Nastavení frekvence"
235
+
236
+ #: sitemap.php:709
237
+ msgid "Note"
238
+ msgstr "Poznámka"
239
+
240
+ #: sitemap.php:710
241
+ msgid "Please note that the value of this tag is considered a hint and not a command. Even though search engine crawlers consider this information when making decisions, they may crawl pages marked \"hourly\" less frequently than that, and they may crawl pages marked \"yearly\" more frequently than that. It is also likely that crawlers will periodically crawl pages marked \"never\" so that they can handle unexpected changes to those pages."
242
+ msgstr "Berte prosím na vědomí, že hodnota tohoto štítku je jen zvažována \"jako náznak\", není to příkaz. Přestože vyhledávací roboti berou při rozhodování tuto hodnotu na vědomí, přesto mohou navštěvovat stránky označené jako \"každou hodinu\" méně často, a také mohou stránky označené jako \"ročně\" navštěvovat častěji. Rovněž je pravděpodobné, že roboti budou naštěvovat i stránky označené jako \"nikdy\" aby se mohli vypořádat s nečekanými změnami na těchto stránkách."
243
+
244
+ #: sitemap.php:715
245
+ msgid "Homepage"
246
+ msgstr "Titulní stránka"
247
+
248
+ #: sitemap.php:721
249
+ msgid "Posts"
250
+ msgstr "Příspěvky"
251
+
252
+ #: sitemap.php:727
253
+ msgid "Static pages"
254
+ msgstr "Statické stránky"
255
+
256
+ #: sitemap.php:733
257
+ msgid "Categories"
258
+ msgstr "Rubriky"
259
+
260
+ #: sitemap.php:739
261
+ msgid "The current archive of this month (Should be the same like your homepage)"
262
+ msgstr "Stávající archiv tohoto měsíce (Měl by být stejný jako vaše titulní stránka)"
263
+
264
+ #: sitemap.php:745
265
+ msgid "Older archives (Changes only if you edit an old post)"
266
+ msgstr "Starší archivy (Mění se jen když upravíte starý příspěvek)"
267
+
268
+ #: sitemap.php:752
269
+ msgid "Priorities"
270
+ msgstr "Priority"
271
+
272
+ #: sitemap.php:763
273
+ msgid "Posts (If auto calculation is disabled)"
274
+ msgstr "Příspěvky (Když je automatický výpočet vypnutý)"
275
+
276
+ #: sitemap.php:769
277
+ msgid "Minimum post priority (Even if auto calculation is enabled)"
278
+ msgstr "Minimální priorita příspěvku (I když je povolený automatický výpočet)"
279
+
280
+ #: sitemap.php:787
281
+ msgid "Archives"
282
+ msgstr "Archivy"
283
+
284
+ #: sitemap.php:793
285
+ msgid "Informations and support"
286
+ msgstr "Informace a podpora"
287
+
288
+ #: sitemap.php:794
289
+ msgid "Check %s for updates and comment there if you have any problems / questions / suggestions."
290
+ msgstr "Zkontrolujte %s ohledně updatů a komentářů, pokud máte jakýkoli problém / otázky / nápady (anglicky)."
291
+
292
+ #: sitemap.php:797
293
+ msgid "Update options"
294
+ msgstr "Aktualizovat možnosti"
295
+
296
+ #: sitemap.php:1033
297
+ msgid "URL:"
298
+ msgstr "URL:"
299
+
300
+ #: sitemap.php:1034
301
+ msgid "Path:"
302
+ msgstr "Cesta:"
303
+
304
+ #: sitemap.php:1037
305
+ msgid "Could not write into %s"
306
+ msgstr "Není možné zapisovat do %s"
307
+
308
+ #: sitemap.php:1048
309
+ msgid "Successfully built sitemap file:"
310
+ msgstr "Sitemap soubor úspěšně vytvořen:"
311
+
312
+ #: sitemap.php:1048
313
+ msgid "Successfully built gzipped sitemap file:"
314
+ msgstr "Komprimovaný (gzip) Sitemap soubor úspěšně vytvořen:"
315
+
316
+ #: sitemap.php:1062
317
+ msgid "Could not ping to Google at %s"
318
+ msgstr "Nepodařilo se pingnout Google na %s"
319
+
320
+ #: sitemap.php:1064
321
+ msgid "Successfully pinged Google at %s"
322
+ msgstr "Google byl úspěšně pingnut na %s"
323
+
sitemap.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
4
- $Id: sitemap.php 2677 2005-07-20 22:06:07Z arnee $
5
6
Sitemap Generator for WordPress
7
==============================================================================
@@ -20,7 +20,7 @@
20
Plugin Name: Google Sitemaps
21
Plugin URI: http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final
22
Description: This generator will create a Google compliant sitemap of your WordPress blog.
23
- Version: 2.7
24
Author: Arne Brachhold
25
Author URI: http://www.arnebrachhold.de/
26
@@ -155,9 +155,6 @@
155
Maybe we find another way to get the home paths, so we don't need the admin file.
156
*/
157
if(defined("ABSPATH") && defined("WPINC")) {
158
- if(!function_exists("get_home_path")) {
159
- require_once(ABSPATH . 'wp-admin/admin-functions.php');
160
- }
161
define("SM_ACTIVE",true);
162
} else {
163
define("SM_ACTIVE",false);
@@ -358,7 +355,7 @@ if($sm_storedpages) {
358
$sm_pages=$sm_storedpages;
359
} else {
360
//Add the option, Note the autoload=false because when the autoload happens, our class sm_page doesn't exist
361
- add_option("sm_cpages",$sm_pages,"Storage for custom pages of the sitemap plugin",false);
362
}
363
364
/**
@@ -369,6 +366,31 @@ $sm_freq_names=array("always", "hourly", "daily", "weekly", "monthly", "yearly",
369
370
/******** Path and URL functions ********/
371
372
#region sm_getXmlUrl
373
if(!function_exists("sm_getXmlUrl")) {
374
/**
@@ -419,7 +441,7 @@ if(!function_exists("sm_getXmlPath")) {
419
return $sm_options["sm_b_filename_manual"];
420
} else {
421
//ABSPATH has a slash
422
- return get_home_path() . sm_go("sm_b_filename");
423
}
424
}
425
}
@@ -676,7 +698,7 @@ if(!function_exists("sm_options_page")) {
676
677
<div class=wrap>
678
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
679
- <h2><?php _e('Sitemap Generator', 'sitemap') ?> 2.7</h2>
680
681
<!-- Rebuild Area -->
682
<fieldset name="sm_rebuild" class="options">
@@ -1075,7 +1097,7 @@ if(!function_exists("sm_buildSitemap")) {
1075
1076
//WordPress powered... and me! :D
1077
$s.="<!-- generator=\"wordpress/" . get_bloginfo('version') . "\" -->\n";
1078
- $s.="<!-- sitemap-generator-url=\"http://www.arnebrachhold.de\" sitemap-generator-version=\"2.7\" -->\n";
1079
1080
//All comments as an asso. Array (postID=>commentCount)
1081
$comments=(sm_go("sm_b_auto_prio")?sm_getComments():array());
1
<?php
2
/*
3
4
+ $Id: sitemap.php 8854 2007-03-19 23:14:15Z arnee $
5
6
Sitemap Generator for WordPress
7
==============================================================================
20
Plugin Name: Google Sitemaps
21
Plugin URI: http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final
22
Description: This generator will create a Google compliant sitemap of your WordPress blog.
23
+ Version: 2.7.1
24
Author: Arne Brachhold
25
Author URI: http://www.arnebrachhold.de/
26
155
Maybe we find another way to get the home paths, so we don't need the admin file.
156
*/
157
if(defined("ABSPATH") && defined("WPINC")) {
158
define("SM_ACTIVE",true);
159
} else {
160
define("SM_ACTIVE",false);
355
$sm_pages=$sm_storedpages;
356
} else {
357
//Add the option, Note the autoload=false because when the autoload happens, our class sm_page doesn't exist
358
+ add_option("sm_cpages",$sm_pages,"Storage for custom pages of the sitemap plugin","no");
359
}
360
361
/**
366
367
/******** Path and URL functions ********/
368
369
+ function sm_getHomePath() {
370
+ $res="";
371
+ //Check if we are in the admin area -> get_home_path() is avaiable
372
+ if(function_exists("get_home_path")) {
373
+ $res = get_home_path();
374
+ } else {
375
+ //get_home_path() is not available, but we can't include the admin
376
+ //libraries because many plugins check for the "check_admin_referer"
377
+ //function to detect if you are on an admin page. So we have to copy
378
+ //the get_home_path function in our own...
379
+ $home = get_settings('home');
380
+ if ( $home != '' && $home != get_settings('siteurl') ) {
381
+ $home_path = parse_url($home);
382
+ $home_path = $home_path['path'];
383
+ $root = str_replace($_SERVER["PHP_SELF"], '', $_SERVER["SCRIPT_FILENAME"]);
384
+ $home_path = trailingslashit($root . $home_path);
385
+ } else {
386
+ $home_path = ABSPATH;
387
+ }
388
+ $res = $home_path;
389
+ }
390
+ return $res;
391
+ }
392
+
393
+
394
#region sm_getXmlUrl
395
if(!function_exists("sm_getXmlUrl")) {
396
/**
441
return $sm_options["sm_b_filename_manual"];
442
} else {
443
//ABSPATH has a slash
444
+ return sm_getHomePath() . sm_go("sm_b_filename");
445
}
446
}
447
}
698
699
<div class=wrap>
700
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
701
+ <h2><?php _e('Sitemap Generator', 'sitemap') ?> 2.7.1</h2>
702
703
<!-- Rebuild Area -->
704
<fieldset name="sm_rebuild" class="options">
1097
1098
//WordPress powered... and me! :D
1099
$s.="<!-- generator=\"wordpress/" . get_bloginfo('version') . "\" -->\n";
1100
+ $s.="<!-- sitemap-generator-url=\"http://www.arnebrachhold.de\" sitemap-generator-version=\"2.7.1\" -->\n";
1101
1102
//All comments as an asso. Array (postID=>commentCount)
1103
$comments=(sm_go("sm_b_auto_prio")?sm_getComments():array());