*/ // must be run within Dokuwiki if(!defined('DOKU_INC')) die(); class helper_plugin_qrcode2 extends DokuWiki_Plugin { protected $title_metadata = array(); protected $exclusions = array(); protected $nsignore = array(); /** * Build and print or return QRCode * * mostly based on plugin author work Daniel Pätzold */ function get_img($target, $return = false, $size = 96) { global $conf; if(isset($conf['userewrite']) && $conf['userewrite'] == 2) { $src = "../lib/plugins/qrcode2/png.php?id=".$target; } else { $src = "lib/plugins/qrcode2/png.php?id=".$target; } if ($return) { return $src; } else { print '*QRCode2*'; return 1; } } }