I know, everybody hates ads. But you dislike to pay for something too. I would like to give everything for free, but it's impossible because costs are too much. If you know how Google ads work, you know how to help. It's on you. I can detect income by country, so... Australia rocks now! Thanks

function getperms() - listing available admin permissions

to understand how to set permissions in administration by codes

list was made mainly for creating custom plugin
1 - Access to Preferences
2 - Access to Menu Manager
3 - Access to Administrators
4 - Manage all User, Userclass and Extended User-Field settings
U0 - Access to Banlist
U1 - Quick Add User)
U2 - User Options
U3 - >User Ranks
5 - Pages/Menus
6 - Access to Media Manager
A  - Access to Media Manager (All)
A1 - Access to Media Manager (Upload/Import)
A2 - Media Manager (Categories)
8 - Access Oversee link categories
9 - Access to Maintenance
B - Access to Comments Manager
C - Access to Cache
F - Access to Emoticons
G - Access to Front Page
H - Access to News
H0 - News (Create)
H1 - News (Edit)
H2 - News (Delete)
H3 - News (Category - Create)
H4 - News (Category - Edit)
H5 - News (Category - Delete
I - Site Links
J - Pages/Menus
K - Access URL Configuration
L - Access to Language
M - Access to Welcome Message
N - News (Submitted)
O - Access to Notify
P - Access to Plugin Administration
S - Access to System Logs
T - Access to Meta Tags
U - Access to Schedule Tasks
V - Access to Manage/upload files
W - Access to Mail
X - Access to Search
Y - Access to Plugin Manager
Z - Access to File Inspector

User classes constants

Userclass names versus numbers saved in database

What e_UC_PUBLIC and similar constants mean and what value is saved in database
e_UC_ADMINMOD 249 Admins (includes main admins)
e_UC_MODS248 Moderators (who aren't admins)
e_UC_NEWUSER 247Users in 'probationary' period
e_UC_BOTS246Reserved to identify search bots
e_UC_SPECIAL_BASE243Assign class IDs 243 and above for fixed/special purposes
e_UC_SPECIAL_END255Highest 'special' class
// 243..245 reserved for future predefined user classes