|
@@ -22,17 +22,36 @@
|
|
|
* \brief File that is entry point to call Dolibarr WebServices
|
|
|
*/
|
|
|
|
|
|
-if (!defined("NOCSRFCHECK")) {
|
|
|
- define("NOCSRFCHECK", '1');
|
|
|
+if (!defined('NOCSRFCHECK')) {
|
|
|
+ define('NOCSRFCHECK', '1'); // Do not check anti CSRF attack test
|
|
|
+}
|
|
|
+if (!defined('NOTOKENRENEWAL')) {
|
|
|
+ define('NOTOKENRENEWAL', '1'); // Do not check anti POST attack test
|
|
|
+}
|
|
|
+if (!defined('NOREQUIREMENU')) {
|
|
|
+ define('NOREQUIREMENU', '1'); // If there is no need to load and show top and left menu
|
|
|
+}
|
|
|
+if (!defined('NOREQUIREHTML')) {
|
|
|
+ define('NOREQUIREHTML', '1'); // If we don't need to load the html.form.class.php
|
|
|
+}
|
|
|
+if (!defined('NOREQUIREAJAX')) {
|
|
|
+ define('NOREQUIREAJAX', '1'); // Do not load ajax.lib.php library
|
|
|
+}
|
|
|
+if (!defined("NOLOGIN")) {
|
|
|
+ define("NOLOGIN", '1'); // If this page is public (can be called outside logged session)
|
|
|
+}
|
|
|
+if (!defined("NOSESSION")) {
|
|
|
+ define("NOSESSION", '1');
|
|
|
}
|
|
|
|
|
|
-require '../master.inc.php';
|
|
|
+require '../main.inc.php';
|
|
|
require_once NUSOAP_PATH.'/nusoap.php'; // Include SOAP
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/ws.lib.php';
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
|
|
require_once DOL_DOCUMENT_ROOT."/commande/class/commande.class.php";
|
|
|
|
|
|
|
|
|
+
|
|
|
dol_syslog("Call Dolibarr webservices interfaces");
|
|
|
|
|
|
$langs->load("main");
|