Magento how to get system settings values
If you need to get the value of a system setting, here is how to do it:
Mage::getStoreConfig('full_path/to_the/setting')
For example:
Mage::getStoreConfig('customer/create_account/email_domain')
These settings are stored in core_config_data table and the full path is in the path column.