HOSTINPL is a custom PHP MVC application (not Laravel/Symfony).
hostinpl.pl/
├── index.php # Front controller
├── cron.php # CLI cron entry point
├── application/
│ ├── config.php # Main settings (DB, payments, keys)
│ ├── controllers/ # Route handlers (folder/action)
│ ├── models/ # Data access (*Model classes)
│ └── views/ # PHP templates
├── engine/
│ ├── main/ # Core: Registry, Load, Action, DB, Session
│ ├── libs/ # SSH, query drivers, mail, pagination
│ ├── games/ # Game core/binary definitions
│ └── engine_ftp/ # elFinder-based FTP UI
├── assets/ # Metronic theme (JS/CSS)
├── tmp/ # Uploads, avatars, ticket images
└── install/ # Debian installer + CDN payloads
index.phpbootstrapsRegistryand core servicesActionparsesREQUEST_URIintocontroller/action(e.g.servers/control)- Controller class in
application/controllers/{path}/index.phpor named file - Controller loads models via
$this->load->model('servers')→serversModel - View rendered via
$this->load->view('path', $data) Responseoutputs final HTML
| Model | Responsibility |
|---|---|
servers |
Game servers (central model for server operations) |
locations |
Remote game locations |
users |
Accounts, balance, auth |
invoices |
Payments |
tickets |
Support system |
games |
Available games and cores |
webhost |
Web hosting orders |
- Panel (Apache) talks to locations via SSH/API
- Locations run Docker (
hostinpl:games), Nginx FastDL, Pure-FTPd - Game files live under
/home/cp/gameservers/files/on each location
cron.php accepts action names (index, gameServers, tasks, etc.) called from system crontab. See Cron jobs.