magentoGet current User

Get current Admin User

Mage::getSingleton('admin/session')->getUser();

Get current Customer

Mage::helper('customer')->getCustomer();

or

Mage::getSingleton('customer/session')->getCustomer();

Check if user is logged in

Mage::getSingleton('customer/session')->isLoggedIn()