* @author Dave Hall * @copyright 2005-2008 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @version CVS: $Id:$ * @link http://pear.php.net/package/Image_Barcode2 */ /** * @see Image_Barcode2 */ require_once 'Image/Barcode2.php'; $num = isset($_REQUEST['num']) ? $_REQUEST['num'] : '15101967'; $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'Int25'; $imgtype = isset($_REQUEST['imgtype']) ? $_REQUEST['imgtype'] : 'png'; $ib = new Image_Barcode2(); try { $ib->draw($num, $type, $imgtype, true); } catch (Image_Barcode2_Exception $e) { $ib->draw($e->getMessage(), 'Error', $imgtype, true); } ?>