magento Get store name and other details from system configuration Get website ID for current store


Example

Mage::app()->getStore()->getWebsiteId();