<?php

include $QR_BASEDIR . "qrconst.php";
include $QR_BASEDIR . "qrconfig.php";
include $QR_BASEDIR . "qrtools.php";
include $QR_BASEDIR . "qrspec.php";
include $QR_BASEDIR . "qrimage.php";
include $QR_BASEDIR . "qrinput.php";
include $QR_BASEDIR . "qrbitstream.php";
include $QR_BASEDIR . "qrsplit.php";
include $QR_BASEDIR . "qrrscode.php";
include $QR_BASEDIR . "qrmask.php";
include $QR_BASEDIR . "qrencode.php";


$code = filter_input(INPUT_GET, "code");

QRcode::png($code, $pngAbsoluteFilePath);
//
//
//
//if (!isset($style))
//    $style = BCD_DEFAULT_STYLE;
//if (!isset($width))
//    $width = BCD_DEFAULT_WIDTH;
//if (!isset($height))
//    $height = BCD_DEFAULT_HEIGHT;
//if (!isset($xres))
//    $xres = BCD_DEFAULT_XRES;
//if (!isset($font))
//    $font = BCD_DEFAULT_FONT;
//
//
//
//
//switch ($type) {
//    case "I25":
//        $obj = new I25Object($width, $height, $style, $code);
//        break;
//    case "C39":
//        $obj = new C39Object($width, $height, $style, $code);
//        break;
//    case "C128A":
//        $obj = new C128AObject($width, $height, $style, $code);
//        break;
//    case "C128B":
//        $obj = new C128BObject($width, $height, $style, $code);
//        break;
//    case "C128C":
//        $obj = new C128CObject($width, $height, $style, $code);
//        break;
//    default:
//        echo "Need bar code type ex. C39";
//        $obj = false;
//}
//
//if ($obj) {
//    $obj->SetFont($font);
//    $obj->DrawObject($xres);
//    $obj->FlushObject();
//    $obj->DestroyObject();
//    unset($obj);  /* clean */
//}
?>