so i assume if i have Adomain install with xoops. ANd i want Bdomain to use Adomain file and database.
What do i need to do for Bdomain? What file i need to install in Bdomain?
BoDGie wrote:
That code will allow you to run several websites off the one install.. all with seperate databases etc.....
Basically the way it works is if you type www.domainA.com it will remove the www and the .com and then assign that to $subdominio the code will then instruct XOOPS to include the file called domainA.mainfile.php
If you do www.domainB.com it will include domainB.mainfile.php
You setup a seperate mainfile for each domain you wish to use..
<?php
if (!(isset($subdominio))) {
$subdominio = $HTTP_HOST;
$subdominio = str_replace("www.","",$subdominio);
$subdominio = str_replace(".com","",$subdominio);
$subdominio = str_replace(".net","",$subdominio);
$subdominio = str_replace(".org","",$subdominio);
}
if (!(empty($subdominio))) {
include($subdominio."mainfile.php");
}
?>
<{foreach item=block from=$xoops_lblocks}> <{include file="default/theme_blockleft.html"}> <{/foreach}>