is_admin
Usage: bool is_admin ([int userid])
Purpose: Returns whether a user is a admin.
Availability: IPB SDK 0.1
Purpose: Returns whether a user is a admin.
Availability: IPB SDK 0.1
Returns TRUE if user userid is a administrator. If userid is not specified, this function will return whether the currently logged in user is a administrator.
if ($SDK->is_admin()) {
echo 'Your a Admin!';
}
else {
echo 'Your a mortal!';
}
echo 'Your a Admin!';
}
else {
echo 'Your a mortal!';
}
See Also: is_supermod
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.