* * PWA Standalone Scanner - Mit eigenem Login (15 Tage gespeichert) */ // Kein Login erforderlich - wird via JavaScript geprueft if (!defined('NOLOGIN')) { define('NOLOGIN', '1'); } if (!defined('NOREQUIREMENU')) { define('NOREQUIREMENU', '1'); } // Load Dolibarr environment $res = 0; if (!$res && file_exists("../main.inc.php")) { $res = @include "../main.inc.php"; } if (!$res && file_exists("../../main.inc.php")) { $res = @include "../../main.inc.php"; } if (!$res && file_exists("../../../main.inc.php")) { $res = @include "../../../main.inc.php"; } if (!$res) { die("Dolibarr konnte nicht geladen werden"); } // Load translation files $langs->loadLangs(array("handybarcodescanner@handybarcodescanner", "products", "orders", "stocks")); // Get parameters $mode = GETPOST('mode', 'alpha') ?: 'order'; // Check mode-specific permissions $enableOrder = getDolGlobalInt('HANDYBARCODESCANNER_ENABLE_ORDER', 1); $enableShop = getDolGlobalInt('HANDYBARCODESCANNER_ENABLE_SHOP', 1); $enableInventory = getDolGlobalInt('HANDYBARCODESCANNER_ENABLE_INVENTORY', 1); // Get Dolibarr theme colors $colormain = getDolGlobalString('THEME_ELDY_TOPMENU_BACK1', '#0077b3'); ?>