is there a way to detect hardcode admin session ?

hi,

i need to do a specific task for the hardcoder login user (so the super oot admin).
is there a way to detect him from the user who have the admin permission (the one in static user level Administrator -1 profil) ?

if (super hardcoded admin)
{do that}
else if (permission admin)
{do that other thing}

best regards

Both harcoded admin (super admin) and admin which has user account in users table (normal admin) will return -1 if you call CurrentUserLevel() global function.

The only difference between both is the normal admin user account is registered in your users table. In other words, do not register admin user in your users table by using the same admin username as already defined in “PHP” → “Administrator Login (Hard-coded)”.