This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

29
REST/index.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
//error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
chdir(dirname(__DIR__));
require_once('./REST/config.php');
require_once('./REST/functions.php');
if ($_GET['key'] != $restConfig['e5Key']) {
echo 'Unauthorized';
exit;
}
// Enable SugarCRM features
if(!defined('sugarEntry'))define('sugarEntry', true);
require_once('./include/entryPoint.php');
// Make action
switch ($_GET["action"]) {
case 'getInvoice':
sendInvoice($_GET['record']);
break;
case 'getProduct':
sendProduct($_GET['record']);
break;
case 'copySaleFromTwinpol':
copySaleFromTwinpol($_GET['record']);
break;
}
?>