Skip to content

Commit

Permalink
Anleitung aktualisiert
Browse files Browse the repository at this point in the history
  • Loading branch information
webchills committed Mar 30, 2024
1 parent 15cbaaa commit c01530b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
define('ERROR_SITEMAPXML_TOKEN_INVALID_MESSAGE', 'The execution-token (%1$s) you supplied contains invalid characters.');

define('TEXT_SITEMAPXML_ROBOTS_HDR','Your Site\'s <code>robots.txt</code> File');
define('SUCCESS_SITEMAPXML_ROBOTS_TXT_OK','Your site\'s <code>robots.txt</code> is pointing search engines to your <code>%1$s</code> Sitemap XML!');
define('SUCCESS_SITEMAPXML_ROBOTS_TXT_OK','Your site\'s <code>robots.txt</code> is pointing search engines to your Sitemap XML!');
define('WARNING_SITEMAPXML_NO_ROBOTS_FILE','Your site is missing its <code>robots.txt</code> file! Search engines will not be able to find your sitemap.');
define('WARNING_SITEMAPXML_NO_ROBOTS_TEXT','Your site\'s <code>robots.txt</code> file does not point search engines to your Sitemap XML file. Consider adding <code>Sitemap: %1$s</code> to your robots.txt file.');
define('WARNING_SITEMAPXML_NO_ROBOTS_TEXT','Your site\'s <code>robots.txt</code> file does not point search engines to your Sitemap XML file. Consider adding <code>Sitemap: https://www.meinshop.de/sitemap.xml</code> to your robots.txt file.');

define('TEXT_SITEMAPXML_PLUGINS_LIST', 'Sitemap Plugins');
define('TEXT_SITEMAPXML_PLUGINS_LIST_SELECT', 'Select Sitemaps to Generate');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Zen Cart German Version - www.zen-cart-pro.at
* @copyright Portions Copyright 2003 osCommerce
* @license https://www.zen-cart-pro.at/license/3_0.txt GNU General Public License V3.0
* @version $Id: sitemapxml.php 2024-02-25 18:57:16Z webchills $
* @version $Id: sitemapxml.php 2024-03-30 10:59:16Z webchills $
*/

define('HEADING_TITLE', 'Sitemap XML');
Expand All @@ -17,9 +17,9 @@
define('ERROR_SITEMAPXML_TOKEN_INVALID_MESSAGE', 'Der angegebene Token (%1$s) enthält ungültige Zeichen.');

define('TEXT_SITEMAPXML_ROBOTS_HDR','Ihre <code>robots.txt</code> Datei');
define('SUCCESS_SITEMAPXML_ROBOTS_TXT_OK','Ihre <code>robots.txt</code> verweist Suchmaschinen auf Ihre <code>%1$s</code> Sitemap XML!');
define('SUCCESS_SITEMAPXML_ROBOTS_TXT_OK','Ihre <code>robots.txt</code> verweist Suchmaschinen auf Ihre Sitemap XML!');
define('WARNING_SITEMAPXML_NO_ROBOTS_FILE','Ihr Shop hat keine <code>robots.txt</code> Datei! Suchmaschinen wissen daher nichts von Ihrer Sitemap.');
define('WARNING_SITEMAPXML_NO_ROBOTS_TEXT','Ihre <code>robots.txt</code> Datei verweist nicht auf Ihre Sitemap XML Datei.Fügen Sie den Eintrag <code>Sitemap: %1$s</code> zu Ihrer robots.txt Datei hinzu.');
define('WARNING_SITEMAPXML_NO_ROBOTS_TEXT','Ihre <code>robots.txt</code> Datei verweist nicht auf Ihre Sitemap XML Datei.Fügen Sie den Eintrag <code>Sitemap: https://www.meinshop.de/sitemap.xml</code> zu Ihrer robots.txt Datei hinzu.');

define('TEXT_SITEMAPXML_PLUGINS_LIST', 'Sitemap Plugins');
define('TEXT_SITEMAPXML_PLUGINS_LIST_SELECT', 'Wählen Sie die zu erstellenden Sitemaps');
Expand Down Expand Up @@ -71,5 +71,6 @@
<samp>0 5 * * * GET \'https://your_domain/index.php?main_page=sitemapxml&amp;rebuild=yes%1$s\'</samp><br>
<samp>0 5 * * * wget -q \'https://your_domain/index.php?main_page=sitemapxml&amp;rebuild=yes%1$s\' -O /dev/null</samp><br>
<samp>0 5 * * * curl -s \'https://your_domain/index.php?main_page=sitemapxml&amp;rebuild=yes%1$s\'</samp><br>
<samp>0 5 * * * php -f &lt;path to shop&gt;/cgi-bin/sitemapxml.php rebuild=yes%2$s</samp><br>');
<samp>0 5 * * * php -f &lt;path to shop&gt;/cgi-bin/sitemapxml.php rebuild=yes%2$s</samp><br>');


10 changes: 4 additions & 6 deletions NEUE DATEIEN/DEINADMIN/sitemapxml.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
* @copyright Copyright 2003-2024 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart-pro.at/license/2_0.txt GNU Public License V2.0
* @version $Id: sitemapxml.php 2024-03-22 16:25:18 webchills $
* @version $Id: sitemapxml.php 2024-03-30 10:53:18 webchills $
*/

require 'includes/application_top.php';

$sitemapindex_http_link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG . SITEMAPXML_SITEMAPINDEX . '.xml';
define('SITEMAPXML_SITEMAPINDEX_HTTP_LINK','$sitemapindex_http_link');

$action = $_POST['action'] ?? '';

Expand Down Expand Up @@ -131,12 +129,12 @@
$robots_message = WARNING_SITEMAPXML_NO_ROBOTS_FILE;
} else {
$robots_txt_data = file_get_contents(DIR_FS_CATALOG . 'robots.txt');
if (strpos($robots_txt_data, 'Sitemap: ' . SITEMAPXML_SITEMAPINDEX_HTTP_LINK) === false) {
if (strpos($robots_txt_data, 'Sitemap: ') === false) {
$robots_panel_class = 'danger';
$robots_message = sprintf(WARNING_SITEMAPXML_NO_ROBOTS_TEXT, SITEMAPXML_SITEMAPINDEX_HTTP_LINK);
$robots_message = WARNING_SITEMAPXML_NO_ROBOTS_TEXT;
} else {
$robots_panel_class = 'success';
$robots_message = sprintf(SUCCESS_SITEMAPXML_ROBOTS_TXT_OK, SITEMAPXML_SITEMAPINDEX_HTTP_LINK);
$robots_message = SUCCESS_SITEMAPXML_ROBOTS_TXT_OK;
}
unset($robots_txt_data);
}
Expand Down
4 changes: 2 additions & 2 deletions liesmich.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Falls Zusatzmodule wie Testimonial Manager oder News Box Manager im Shop verwend

Anpassung und Überarbeitung des Moduls Sitemap XML 3.9.5 von Andrew Berezin zur Verwendung in der deutschen Zen Cart Version 1.5.7

Dieses Modul setzt mindestens Zen Cart 1.5.7g deutsch voraus!
Dieses Modul setzt mindestens Zen Cart 1.5.7h deutsch voraus!


Changelog:

Version 4.2.0
webchills - Februar 2024
webchills - März 2024

Anpassungen für 1.5.7h und PHP 8.2.x
Ping Funktionalität entfernt, da von den Suchmaschinen nicht mehr unterstützt
Expand Down

0 comments on commit c01530b

Please sign in to comment.