// Include Magento application
require_once ( "/var/www/your-magento-directory/app/Mage.php" );
umask(0);
// Initialize Magento
Mage::app("default");
Mage::getSingleton('core/session', array('name'=>'adminhtml'));
$session = Mage::getSingleton('admin/session');
if ($session->isLoggedIn())
echo "logged in";
else
echo "logged out";
No comments:
Post a Comment