CREATE DATABASE IF NOT EXISTS sff_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; USE sff_db; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(100) NOT NULL UNIQUE, phone VARCHAR(30) NOT NULL, age INT, state VARCHAR(100), occupation VARCHAR(100), how_found VARCHAR(100), sponsor_id INT NULL, password_hash VARCHAR(255) NOT NULL, is_admin TINYINT(1) NOT NULL DEFAULT 0, reset_token VARCHAR(100) NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (sponsor_id) REFERENCES users(id) ); CREATE TABLE downlines ( id INT AUTO_INCREMENT PRIMARY KEY, sponsor_id INT NOT NULL, user_id INT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (sponsor_id) REFERENCES users(id), FOREIGN KEY (user_id) REFERENCES users(id) ); CREATE TABLE contacts ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(100), phone VARCHAR(30), subject VARCHAR(150), message TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); USE sff_db; UPDATE users SET is_admin = 1 WHERE id = 1; connect_error) { die('Gagal sambung database: ' . $conn->connect_error); } function isLoggedIn() { return isset($_SESSION['user_id']); } function redirectIfNotLoggedIn() { if (!isLoggedIn()) { header('Location: login.php'); exit; } } function isAdmin() { return isset($_SESSION['is_admin']) && $_SESSION['is_admin'] == 1; } function redirectIfNotAdmin() { if (!isAdmin()) { header('Location: index.php'); exit; } } Super Fast Formula (SFF)

© Super Fast Formula. Semua hak cipta terpelihara.

body { font-family: Arial, sans-serif; margin: 0; padding: 0; background: #f7f7f7; } .container { width: 90%; max-width: 1000px; margin: 0 auto; } .topbar { background: #111; color: #fff; padding: 10px 0; } .topbar-inner { display: flex; align-items: center; justify-content: space-between; } .logo { font-weight: bold; font-size: 1.2rem; } .topbar nav a { color: #fff; margin-left: 15px; text-decoration: none; font-size: 0.95rem; } .topbar nav a.btn-primary { background: #ff6600; padding: 6px 12px; border-radius: 4px; } .hero { padding: 40px 0 20px; } .hero h1 { font-size: 1.8rem; margin-bottom: 10px; } .hero p { max-width: 700px; } .hero-buttons a { margin-right: 10px; display: inline-block; margin-top: 10px; } .card { background: #fff; padding: 20px; margin: 15px 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .form-group { margin-bottom: 12px; } .form-group label { display: block; margin-bottom: 4px; font-size: 0.9rem; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px; box-sizing: border-box; font-size: 0.9rem; } .btn { padding: 8px 14px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; } .btn-block { width: 100%; text-align: center; } .btn-orange { background: #ff6600; color: #fff; } .footer { background: #222; color: #ccc; padding: 15px 0; margin-top: 40px; font-size: 0.9rem; text-align: center; } .alert { padding: 10px; border-radius: 4px; margin-bottom: 10px; font-size: 0.9rem; } .alert-error { background: #ffe5e5; color: #a00; } .alert-success { background: #e4ffe5; color: #070; } table { border-collapse: collapse; font-size: 0.85rem; } table th, table td { padding: 6px 8px; } ul { padding-left: 20px; }

Super Fast Formula – Jana Income 4–5 Angka Dengan Like & Share Sahaja.

Sistem auto downline untuk mereka yang malu, skeptikal, takut rejection dan tak pandai bercakap. Anda hanya daftar, like & share iklan yang kami sediakan – selebihnya sistem SFF bantu bina rangkaian.

Masalah Yang SFF Selesaikan

  • Malu nak ajak orang sertai program?
  • Takut kena reject bila mula bercerita?
  • Rasa tak pandai bercakap atau explain peluang?
  • Dah cuba macam-macam, tapi rangkaian tak berkembang?

SFF dibina khas untuk bantu anda bina rangkaian secara automatik, tanpa perlu “push” orang seorang demi seorang.

Cara SFF Berfungsi

  1. Daftar akaun SFF dan lengkapkan profil ringkas.
  2. Masuk ke dashboard ahli & group rasmi.
  3. Like & share iklan yang kami sediakan setiap hari di media sosial.
  4. Sistem auto downline akan uruskan penempatan rangkaian anda.

Demo Ringkas SFF

Video demo boleh diletakkan di sini (embed dari YouTube/Vimeo).

Ruang Demo Video

Dah faham asas SFF? Sertai sekarang dan mulakan langkah pertama anda.

Saya Nak Sertai SFF Sekarang
prepare('SELECT id FROM users WHERE email = ?'); $stmt->bind_param('s', $email); $stmt->execute(); $stmt->store_result(); if ($stmt->num_rows > 0) { $errors[] = 'Emel ini sudah didaftarkan.'; } $stmt->close(); } if (empty($errors)) { $password_hash = password_hash($password, PASSWORD_BCRYPT); $sponsor_id_db = null; if ($sponsor_id !== '') { $sid = (int)$sponsor_id; $check = $conn->prepare('SELECT id FROM users WHERE id = ?'); $check->bind_param('i', $sid); $check->execute(); $check->store_result(); if ($check->num_rows > 0) { $sponsor_id_db = $sid; } $check->close(); } $stmt = $conn->prepare('INSERT INTO users (name,email,phone,age,state,occupation,how_found,sponsor_id,password_hash) VALUES (?,?,?,?,?,?,?,?,?)'); $stmt->bind_param('sssisssis', $name, $email, $phone, $age, $state, $occupation, $how_found, $sponsor_id_db, $password_hash); if ($stmt->execute()) { $new_user_id = $stmt->insert_id; $stmt->close(); if ($sponsor_id_db !== null) { $dl = $conn->prepare('INSERT INTO downlines (sponsor_id, user_id) VALUES (?,?)'); $dl->bind_param('ii', $sponsor_id_db, $new_user_id); $dl->execute(); $dl->close(); } $success = 'Pendaftaran berjaya. Anda boleh log masuk sekarang.'; } else { $errors[] = 'Ralat semasa pendaftaran. Sila cuba lagi.'; } } } ?>

Daftar Sebagai Ahli SFF

'.htmlspecialchars($e).'
'; ?>
prepare('SELECT id, name, password_hash, is_admin FROM users WHERE email = ?'); $stmt->bind_param('s', $email); $stmt->execute(); $stmt->bind_result($id, $name, $hash, $is_admin); if ($stmt->fetch() && password_verify($password, $hash)) { $_SESSION['user_id'] = $id; $_SESSION['user_name'] = $name; $_SESSION['is_admin'] = $is_admin; header('Location: dashboard.php'); exit; } else { $errors[] = 'Emel atau kata laluan salah.'; } $stmt->close(); } } ?>

Log Masuk Ahli SFF

'.htmlspecialchars($e).'
'; ?>

Belum ada akaun? Daftar di sini.

Lupa kata laluan?

prepare('UPDATE users SET reset_token = ? WHERE email = ?'); $stmt->bind_param('ss', $token, $email); $stmt->execute(); if ($stmt->affected_rows > 0) { // Dalam production, hantar link ini melalui emel. $success = 'Link reset (demo sahaja): reset_password.php?token='.$token; } else { $errors[] = 'Emel tidak dijumpai.'; } $stmt->close(); } } ?>

Lupa Kata Laluan

'.htmlspecialchars($e).'
'; ?>
prepare('SELECT id FROM users WHERE reset_token = ?'); $stmt->bind_param('s', $token); $stmt->execute(); $stmt->bind_result($uid); if ($stmt->fetch()) { $stmt->close(); $hash = password_hash($password, PASSWORD_BCRYPT); $update = $conn->prepare('UPDATE users SET password_hash = ?, reset_token = NULL WHERE id = ?'); $update->bind_param('si', $hash, $uid); $update->execute(); $update->close(); $success = 'Kata laluan berjaya ditukar. Anda boleh log masuk.'; } else { $errors[] = 'Token tidak sah atau telah digunakan.'; } } } ?>

Tetap Kata Laluan Baharu

'.htmlspecialchars($e).'
'; ?>

Sistem SFF

Sistem SFF

| |
© 2026 KUMAYAH SDN BHD
1342865M