^_^ I wouldn't call it the ultimate minimalist solution.
To me the ultimate solution would be to wildcard all your domains to one
set of files, domain grab (Do some proper testing with fallback, the
methods used on that page don't look to stable), strip out the .my.org
and then use that as the id.
From there, you can either just use that as the DB name, id for images
folder, sitename, etc... Or you can just do a strait include to
something like "./localconfigs/{$wikiId}" and put extra settings there.
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
http://gaia.wikia.com)
-Wikia ACG on
Wikia.com (
http://wikia.com/wiki/Wikia_ACG)
-and
Wiki-Tools.com (
http://wiki-tools.com)
jidanni(a)jidanni.org wrote:
The ultimate minimalist solution consists of
symlinks,
aaaa.my.org -> mediawiki
bbbb.my.org -> mediawiki
cccc.my.org -> mediawiki
and in mediawiki/LocalSettings.php:
$sites=array('aaaa','bbbb','cccc');
foreach ($sites as $v){
if(strpos($_SERVER['SCRIPT_FILENAME'].$_SERVER['PWD'],$v))
{$wgDBname=$v;break;}}
$wgLogo="/skins/common/images/$wgDBname.png"; $wgSitename=$wgDBname;
http://www.mediawiki.org/wiki/Manual:Wiki_family#Ultimate_minimalist_solutiā¦
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l