<?php
/**
 * Application Configuration
 * NOTE: you are not allowed to resell this source code
 */

//site URL
define('BASE_URL', '');
define('SETUP_DONE', false);

// app version
define('APP_NAME', 'SupportEngine Basic');
define('APP_BRANCH', '');
define('APP_VERSION', '2.2');
define('APP_MODE', 'Self-Hosted');
/** Application edition: "full" (complete) or "basic" (tickets-only free edition). */
define('APP_EDITION', 'basic');

//css
define('BOOTSTRAP_CSS', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.css');
define('BOOTSTRAP_ICONS', 'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13/font/bootstrap-icons.css');
define('BOOTSTRAP_JAVACRIPT', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.js');
define('CSS_FILE', 'style_default.css'); // Default CSS file to use
define('STYLE_HEADER', 'Default');
define('STYLE_FOOTER', 'Default');
define('STYLE_HOME', 'Default');

// Logo 
define('USE_LOGO', false); // Set to true to use logo instead of site name
define('LOGO_URL', ''); // URL for the logo image
define('LOGO_WIDTH', 120); // Width of the logo in pixels
define('FOOTER_LOGO_WIDTH', 100); // Width of the logo in the footer in pixels
define('USE_LOGO_LOGIN', false); // Set to true to use logo instead of site name
define('LOGO_LOGIN_URL', ''); // URL for the logo image
define('LOGO_LOGIN_WIDTH', 90); // Width of the logo in pixels

//language
define('SITE_LANGUAGE', 'English-US');
define('SITE_MULTI_LANGUAGE', false);

//custom texts
define('SITE_NAME', 'Your Site Name');
define('SITE_TAGLINE', 'Your site tagline');
define('SITE_WELCOME', 'Welcome to our support portal');
define('SITE_WELCOME_DETAILS', 'Get started by using the features below.');
define('SITE_TICKET_MESSAGE', '');
define('SITE_LOGIN_MESSAGE', '');
define('SITE_REGISTER_MESSAGE', '');

//email 
define('ADMIN_EMAIL', 'contact@yoursite.com');
define('SUPPORT_EMAIL', 'contact@yoursite.com');

// Contact information
define('CONTACT_EMAIL', 'contact@yoursite.com');
define('CONTACT_PHONE_PRIMARY', '');
define('CONTACT_PHONE_SECONDARY', '');
define('CONTACT_ADDRESS_LINE1', '');
define('CONTACT_ADDRESS_LINE2', '');
define('CONTACT_ADDRESS_CITY', 'Las Vegas');
define('CONTACT_ADDRESS_STATE', 'NV');
define('CONTACT_ADDRESS_ZIP', '89117');
define('CONTACT_ADDRESS_COUNTRY', 'United States');
define('CONTACT_HOURS_WEEKDAY', '9:00 AM - 6:00 PM PST');
define('CONTACT_HOURS_SATURDAY', '10:00 AM - 2:00 PM PST');
define('CONTACT_HOURS_SUNDAY', 'Closed');

// Mail provider
define('MAIL_PROVIDER', 'php'); // 'php' or 'smtp'
define('SMTP_HOST', '');
define('SMTP_PORT', 587);
define('SMTP_USERNAME', '');
define('SMTP_PASSWORD', '');
define('SMTP_ENCRYPTION', 'tls'); // 'tls', 'ssl', or 'none'
define('SMTP_FROM_EMAIL', '');
define('SMTP_FROM_NAME', SITE_NAME);

// Date and time 
define('DATE_FORMAT', 'M j, Y');
define('DATETIME_FORMAT', 'M j, Y g:i A');
define('TIMEZONE', 'America/Los_Angeles');
date_default_timezone_set(TIMEZONE);

// File upload
define('MAX_UPLOAD_SIZE', 52428800); // 50MB
define('ALLOWED_EXTENSIONS', ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'txt', 'zip', 'csv', 'webp', 'ppt', 'pptx', 'rtf']);

//social
define('SOCIAL_X', '');
define('SOCIAL_FACEBOOK', '');
define('SOCIAL_INSTAGRAM', '');
define('SOCIAL_LINKEDIN', '');
define('SOCIAL_BLUESKY', '');
define('SOCIAL_THREADS', '');
define('SOCIAL_DISCORD', '');
define('SOCIAL_MASTODON', '');
define('SOCIAL_YOUTUBE', '');

//injections
define('CUSTOM_JAVASCRIPT_FOOTER', '');  //should be stored as base64
define('CUSTOM_JAVASCRIPT_HEADER', '');  //should be stored as base64

// SEO
define('SEO_TITLE', '');
define('SEO_DESCRIPTION', '');
define('SEO_KEYWORDS', '');
define('SEO_AUTHOR', '');
define('SEO_IMAGE', '');

//Alert
define('ALERT_MESSAGE', '');

//Analytics
define('GOOGLE_ANALYTICS', '');

//features
define('ALLOW_REGISTER', true); // Set to false to disable the Register functionality

define('MAGIC_LINKS', false);

define('ENABLE_CONTACT', true); // Set to false to disable the Contact page
define('ENABLE_CONTACT_FORM', true); // Set to false to disable the contact form

define('ENABLE_NEWS', false);

define('ENABLE_FAQS', true); // Set to false to disable the FAQ section
define('FILE_TICKETS', true);

define('ENABLE_PROJECTS', false); // Set to false to disable the Projects functionality
define('DEFAULT_MILESTONES', ['To-Do List', 'In Progress', 'Validation', 'Done']);
define('ENABLE_FILES', false); // Set to false to disable the Files functionality
define('ALLOW_USER_TASKS', false); // true or false, allows regular users to create tasks (in designated "To Do" milestones)
define('ENABLE_KANBAN_VIEW', false); // true or false, to enable or disable the Kanban board view
define('TASK_PRIORITIES', ['low' => 'Low', 'medium' => 'Medium', 'high' => 'High', 'urgent' => 'Urgent']);

define('ALLOW_PASSWORD_CHANGE', true); // Allow password change
define('FORCE_EMAIL_VALIDATION', false); // Set to true to require email validation for new registrations
define('WELCOME_EMAIL', true); // Set to false to disable sending a welcome email upon successful registration/validation

define('LIVE_CHAT', false);
define('LIVE_CHAT_HEADER', true);
define('LIVE_CHAT_FOOTER', true);
define('CHAT_LIVECHATINC', false);
define('CHAT_LIVECHATINC_ID', '');
define('CHAT_CHATBASE', false);
define('CHAT_CHATBASE_ID', '');
define('CHAT_JOTFORM', false);
define('CHAT_JOTFORM_ID', '');
define('CHAT_CHATVIVE', false);
define('CHAT_CHATVIVE_ID', '');
define('CHAT_DANTE', false);
define('CHAT_DANTE_ID', '');

define('GDPR_POLICY', false);

define('CUSTOM_HEADER', false);
define('CUSTOM_HEADER_URL', 'https://yourdomain.com');
define('CUSTOM_HEADER_NAME', 'Other');

define('CUSTOM_REGISTRATION', false);
define('CUSTOM_REGISTRATION_URL', 'https://yourdomain.com/register');

define('ENABLE_LOCATION_FIELDS', false); // Enable Country/City fields for user profiles
define('DEFAULT_COUNTRY', 'US'); // Default country code (ISO 3166-1 alpha-2)
define('CUSTOM_JAVASCRIPT_CODE', '');

define('PAGE_PRIVACY', false);
define('PAGE_ABOUT', false);
define('PAGE_PORTFOLIO', false);
define('PAGE_TERMS', false);
define('PAGE_SERVICES', false);

// Session 
define('SESSION_LIFETIME', 604800); // Session lifetime in seconds (24 minutes by default)
define('SESSION_REMEMBER_ME_LIFETIME', 604800); // Remember me lifetime in seconds (1 week)
define('SESSION_USE_COOKIES', true); // Use cookies to store session IDs

// HMAC secret for guest order payment links (order_pay ?t=). Set a long random value in production.
define('ORDER_PAY_LINK_SECRET', '');

// security
define('MIN_PASSWORD_LENGTH', 8);
define('HONEYPOT_FIELD', 'website_url');
define('HONEYPOT_CSS', 'position: absolute; left: -9999px;');
define('HCAPTCHA_ENABLED', false); // Enable/disable hCaptcha protection
define('HCAPTCHA_SITE_KEY', ''); // Public site key from hCaptcha dashboard
define('HCAPTCHA_SECRET_KEY', ''); // Secret key from hCaptcha dashboard (keep private)
define('RATE_LIMIT_ENABLED', true); // Enable/disable rate limiting
define('RATE_LIMIT_MINUTES', 5); // Time window in minutes
define('RATE_LIMIT_MAX_ATTEMPTS', 3); // Maximum attempts allowed within time window
define('RATE_LIMIT_CLEANUP_HOURS', 24); // Clean old records older than X hours
define('REGISTRATION_RATE_LIMIT_MINUTES', 15); // 15-minute window for registrations
define('REGISTRATION_RATE_LIMIT_MAX_ATTEMPTS', 1); // Only 1 registration attempt allowed
define('DB_SSL_ENABLED', false);
define('DB_SSL_CA', ''); // if required
define('BANNED_EMAIL_PROVIDERS', ''); // list of email providers banned
define('BLOCKED_COMPANIES', ['google']); // Add more blocked company names as needed

// Database 
define('SHARED_HOSTING', false); // Set to true to enable optimizations for shared hosting environments


// Core Pro Features 
define('ENABLE_STORE', false); // Enable/disable the complete e-commerce store functionality
define('QUOTES_MANAGEMENT', false);
define('INVOICE_MANAGEMENT', false);
define('STORE_MANAGEMENT', false);
define('SUBSCRIPTIONS_MANAGEMENT', false);
define('STORE_CURRENCY', 'USD');
define('STORE_COUPONS', false);

// Tax System Configuration
define('ENABLE_TAX', true); // Enable/disable tax calculations globally
define('TAX_RATE', 8.5); // Default tax rate percentage (e.g., 8.5 for 8.5%)
define('TAX_LABEL', 'Sales Tax'); // Label to display for tax (e.g., 'Sales Tax', 'VAT', 'GST')
define('TAX_INCLUSIVE', false); // Set to true if prices include tax, false if tax is added to price
define('TAX_APPLY_TO_SHIPPING', true); // Apply tax to shipping costs
define('TAX_APPLY_TO_DIGITAL', true); // Apply tax to digital products
define('TAX_APPLY_TO_SERVICES', true); // Apply tax to service products

// Inventory Management
define('ENABLE_INVENTORY_TRACKING', true); // Track inventory for physical products
define('LOW_STOCK_THRESHOLD', 5); // Alert threshold for low stock
define('ENABLE_BACKORDERS', false); // Allow backorders when out of stock

// Customer Management
define('CUSTOMER_ACCOUNT_REQUIRED', false); // Require account creation for purchases

// AI & Automation (Future Pro Features)
define('AI_MANAGEMENT', false); // AI-powered features (future enhancement)

// Feature keys removed for v2.0 consolidation.

// API Token
define('API_TOKEN', 'b1e2f3c4d5a6e7f8g9h0i1j2k3l4m5n6');

//AI keys
define('AI_OPENAI', '');
define('AI_CLAUDE', '');
define('AI_GEMINI', '');
define('AI_MISTRAL', '');
define('AI_DEEPSEEK', '');

// IP Geolocation & Country Blocking (IPinfo.io)
define('IPINFO_API_KEY', ''); // IPinfo.io API key - leave empty to disable country blocking
define('IPINFO_BANNED_COUNTRIES', ''); // Comma-separated list of country codes to block (e.g., 'CN,RU,IR')
define('IPINFO_BLOCK_REDIRECT_URL', 'https://www.google.com'); // URL to redirect banned countries to


// Debug mode - set to true only in development environments
// NEVER enable this in production as it exposes sensitive information
define('DEBUG_MODE', false);

?>