User Tools

Site Tools


determining_20if_20the_20user_20is_20an_20administrator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

determining_20if_20the_20user_20is_20an_20administrator [2018/03/31 13:19]
127.0.0.1 external edit
determining_20if_20the_20user_20is_20an_20administrator [2018/04/14 20:58] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Determining if the user is an administrator===== =====Determining if the user is an administrator=====
  
-//by Richard Russell, October 2011//\\ \\  The code listed below reports whether the user is currently logged-in as an administrator or not:\\ +//by Richard Russell, October 2011//\\ \\  The code listed below reports whether the user is currently logged-in as an administrator or not: 
 + 
 +<code bb4w>
         SYS "​IsUserAnAdmin"​ TO res%         SYS "​IsUserAnAdmin"​ TO res%
         IF res% THEN         IF res% THEN
Line 8: Line 10:
           PRINT "The current user is not an administrator"​           PRINT "The current user is not an administrator"​
         ENDIF         ENDIF
 +</​code>​
determining_20if_20the_20user_20is_20an_20administrator.txt · Last modified: 2018/04/14 20:58 by richardrussell