<?php $cp_id=TGET('cp_id'); $cs_id=TGET('cs_id'); $QR_BASEDIR ='includes/phpqrcode/'; include $QR_BASEDIR."qrconst.php"; define('QR_CACHEABLE', true); define('QR_CACHE_DIR', $Config->CachePrefix.'qrcode/'); define('QR_LOG_DIR', $Config->CachePrefix.'qrcodelog/'); define('QR_FIND_BEST_MASK', true); define('QR_FIND_FROM_RANDOM', false); define('QR_DEFAULT_MASK', 2); define('QR_PNG_MAXIMUM_SIZE', 1024); 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"; @mkdir(QR_CACHE_DIR,0755,true); @mkdir(QR_LOG_DIR,0755,true); $q=$dataset['ROOT-URL'].'/'.($cp_id?'cp'.$cp_id.'/':'').($cs_id?'qx-cmd-course.detail-cs_id-'.$cs_id.'.html':''); QRcode::png($q); $CMD_TMPL_NAME=false; ?>