22if (!defined(
"NOLOGIN")) {
23 define(
"NOLOGIN",
'1');
25if (!defined(
'NOIPCHECK')) {
26 define(
'NOIPCHECK',
'1');
28if (!defined(
'NOREQUIRESOC')) {
29 define(
'NOREQUIRESOC',
'1');
31if (!defined(
'NOTOKENRENEWAL')) {
32 define(
'NOTOKENRENEWAL',
'1');
34if (!defined(
'NOREQUIREMENU')) {
35 define(
'NOREQUIREMENU',
'1');
37if (!defined(
'NOREQUIREHTML')) {
38 define(
'NOREQUIREHTML',
'1');
40if (!defined(
'NOREQUIREAJAX')) {
41 define(
'NOREQUIREAJAX',
'1');
45require
'../../main.inc.php';
46require
'../../core/modules/barcode/doc/tcpdfbarcode.modules.php';
48$urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
49$urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
51if (!isModEnabled(
'takepos')) {
62if (GETPOSTISSET(
"key")) {
65 $result = $module->buildBarCode($urlwithroot.
"/takepos/public/auto_order.php?key=".urlencode($key),
'QRCODE',
'Y');
68 $result = $module->buildBarCode($urlwithroot.
"/takepos/public/menu.php",
'QRCODE',
'Y');
Class to generate barcode images using tcpdf barcode generator.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.