Skip to content
Back to Portfolio
Corporate Website2019 – 2020Frontend & Fullstack Web Developer

WanaArtha Life — Corporate Website

Corporate website for insurer WanaArtha Life, built at Label Ideas & Co on CodeIgniter and MySQL, later reconstructed from an incomplete backup into a dependency-free PHP archive site.

PHPCodeIgniterMySQLJavaScriptCSSDockerJenkins
Overview

About This Project

At Label Ideas & Co I built WanaArtha Life's corporate website — a CMS-backed CodeIgniter site covering individual and sharia insurance products, marketing offices, NAV history and exchange rates, company profile, claim guides and fund factsheets. Years later, with only an incomplete backup of the project left, I reconstructed it into a working PHP application that faithfully serves the archived data.
Challenge

The Problem

Original images, logos and several source pages were missing from the backup. The data had to be presented as a historical archive — never as current financial or company information — and the rebuild had to be safe to run, with no exposed SQL dumps or config files and no legacy code executing.
Solution

How We Solved It

I wrote a small front controller with its own routing, a query helper and sanitization of the archived markup, keeping the CodeIgniter sources and SQL dump untouched for reference only. The site was rebuilt around the CMS data: a product catalogue with search and filters, product detail pages, a marketing-office directory filterable by province, and NAV and currency snapshots. A new contact form adds server-side validation, CSRF tokens, refresh-resubmit prevention and a per-session cooldown, while pages whose sources are missing explain their status instead of inventing content. Configuration and remote access are opt-in via environment variables, shipped as a Docker image through Jenkins.
Flow

How It Works

  1. 1

    Read the archive notice

    Every page carries a banner explaining that this is a reconstruction of the 2019 WanaArtha project, not an official or active insurance service.

  2. 2

    Browse products

    A catalog of 22 archived products in 18 categories with search, category filter and detail pages that render sanitised descriptions and benefits from the original SQL dump.

  3. 3

    Find an office

    A directory of 103 marketing office records with text search and a province filter.

  4. 4

    Check unit values and rates

    Historical NAV entries and currency rates from the database snapshot, labelled as non-current data.

  5. 5

    Send a message

    The contact form validates input on the server, uses a CSRF token, blocks resubmission on refresh and enforces a 15-second cooldown per session; messages are only stored in the local database.

Features

Key Capabilities

🛡️

Product Catalogue

22 products across 18 categories with search, filters, a sharia view and detail pages.
📍

Office Directory

103 marketing-office records, searchable and filterable by province.
📉

NAV & Exchange Rates

Historical unit values and currency snapshots, clearly labelled as archive data.
✉️

Hardened Contact Form

Server validation, CSRF, post-redirect-get and rate limiting, stored only in the database.
🧭

Legacy Route Aliases

Old CodeIgniter URLs redirect to the new routes, with a status page listing what's restored.
Technical

Under the Hood

Original Build
CodeIgniter 3 controllers for products, sharia, claims, NAV, careers, foundation and news on a MySQL CMS schema for products, categories, branches, units, currencies, sections and settings.
Reconstruction
Framework-free PHP 8.2 front controller with PDO MySQL, its own route map and escaping helpers, plus new dependency-free CSS and JavaScript for a responsive, keyboard-accessible UI.
Safety
.htaccess blocks directory listing and HTTP access to SQL, config, installer and archive code; a CLI-only installer refuses to overwrite an existing database.
Delivery
php-apache Docker image with DB settings from the environment, deployed by a Jenkins pipeline with Helm values.
Results

Impact & Outcomes

Delivered the original corporate website for WanaArtha Life

Restored an incomplete archive to a runnable state without fabricating content

10 pages and all 22 product detail pages verified across four viewport widths

Direct access to SQL dumps and config files blocked

Reflection

What I Learned

Rebuilding from an archive is as much about honesty as code — labelling historical data and missing pages clearly mattered as much as restoring what survived. Keeping the legacy code read-only reduced risk while preserving the original work.

Other Projects