<?php

/**
 * LOVE-U Essentials Global Configuration
 */

session_start();

define('APP_NAME', 'LOVE-U Essentials');
define('APP_ENV', 'development');

define('BASE_URL', 'http://localhost/love-u-essentials');
define('ADMIN_URL', BASE_URL . '/admin');

define('UPLOAD_PATH', __DIR__ . '/../../uploads/');
define('PRODUCT_UPLOAD_PATH', UPLOAD_PATH . 'products/');
define('BANNER_UPLOAD_PATH', UPLOAD_PATH . 'banners/');
define('REVIEW_UPLOAD_PATH', UPLOAD_PATH . 'reviews/');

define('DEFAULT_CURRENCY', 'GBP');
define('DEFAULT_TIMEZONE', 'Europe/London');

date_default_timezone_set(DEFAULT_TIMEZONE);

if (APP_ENV === 'development') {
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
} else {
    ini_set('display_errors', 0);
    error_reporting(0);
}