-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgetqrcode.php
47 lines (43 loc) · 1.34 KB
/
getqrcode.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* getqrcode.php
*
* @copyright Geekwright, LLC http://geekwright.com
* @license GNU General Public License (GPL)
* @since 1.0
* @author Richard Griffith [email protected]
* @package qr
* @version $Id$
*
**/
include '../../mainfile.php';
//include(XOOPS_ROOT_PATH."/header.php");
$dir = basename( dirname( __FILE__ ) ) ;
$limit_referer = $xoopsModuleConfig['limit_referer'];
if($limit_referer) $check=$GLOBALS['xoopsSecurity']->checkReferer();
else $check=true;
if ($check) {
if(isset($_REQUEST['qrdata'])) {
$qrdata=$_REQUEST['qrdata'];
$_GET['d']=$qrdata;
$_GET['e']=$xoopsModuleConfig['ec_level'];
unset($_GET['s'],$_GET['v'],$_GET['t'],$_GET['n'],$_GET['m'],$_GET['p'],$_GET['o']);
include_once(XOOPS_ROOT_PATH.'/modules/'.$dir.'/swetake/php/qr_img.php');
}
}
/*
* Possible parameters to qr_img.php:
* d= data URL encoded data.
* e= ECC level L or M or Q or H (default M)
* s= module size (dafault PNG:4 JPEG:8)
* v= version 1-40 or Auto select if you do not set.
* t= image type J:jpeg image , other: PNG image
*
* structured append m of n (experimental)
* n= structure append n (2-16)
* m= structure append m (1-16)
* p= parity
* o= original data (URL encoded data) for calculating parity
*/
//include(XOOPS_ROOT_PATH."/footer.php");
?>