[eluser]Otemu[/eluser]
Hi,
You can achieve this by setting different flags within your config\database config and config\config
For instance you could have if(!$config['offlineMode']){connect to this database else connect to offline database} and do the same for your base_url
How you detect for this is up to you, either set this manually yourself in the config $config['offlineMode'] = true';
Write to a blank config file, so for instance in your admin panel if set to true then write to that file
Or a database call that checks what mode the site is in
Hope that helps