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


Example

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