Check if user is logged in admin magento
<?php require_once '../app/Mage.php';
umask(0);
$app = Mage::app('default');
/* Init User Session */
Mage::getSingleton('core/session', array('name'=>'adminhtml'));
$session = Mage::getSingleton('admin/session');
if ($session->isLoggedIn()) {
/* do something if logged in */
echo "the user is logged in";
} else {
/* do something else if not logged in */
echo "the user is NOT logged in";
}
?>