global $mainframe;
if ($mainframe->isAdmin()) {
echo "We are in the administrator interface!";
} else {
echo "We are not in the administrator interface!";
}
might produce
We are not in the administrator interface!
----
~~DISCUSSION~~