👁️ Live preview
Vul je wensen in via de chat – dan verschijnt hier je voorstel.
/** * SiteChat v2 – Lovable-style AI website builder * Schone implementatie, geen bugs. Chat links, live preview rechts. */ header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Pragma: no-cache'); header('Expires: 0'); session_name('CUSTOMER_PORTAL_SESSION'); ini_set('session.cookie_path', '/'); ini_set('session.cookie_domain', ''); ini_set('session.cookie_httponly', '1'); ini_set('session.cookie_secure', isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? '1' : '0'); if (session_status() === PHP_SESSION_NONE) { session_start(); } $is_logged_in = isset($_SESSION['customer_logged_in']) && $_SESSION['customer_logged_in'] === true; $host = $_SERVER['HTTP_HOST'] ?? 'localhost'; $scheme = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https' : 'http'; $portal = in_array(strtolower($host), ['www.itlive.nl', 'itlive.nl'], true) ? 'portal.itlive.nl' : $host; $api_base = $scheme . '://' . $portal; $login_url = $api_base . '/customer_portal/login.php?redirect=' . urlencode($scheme . '://' . $host . '/sitechat-v2/'); $register_url = $api_base . '/customer_portal/register.php?redirect=' . urlencode($scheme . '://' . $host . '/sitechat-v2/'); $template = isset($_GET['template']) ? preg_replace('/[^a-z0-9_-]/', '', (string)$_GET['template']) : ''; ?>
Vul je wensen in via de chat – dan verschijnt hier je voorstel.