Site Builder
Editing:
index.php
writable 0666
<?php /* /members/index.php personalised referral / landing page */ declare(strict_types=1); /* -------------------------------------------------------------- 1. Capture ?ref=username (letters, digits, _ or - only) ----------------------------------------------------------------*/ $ref = ''; if (!empty($_GET['ref']) && preg_match('/^[A-Za-z0-9_-]{3,32}$/', $_GET['ref'])) { $ref = $_GET['ref']; /* Remember for 30 days, HTTP‑only cookie */ setcookie('bdo_ref', $ref, [ 'expires' => time() + 30*24*3600, 'path' => '/', 'secure' => true, 'httponly' => true, 'samesite' => 'Lax' ]); } elseif (!empty($_COOKIE['bdo_ref']) && preg_match('/^[A-Za-z0-9_-]{3,32}$/', $_COOKIE['bdo_ref'])) { $ref = $_COOKIE['bdo_ref']; } /* For display – prefix with “@” only if we have a code */ $refDisplay = $ref ? '@'.$ref : 'your colleague'; ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>BestDealOn | Full‑Page Digital Ads for the AI Era</title> <meta name="viewport" content="width=device-width,initial-scale=1"> <style> /* ---- 2025‑ready, accessible, mobile‑first design ---------------- */ :root{ --c1:#050505; --c2:#ffffff; --cAccent:#0066ff; --cAccentDark:#0044b8; --maxW:960px; --radius:10px; --gap:clamp(1rem,3vw,2rem); font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif; color:var(--c1); background:var(--c2); line-height:1.5 } *{box-sizing:border-box;margin:0;padding:0} a{color:var(--cAccent);text-decoration:none} a:hover,a:focus{color:var(--cAccentDark);text-decoration:underline} section{padding:clamp(2rem,5vw,4rem) var(--gap)} h1{font-size:clamp(2.2rem,5vw,3rem);margin-bottom:1rem} h2{font-size:1.7rem;margin:2rem 0 1rem} .hero{background:#f5f7ff;border-bottom:4px solid var(--cAccentDark)} .hero p{font-size:1.25rem;margin-top:0.5rem} .grid{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit,minmax(280px,1fr))} .bullet{background:#fafafa;border:1px solid #e3e6f0;border-radius:var(--radius);padding:1.25rem} .cta{display:inline-block;margin-top:2rem;background:var(--cAccent);color:#fff; padding:0.9rem 2.2rem;border-radius:var(--radius);font-size:1.15rem;font-weight:600} .cta:hover,.cta:focus{background:var(--cAccentDark)} footer{font-size:.9rem;text-align:center;padding:2rem 1rem;color:#666} button:focus-visible,a:focus-visible{outline:3px solid var(--cAccentDark);outline-offset:3px} </style> </head> <body> <!-- HERO / PERSONAL GREETING -------------------------------- --> <section class="hero"> <div style="max-width:var(--maxW);margin:auto;"> <h1>👋 <?= htmlspecialchars($refDisplay) ?> invited you to BestDealOn!</h1> <p>The fastest way to publish a <strong>full‑page, AI‑ready digital ad</strong> – complete with structured data, conversational SEO, and blazing performance.</p> <a href="#join" class="cta">See the benefits ↓</a> </div> </section> <!-- VALUE PROPOSITION ---------------------------------------- --> <section id="join"> <div style="max-width:var(--maxW);margin:auto;"> <h2>Why businesses choose BestDealOn in 2025</h2> <div class="grid" style="margin-top:1rem"> <div class="bullet">⚡️ <strong>Instant speed</strong><br>Static hosting & edge caching deliver pages in <1 s worldwide.</div> <div class="bullet">🤖 <strong>AI‑optimised</strong><br>Schema‑rich pages crafted for ChatGPT, Gemini & voice assistants.</div> <div class="bullet">📈 <strong>Conversational SEO</strong><br>Rank for natural‑language queries without extra effort.</div> <div class="bullet">🔗 <strong>Link‑in‑bio ready</strong><br>Your page doubles as a social‑profile hub with trackable outbound links.</div> <div class="bullet">💡 <strong>Agent‑compatible</strong><br>Edit once – let our OpenAI agents keep your offers fresh 24 × 7.</div> <div class="bullet">🔒 <strong>No lock‑in</strong><br>Export static HTML anytime. You own 100 % of your data.</div> </div> <a href="/members/register.php<?= $ref ? '?ref='.urlencode($ref) : '' ?>" class="cta">Launch my page — free setup </a> <p style="margin-top:.8rem;font-size:.85rem;color:#555">Only $100 / year after your free trial – cancel anytime.</p> </div> </section> <!-- FAQ (optional, collapses on small screens) ---------------- --> <section style="background:#f9fafc;border-top:1px solid #e5e8f2"> <div style="max-width:var(--maxW);margin:auto;"> <h2 id="faq">FAQ</h2> <details style="margin-top:1rem"><summary><strong>Do I need a website?</strong></summary> <p style="margin-top:.5rem">No. BestDealOn hosts everything. Just point your fans to <code>bestdealon.com/your‑phone</code> or map your own domain later.</p> </details> <details style="margin-top:1rem"><summary><strong>Can I upgrade later?</strong></summary> <p style="margin-top:.5rem">Yes – start free, upgrade to Premium any time for richer schema, extra storage and AI content refreshes.</p> </details> </div> </section> <footer> © <?= date('Y') ?> BestDealOn.com – Advertising in the Age of AI </footer> <script> /* smooth‑scroll for the “See the benefits” link, no jQuery */ document.querySelectorAll('a[href^="#"]').forEach(a=>{ a.addEventListener('click',e=>{ const id=a.getAttribute('href').slice(1); const el=document.getElementById(id); if(el){ e.preventDefault(); el.scrollIntoView({behavior:'smooth'}); } }); }); </script> </body> </html>
Save changes
Create folder
writable 0777
Create
Cancel