Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

[Added] PHP/JS nuGlobalAccess()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

[Added] PHP/JS nuGlobalAccess()

Unread post by admin »

The function nuGlobalAccess() returns true if the logged in user is logged in as "globeadmin". The function exists both in JavaScript and PHP.

Examples:

Code: Select all

if (nuGlobalAccess()) {
  // logged in as globeadmin
}

Code: Select all

if (! nuGlobalAccess()) {
  // logged in as normal user
}
Post Reply