23if (!defined(
"NOLOGIN")) {
24 define(
"NOLOGIN",
'1');
26if (!defined(
'NOIPCHECK')) {
27 define(
'NOIPCHECK',
'1');
29if (!defined(
'NOREQUIRESOC')) {
30 define(
'NOREQUIRESOC',
'1');
32if (!defined(
'NOTOKENRENEWAL')) {
33 define(
'NOTOKENRENEWAL',
'1');
35if (!defined(
'NOREQUIREMENU')) {
36 define(
'NOREQUIREMENU',
'1');
38if (!defined(
'NOREQUIREHTML')) {
39 define(
'NOREQUIREHTML',
'1');
41if (!defined(
'NOREQUIREAJAX')) {
42 define(
'NOREQUIREAJAX',
'1');
46require
'../../main.inc.php';
47require
'../../core/modules/barcode/doc/tcpdfbarcode.modules.php';
54$urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
67if (GETPOSTISSET(
"key")) {
70 $result = $module->buildBarCode($urlwithroot.
"/takepos/public/auto_order.php?key=".urlencode($key),
'QRCODE',
'Y');
73 $result = $module->buildBarCode($urlwithroot.
"/takepos/public/menu.php",
'QRCODE',
'Y');
global $dolibarr_main_url_root
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.
isModEnabled($module)
Is Dolibarr module enabled.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.