To know if you are in the adminhtml or in another store, you can simply do :
if(Mage::app()->getStore()->isAdmin()){ //I'm in the admin }
To know if you are in the adminhtml or in another store, you can simply do :
if(Mage::app()->getStore()->isAdmin()){ //I'm in the admin }