<?php
/* SVN FILE: $Id: qcode.php 164 2008-04-23 00:36:15Z bb_yujiro $ */
/**
 * バイナリデータの出力
 *
 * PHP versions 5
 *
 *      rktFW : Development Framework <http://rakuto.net/>
 *      Copyright (c) 2007 Yujiro Takahashi
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright       Copyright (c) 2007 Yujiro Takahashi
 * @link            http://rakuto.net/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @package         rktFW
 * @version         $Revision: 164 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-04-23 09:36:15 +0900 (水, 23 4 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */

/* =-=- モジュール等の読み込み -=-= */
require '../config.php';
require LIB_DIR.'rkt_blob.php';
require LIB_DIR.'qrcode/qrcode_img.php';

$objqr = new Qrcode_image();

$objqr->set_module_size(3);

$url = BASE_URL;

header('Content-Type: image/png');
header('Content-disposition: inline; filename=qcode.png');

$objqr->qrcode_image_out($url, 'png');
?>