From e925d2e2b1eb9d362d97ad93cd2d7dcf78c14d32 Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Wed, 1 Jan 2014 13:31:07 +0000 Subject: [PATCH] Add new sitemaps --- sitemap-board.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ sitemap-index.php | 24 ++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 sitemap-board.php create mode 100644 sitemap-index.php diff --git a/sitemap-board.php b/sitemap-board.php new file mode 100644 index 0000000..9ea1c9e --- /dev/null +++ b/sitemap-board.php @@ -0,0 +1,45 @@ +500 Internal Server ErrorInternal server error. Please, come again later."; + exit; +} + +if (mysql_num_rows($query) == 0) { + header("{$_SERVER['server_protocol']} 404 Not Found"); + exit; +} + +echo ''."\n"; +?> + + $row[1]) ? date(DATE_W3C, $row[2]) : date(DATE_W3C, $row[1]); + $pages = ceil($row[3] / 30); + for (;$pages>=0;$pages--) { +?> + + http://rock.ru/forum/index.php?topic=. + + 0 ? 'daily' : 'hourly'?> + + + diff --git a/sitemap-index.php b/sitemap-index.php new file mode 100644 index 0000000..a9f770d --- /dev/null +++ b/sitemap-index.php @@ -0,0 +1,24 @@ +500 Internal Server ErrorInternal server error. Please, come again later."; + exit; +} + +echo ''."\n"; +?> + + + + http://rock.ru/forum/sitemap-board.php?board= + + +