Thanks HittingSmoke, this is great!
Note that I had to change $name to $this->name() for WP 3.x. Otherwise it was serving me the wordpress home page inside the wiki.
I’m using this in conjunction w/ WP-United. This integrates PHP forums inside of a WP install. I had to add another ‘require_once’ line :
require_once(dirname(__FILE__) . '/../forum/wp-united/functions-general.php');
I also had to hack one of the wp-united files that sets $phpEx. I just hardcoded it to .php for my system. And I had to add a symlink to wp-united inside the wiki directory
ln -s ../forum/wp-united .
Once I have all the kinks worked out, I’ll post the integration of the three.
Others, note that you can also add this in your wiki template :
<?php get_footer( $this->name ); ?>
To round-out the integration.
Cheers,
-m