# Project Overview: kontrans.pagedev.pl

## Purpose
Custom PHP CMS (Content Management System) called "PageDev" for a client named "KonTrans".
It is a transport company website with multi-language support, articles, banners, pages, newsletter, SEO tools, and an admin panel.

## Tech Stack
- **Backend**: PHP (custom MVC-like framework, no Composer/PSR autoload)
- **Database**: MySQL via Medoo library (`libraries/medoo/medoo.php`)
- **Frontend**: jQuery, Bootstrap (3 and 4), FontAwesome 4.7, CKEditor, Fancybox, Leaflet
- **Rich Text Editor**: CKEditor
- **File Manager**: integrated filemanager (9.12.1 to 9.14.1)
- **Image Processing**: custom image class, WebP conversion support
- **Mailer**: PHPMailer
- **File Uploads**: Plupload
- **Version**: 1.690

## Architecture
- Custom autoload via `spl_autoload_register` in `index.php`
- Namespaces: `front\controls`, `front\factory`, `front\view`, `admin\...`
- Pattern: MVC (controls = controllers, factory = models/repositories, view = views)
- Classes in `autoload/` directory, named `class.ClassName.php`
- Admin panel in `admin/` directory

## Directory Structure
```
/
├── index.php           # Front-end entry point
├── ajax.php            # Front AJAX handler
├── api.php             # API handler
├── admin/              # Admin panel
│   ├── index.php
│   └── ajax.php
├── autoload/           # PHP classes (custom autoload)
│   ├── class.S.php     # Static helper class
│   ├── class.Page.php
│   ├── class.Article.php
│   ├── class.Tpl.php   # Template engine
│   ├── class.Cache.php
│   ├── front/
│   │   ├── controls/   # Controllers
│   │   ├── factory/    # Models/DB access
│   │   └── view/       # View renderers
│   └── admin/
├── config.php          # DB credentials
├── libraries/          # Third-party libs (jQuery, Bootstrap, etc.)
├── templates/          # Front-end templates
├── templates_user/     # User-editable templates
├── layout/             # Layout files
├── plugins/            # Optional plugin hooks
├── images/             # Images
└── upload/             # User uploaded files
```
