<?php

session_start();

// Hide warnings & notices
error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE);

date_default_timezone_set('Asia/Calcutta');

/*=========================================
   CHECK LOCAL OR LIVE
=========================================*/
if ($_SERVER['HTTP_HOST'] == "localhost") {

    define('LOCAL_MODE', true);

    // Local URL
    $path = "http://localhost/bmj";

    // Local server path
    define('BASEDIR', $_SERVER['DOCUMENT_ROOT'] . "/karma-detective-agency");

} else {

    define('LOCAL_MODE', false);

    // Live URL
    $path = "https://inbizmart.net/karma-detective-agency";

    // Live server path - FIXED: Add the subdirectory
    define('BASEDIR', $_SERVER['DOCUMENT_ROOT'] . "/karma-detective-agency");

}

/*=========================================
   CONSTANTS
=========================================*/
define("SITE_URL", $path);
define("ADMIN_SITE_URL", $path . "/wbadmin");
define("PROJECT_NAME", "Karma detective agency");
define("SITE_FOOTER", "Copyright © " . date('Y') . ", Karma detective agency. All Rights Reserved.");

?>