INKRAH CMS Compro

Version 3a — An installable, open-source company-profile CMS
PHP + SQLite · no database server required · runs on shared hosting

01Overview

INKRAH CMS Compro (full name: INKRAH Web Design Open Source Project for Company Profile) is a self-hosted, installable content management system purpose-built for small-to-medium company-profile websites — importers, distributors, manufacturers, and service businesses alike.

It ships with an 8-step setup wizard, four-tier role-based access control, twelve premium color themes (each tuned for both light and dark mode), a bilingual front-end, a comfortable rich-text article editor, a built-in PDF viewer for financial/legal documents, and strong on-page SEO tooling — all running on plain PHP and SQLite so it works on almost any shared host, no special database server required.

Update notes (this build):
  • The "not installed yet" redirect on index.php now uses an absolute, site-root-relative path instead of a bare relative one, so it works correctly even when the site lives in a subfolder or is requested without a trailing slash.
  • Pages and articles now have proper slug URLs — /page/<slug> and /article/<slug> — via .htaccess rewrite rules (requires mod_rewrite, standard on virtually all shared hosting).
  • Timezone and origin-language are now dropdown selections (installer + Settings), not free-typed text.
  • The SMTP mailer now reads full multi-line SMTP responses and checks the actual status code at every step, so a failed test email correctly reports failure (with the real server error message) instead of always claiming success.
  • Every redirect between the public site and the admin panel (login-required redirect, login/logout redirects) now uses an absolute admin URL, and the installer verifies that folder-renaming actually succeeded on disk before writing config.php — both were causes of "can't reach the admin dashboard" on certain hosts.

02Technology & Infrastructure

LayerChoiceWhy
LanguagePHP 8+Universally available on shared hosting
DatabaseSQLite (via PDO)Zero configuration — no MySQL server needed, just a writable folder
MailerCustom zero-dependency SMTP clientNo Composer/PHPMailer install required for password-reset email
Rich-text editorQuill.js (CDN)Comfortable writing surface: bold/italic/underline/strike, sub/superscript, headings, colors, fonts, sizes, alignment, lists, links, images, plus custom caption & footnote tools
PDF renderingpdf.js (CDN, Mozilla)In-browser PDF viewing with portrait/landscape toggle, no plugin needed
StylingHand-tuned CSS custom properties12 themes × light/dark = 24 contrast-checked palettes, gradient text, glow effects, abstract animated backgrounds
FontsPlus Jakarta Sans (Google Fonts)Modern, highly legible at all sizes

03Installation

  1. Unzip the package into any folder on your web server (root or subfolder).
  2. Make sure the folder is writable by PHP (for SQLite database creation and file uploads).
  3. Open that folder's URL in your browser — index.php automatically detects that setup hasn't run yet and redirects you into the installer.
  4. Walk through the 8-step wizard: requirements check, site basics, folder naming (rename /admin and /database to anything you like for extra obscurity), bilingual setup, company profile type & product/service categories, theme selection, and your Super Admin account.
  5. Click Install Now. The installer builds the SQLite database, seeds bilingual demo content, writes config.php, renames your chosen folders, and — for security — deletes the entire /install folder automatically the moment setup succeeds.
  6. Log in at /<your-admin-folder>/login.php with the Super Admin account you just created.
Before installing, confirm your PHP has the pdo_sqlite extension enabled (nearly universal on shared hosting). The installer's Step 1 checks this for you.

04User Roles & Permissions

RoleCan do
Super AdminEverything: SMTP credentials, user management, site online/offline kill-switch, all content, themes, settings.
AdminEverything except SMTP credentials and managing other Super Admins.
EditorCreate, edit, and publish pages, articles, menus, footer links, media and documents belonging to anyone.
AuthorCreate and edit their own articles and media. Their work is saved as a draft; an Editor, Admin, or Super Admin must publish it.

05Managing Content

  • Static Pages — About Us, Products & Services, Contact, etc. Each page has its own SEO fields and can be flagged as the homepage for a given language.
  • Articles — blog/news-style dynamic content with category, tags, cover image, and the full rich-text editor.
  • Rich Editor Toolbar — headings, bold, italic, underline, strikethrough, subscript/superscript, text & background color, font family & size, alignment, ordered/bullet lists, blockquotes, links, and images. Two custom buttons extend this further: "+ Caption last image" wraps your most recent image in a proper <figure>/<figcaption>, and "+ Footnote" inserts a numbered superscript reference and stores the note text for the article's footnote list.
  • Media Library — central place to upload and browse images used across the site.
  • Hamburger Menu Editor — the single navigation control used on every screen size, editable per language.
  • Footer Links — grouped into Company / Quick Links / Legal columns, per language.
  • Social Media — only platforms you mark Active (and that have a URL) appear in the public footer.

06Themes & Dark/Light Mode

Twelve premium themes are available from Theme & Branding:

Red Maroon Blue Navy Dark Grey Light Grey Light Gold Dark Gold Dark Green Light Green Pink Orange Silver Black

Each theme defines separate color variables for light and dark mode, so switching between them (a control visitors have independently in the header) never produces low-contrast or unreadable text — every combination has been tuned for legibility.

07Bilingual Support

If enabled at install time, the site runs in two languages: the company's origin language ("src") and English. Visitors switch via the header control; the choice is remembered for their session. Pages, articles, menus, footer links, and documents are all stored per-language, so each can be fully independent rather than machine-translated.

08Document / PDF Viewer

Upload financial reports, legal filings, or any company PDF from Company Documents in the admin panel. Visitors view them on a dedicated page with a portrait/landscape toggle and a page-by-page viewer (via pdf.js) — no download required, though a direct download link is also offered.

09SEO & Social Previews

Every page and article has its own meta title, description, and keywords fields. Open Graph and Twitter Card tags are generated automatically, falling back to your site name, tagline, and logo when a specific page hasn't set its own — so every shared link previews correctly. A live sitemap.php and a robots.txt are included out of the box.

10SMTP & Password Reset

Configure your outgoing mail server from SMTP Settings (Super Admin only): host, port, username, password, encryption (STARTTLS/SSL/none), and the from-name/from-email. A "Send Test Email" button confirms your settings work before you rely on them. Until SMTP is configured, the "Forgot password" flow will not be able to deliver reset links.

11Security Notes

  • The /install folder deletes itself automatically after a successful install.
  • The admin and database folder names are customizable at install time.
  • Passwords are hashed with PHP's password_hash() (bcrypt).
  • All forms are protected with CSRF tokens.
  • Login attempts are rate-limited per IP.
  • .htaccess rules block direct access to /includes, /database, and PHP execution inside /uploads.
  • Uploaded rich-text content is stripped of <script>/<style> tags and inline event handlers.

12License & Attribution

INKRAH CMS Compro is released as part of the INKRAH Web Design open-source initiative. You are free to install, run, and customize it for your own company profile. The footer credit block — "Developed by INKRAH Web Design" linking to inkrah.com/web-design, and "Powered by INKRAH.com" linking to inkrah.com — is part of these license terms and must remain visible on every public page.