<?php

if (!defined('sugarEntry')) {
    define('sugarEntry', true);
}

// Set maximum execution time to unlimited
//ini_set('max_execution_time', 0);

// Set memory limit to unlimited
//ini_set('memory_limit', -1);

ini_set('display_errors', 0);
 
header('Access-Control-Allow-Origin: https://portal.kiyocrmondemand.com');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type');


 /*
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 */


include 'include/MVC/preDispatch.php';
 
$startTime = microtime(true);
require_once 'include/entryPoint.php';
ob_start();
require_once 'include/MVC/SugarApplication.php';
$app = new SugarApplication();
$app->startSession();
$app->execute();

