MediaWiki/archive/embedding/1.14/index.php
Code
<php><?php /* HISTORY:
2009-06-06 Now works with MediaWiki 1.14 and current version of extract.php
- /
define('kfpWebAccts','/var/www/'); define('kfpMediaWiki',kfpWebAccts.'wiki-hypertwins-org/');
// To have all your extractable pages as subpages or in a namespace, give them a prefix: define('kEmbeddedPagePrefix',); /* This can be empty, but the idea is that you might want to avoid conflicts between the names of your embedded pages and the names of regular pages in your wiki (if you're using the wiki as a regular wiki too). It all depends on how you are using the embedded pages.
- /
set_include_path(get_include_path() . PATH_SEPARATOR . kPathToMediaWiki); $pgtitle = $_REQUEST['wikipage']; if ($pgtitle == ) { $pgtitle = 'Main Page'; // default page to show }
?> loadContent(); echo $wgArticle->mContent; /* End of meta tag code CSS code below is just for standalone presentation. */ ?> </php>