wzdftpd gives a unified API to access server variables, user variables or group variables.
The following functions are provided as exported functions in the wzdftpd shared library, but all important modules (tcl ,perl, etc.) will wrap them into the corresponding languages. .
These variables are configured in the config file. The following variable names are available for vars get/set:
Table 10-1. Config variables
Variable | Description |
bw | The current cumulated bandwidth of the server (downloads + uploads) (read-only) |
login_pre_ip_check | 1 if server checks ip before login message, else 0 |
loglevel | the current log level (as a string) |
max_dl | The download limit |
max_ul | The upload limit |
max_threads | The maximum number of connected clients |
pasv_low | Passive range lower bound |
pasv_high | Passive range upper bound |
port | The port the server is currently binded to (read-only) |
uptime | time elapsed since server start (read-only) |
These variables are configured in the backend. The following variable names are available for vars_user get/set:
Table 10-2. User variables
Variable | Description |
credits | User credits (0 means unlimited) |
group | The main group of the user |
home | User's home directory |
max_dl | User's download limit |
max_ul | User's upload limit |
name | User's login name |
tag | User's tagline (or description) |
addip, delip, flags, leech_slots, max_idle, num_logins, pass, perms, ratio, user_slots ?
These variables are configured in the backend. The following variable names are available for vars_group get/set:
Table 10-3. Group variables
Variable | Description |
home | Group's default home directory |
max_dl | Group's download limit |
max_ul | Group's upload limit |
name | Group's login name |
tag | Group's tagline (or description) |
addip, delip, max_idle, num_logins, perms, ratio ?