To determine whether the visitor is a guest, we use something like this :
if ($user->guest) {
echo 'Hello, guest!';
}
Now, if i want to determine whether the visitor is a registered SuperUser (Administrator) or not, what would be the code for that?
I have some external PHP files which i don't want to be accessible by anyone except the SuperUsers of my Joomla Website. Just trying to secure the files by importing Joomla CMS.