File structure
index.php Router: matches every web address to a page
send.php Receives all website forms
config.sample.php Settings template (the installer creates config.php from it)
.htaccess Pretty addresses, security rules, caching
install/ Web installer + database.sql
admin/ Admin panel (modules.php describes every list screen)
templates/ The look of each page (home, about, program, blog, post ...)
includes/ header, footer, helpers (functions.php), themes (themes.php)
assets/css/style.css Main design
assets/themes/ Extra styles for each theme
assets/js/main.js Menu, tabs, photo viewer, videos, animations
assets/vendor/ Font Awesome icons and Quill editor (bundled, works offline)
uploads/ Uploaded images (uploads/opt = automatic WebP copies)
uploads/private/ Files sent with forms (not reachable from the web)
documentation/ This guideCustomising
Add a theme
Open includes/themes.php, copy one block in theme_list(), give it a new key, name, fonts and colours. Optionally add assets/themes/<key>.css for extra layout changes. It appears in Admin → Theme & colours automatically.
Add a field to a list screen
Add the column to the database table, then add one line to the module in admin/modules.php. The add/edit screen is built automatically. Field types: text, textarea, lines, number, checkbox, image, select, icon, link, slug, color, date, keywords, url, schema.
Add a setting
Add a line to a tab in admin/settings.php, then print it anywhere with <?= e(setting('your_key')) ?>.
Change texts in page layouts
Page layouts are in templates/. Every output uses e() for safety; keep using it for any value from the database.
Security
- Passwords are stored hashed (bcrypt). The login allows 5 attempts, then waits 5 minutes.
- Every form has a security (CSRF) token. All database queries use prepared statements.
- Uploads are checked by their real content; scripts cannot run in
uploads/. - Blog content is cleaned (no scripts or unsafe links).
- The installer locks itself after use.
config.php,includes/,templates/and private uploads are blocked from the web. - The code boxes in SEO settings and Custom CSS are added as written: paste only code from services you trust.
- Keep
DEBUGset tofalseon the live site.