|
|
Line 1: |
Line 1: |
| {{Template:MediaWiki Installation}} | | {{Template:MediaWiki Installation}} |
|
| |
|
| {{Wiki version| wiki_engine=MediaWiki | version=1.6.7, 1.11.0, 1.15.0 }} | | {{Wiki version| wiki_engine=MediaWiki | version=1.21.2 }} |
| Easy backup method: Input the all page name into [[Special:Export]] | | Easy backup method: Input the all page name into [[Special:Export]] |
|
| |
|
| * Generate the list of all page name | | * Generate the list of all page name |
| : I modified the [http://www.thinklemon.com/wiki/MediaWiki:Google_Sitemaps Google Sitemaps] to [http://wiki.planetoid.info/lists.phps list.php]. Partial original code as follows: | | : I modified the [http://www.mediawiki.org/wiki/Extension:DynamicWikiSitemap Extension:DynamicWikiSitemap - MediaWiki] to [http://wiki.planetoid.info/lists.phps list.php] |
| <pre>
| |
| # -----------------------------------------------------
| |
| # Start output
| |
| # -----------------------------------------------------
| |
| | |
| ?>
| |
| <url>
| |
| <loc><?php echo fnXmlEncode( "http://" . $wgServerName . eregi_replace('\$1',$sPageName,$wgArticlePath) ) ?></loc>
| |
| <lastmod><?php echo fnTimestampToIso($row_rsPages['page_touched']); ?></lastmod>
| |
| <changefreq>weekly</changefreq>
| |
| <priority><?php echo $nPriority ?></priority>
| |
| </url>
| |
| <?php } while ($row_rsPages = mysql_fetch_assoc($rsPages)); ?>
| |
| </urlset>
| |
| </pre>
| |
| | |
| I changed the output part as ...
| |
| <pre>
| |
| # -----------------------------------------------------
| |
| # Start output
| |
| # -----------------------------------------------------
| |
| | |
| ?>
| |
| <?php echo fnXmlEncode( $sPageName ) ?>
| |
| | |
| <?php } while ($row_rsPages = mysql_fetch_assoc($rsPages)); ?>
| |
| </urlset>
| |
| </pre>
| |
|
| |
|
|
| |
|