14 if(!empty($_GET[
'path']) || !empty($_GET[
'barcode'])) {
15 define(
'LOAD_NO_OPTIONAL_MODULE',
true);
16 define(
'SKIP_SET_LANG',
true);
18 include(
"configuration.inc.php");
20 if (!empty($_GET[
'barcode'])) {
21 $data = $_GET[
'barcode'];
25 $cache_id = md5(
$data);
26 $lifetime = 3600*24*30;
27 $this_cache_object =
new Cache($cache_id, array(
'group' =>
'qrcode'));
28 if ($this_cache_object->testTime($lifetime,
true)) {
29 $output = $this_cache_object->get();
32 if (!empty($_GET[
'barcode'])) {
33 require_once(
$GLOBALS[
'dirroot'] .
'/lib/class/pdf/barcodes.php');
36 $barcodeobj->getBarcodePNG(1.4, 60, array(0,0,0));
38 require_once(
$GLOBALS[
'dirroot'] .
'/lib/class/pdf/2dbarcodes.php');
41 $barcodeobj->getBarcodePNG(3, 3, array(0,0,0));
45 $this_cache_object->save(
$output);
47 header(
'Content-Type: image/png');
48 $this_cache_object->echo_headers($lifetime);
49 unset($this_cache_object);
foreach(array('date1', 'date2', 'type', 'renewals', 'width') as $item) $data
PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www...
$GLOBALS['page_columns_count']
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).