Lecteur Markdown
ULEV_DOCUMENTATION_EN
Feature: ULEV (User Level) #
User account administration interface. Modify access levels, lock/unlock accounts, delete users and analyse suspicious behaviour (failed login attempts, IP changes).
---
Installation and Configuration #
Via FTP: Upload the `ulev/` directory into `/plugins/`.
Via package manager: Select `ulev` from the available plugins list.
Paths:
- Main plugin: `/plugins/ulev/ulev.php`
- Configuration: `/plugins/ulev/conf/ulev.conf.inc.php`
- Library: `/plugins/ulev/lib/ulev.lib.inc.php`
Configuration parameters:
| Variable | Default | Description |
|---|---|---|
| `$basedisplevel` | `BASE_LEVEL_ADMIN` | Minimum required level |
| `$ftype` | `3` | Plugin type (system) |
SQL table used: main users table (`$cfg['dbtable']`)
Columns used: `userid`, `username`, `user_level`, `banned`, `last_login`, `login_attempts`, `temp_locked_until`
---
Usage #
User table #
Sortable columns via DataTables:
- Username
- Full name
- Access level
- Lock status
- Login count
- Failed attempts
Threat levels #
6-tier system (0–6) based on failed attempts and IP changes:
| Level | Status |
|---|---|
| 0 | OK |
| 1–2 | Watch |
| 3–4 | Caution |
| 5 | Alert |
| 6 | Locked / Blocked |
Available actions #
| Action | Description |
|---|---|
| Change level | Selection dropdown (6 BASE_LEVEL_* levels) |
| Lock | Temporary or permanent ban |
| Unlock | Reset status |
| Delete | Removes the account (admin cannot delete themselves) |
---
Hooks and Entry Points #
?obj=ulev.php — User list
?obj=ulev.php&id=ID&action=ulevel — Change level
?obj=ulev.php&id=ID&action=lock — Lock account
?obj=ulev.php&id=ID&action=delete — Delete account
---
Dependencies #
- `Beamreactor\Database\SQL`
- Bootstrap + DataTables — client-side sorting and search (bundled in core)
- Function `returnConstants(string $prefix)` — in `ulev.lib.inc.php`, lists BASE_LEVEL_* constants