Folder and file structure
The script uses a small, readable structure shared with other NetArt Media scripts. Knowing where things live makes customizing easy.
Top level
| Path | Purpose |
|---|---|
index.php | Front controller: loads the classes and shows the requested page or module. |
config.php | Database access and basic settings. |
include/ | Core classes and helpers (see below). |
extensions/ | One file per website module: home, cars, car, booking, contact, faq, news, login, register, account, payment ... Sections of "My account" are in extensions/account/. |
templates/modern/ | The website template: template.html, CSS and JavaScript. |
languages/ | Interface texts of the website: en.php, es.php. |
ADMIN/ | The admin panel. |
uploaded_images/, thumbnails/ | Car photos, logo and other uploads (must be writable). |
install/ | Web installer and SQL dump. Delete after installing. |
.htaccess | URL rewriting rules for SEO-friendly addresses. |
The include folder
| File | What it does |
|---|---|
DatabasePDO.class.php | Database class used in all scripts of the family. |
PageController.class.php | Routing: ?page=slug shows a CMS page, ?mod=name runs extensions/name.php. |
PageModel.class.php | Queries for pages and settings. |
TemplateEngine.class.php | Fills the template tags such as <site menu/> and {{text_key}}. |
CarModel.class.php | Car search, prices, availability, bookings, publishing. |
Payments.class.php | Stripe Checkout, PayPal Orders and bank transfer. |
SiteUser.class.php | Website users: login, registration, password reset. |
helpers.php | Links, texts, settings, formatting, e-mail, CSRF. |
ajax_*.php | AI generator, AI search, live price and favorites endpoints. |
stripe_webhook.php | Stripe webhook address. |
The ADMIN folder
Each admin page is one file in ADMIN/<category>/<action>.php, listed in ADMIN/pages_structure.php, which builds the menu and the permissions. Shared classes are in ADMIN/include/ and the interface texts in ADMIN/en.php and ADMIN/es.php.
Last updated