View Single Post
Old 15.04.2004, 13:49   #30 (permalink)
mmx
Expert Mamber
 
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
mmx is on a distinguished road
Send a message via MSN to mmx
Default Re: Multiple Mambo sites

The #__groups table can be all_groups to eliminate another table.

PHP Code:
    function setQuery$sql$prefix='#__' ) {
        
        if (!(
$mosConfig_multisite=0)) {
            
/* Tom: substitute the prefixes that point to the users table with the central user table prefix */ 
            
$sql str_replace('#__users'$this->_user_table_prefix.'users'$sql);
            
$sql str_replace('mos_users'$this->_user_table_prefix.'users'$sql); 

            
$sql str_replace('#__groups'$this->_user_table_prefix.'groups'$sql);
            
$sql str_replace('mos_groups'$this->_user_table_prefix.'groups'$sql); 

            
$sql str_replace('#__session'$this->_user_table_prefix.'session'$sql);
            
$sql str_replace('mos_session'$this->_user_table_prefix.'session'$sql); 

            
$sql str_replace('#__core_acl_aro'$this->_user_table_prefix.'core_acl_aro'$sql);
            
$sql str_replace('mos_core_acl_aro'$this->_user_table_prefix.'core_acl_aro'$sql); 

            
$sql str_replace('#__core_acl_aro_groups'$this->_user_table_prefix.'core_acl_aro_groups'$sql);
            
$sql str_replace('mos_core_acl_aro_groups'$this->_user_table_prefix.'core_acl_aro_groups'$sql); 

            
$sql str_replace('#__core_acl_aro_sections'$this->_user_table_prefix.'core_acl_aro_sections'$sql);
            
$sql str_replace('mos_core_acl_aro_sections'$this->_user_table_prefix.'core_acl_aro_sections'$sql); 

            
$sql str_replace('#__core_acl_groups_aro_map'$this->_user_table_prefix.'core_acl_groups_aro_map'$sql);
            
$sql str_replace('mos_core_acl_groups_aro_map'$this->_user_table_prefix.'core_acl_groups_aro_map'$sql); 

            
/* Tom: end edit */ 
            
$this->_sql str_replace$prefix$this->_table_prefix$sql ); 
        } else {
            
$this->_sql str_replace$prefix$this->_table_prefix$sql ); 
        }
    } 
mmx is offline   Reply With Quote