Difference between revisions of "MediaWiki/archive/embedding/old/extract.php/v2/examples"
< MediaWiki | archive | embedding | old/extract.php/v2
Jump to navigation
Jump to search
m (extract.php for embedding MediaWiki contents/examples moved to MediaWiki/extract.php/old/examples: parent page was moved) |
m (MediaWiki/extract.php/old/examples moved to MediaWiki/embedding/extract.php/old1/examples: orphaned again...) |
(No difference)
|
Revision as of 23:13, 6 June 2009
Overview
Examples of this technique in actual use.
outside-life.com
as of 2008-09-29, with Google Analystics ID redacted <php> <?php define('kPathToMediaWiki','/hsphere/local/home/hypertwi/outside-life.com/w/'); define('kEmbeddedPagePrefix','Outside Life'); chdir(kPathToMediaWiki); set_include_path(get_include_path() . PATH_SEPARATOR . kPathToMediaWiki); $pgtitle = $_REQUEST['wikipage']; if ($pgtitle == ) { $pgtitle = 'Comic main page'; } /* <title>Outside Life - a batch of comics every month</title> */
?> loadContent(); echo $wgArticle->mContent; /* End of meta tag code */ ?> </php>