<?php
/*
* PHP QR Code encoder
*
* This file contains MERGED version of PHP QR Code library.
* It was auto-generated from full version for your convenience.
*
* This merged version was configured to not requre any external files,
* with disabled cache, error loging and weker but faster mask matching.
* If you need tune it up please use non-merged version.
*
* For full version, documentation, examples of use please visit:
*
* http://phpqrcode.sourceforge.net/
* https://sourceforge.net/projects/phpqrcode/
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Version: 1.1.4
* Build: 2010100721
*/
//---- qrconst.php -----------------------------
/*
* PHP QR Code encoder
*
* Common constants
*
* Based on libqrencode C library distributed under LGPL 2.1
* Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Encoding modes
define('QR_MODE_NUL', -1);
define('QR_MODE_NUM', 0);
define('QR_MODE_AN', 1);
define('QR_MODE_8', 2);
define('QR_MODE_KANJI', 3);
define('QR_MODE_STRUCTURE', 4);
// Levels of error correction.
define('QR_ECLEVEL_L', 0);
define('QR_ECLEVEL_M', 1);
define('QR_ECLEVEL_Q', 2);
define('QR_ECLEVEL_H', 3);
// Supported output formats
define('QR_FORMAT_TEXT', 0);
define('QR_FORMAT_PNG', 1);
class qrstr {
public static function set(&$srctab, $x, $y, $repl, $replLen = false) {
$srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl));
}
}
//---- merged_config.php -----------------------------
/*
* PHP QR Code encoder
*
* Config file, tuned-up for merged verion
*/
define('QR_CACHEABLE', false); // use cache - more disk reads but less CPU power, masks and format templates are stored there
define('QR_CACHE_DIR', false); // used when QR_CACHEABLE === true
define('QR_LOG_DIR', false); // default error logs dir
define('QR_FIND_BEST_MASK', true); // if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
define('QR_FIND_FROM_RANDOM', 2); // if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
define('QR_DEFAULT_MASK', 2); // when QR_FIND_BEST_MASK === false
define('QR_PNG_MAXIMUM_SIZE', 1024); // maximum allowed png image width (in pixels), tune to make sure GD and PHP can handle such big images
//---- qrtools.php -----------------------------
/*
* PHP QR Code encoder
*
* Toolset, handy and debug utilites.
*
* PHP QR Code is distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class QRtools {
//----------------------------------------------------------------------
public static function binarize($frame)
{
$len = count($frame);
foreach ($frame as &$frameLine) {
for($i=0; $i<$len; $i++) {
$frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
}
}
return $frame;
}
//----------------------------------------------------------------------
public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037')
{
$barcode_array = array();
if (!is_array($mode))
$mode = explode(',', $mode);
$eccLevel = 'L';
if (count($mode) > 1) {
$eccLevel = $mode[1];
}
$qrTab = QRcode::text($code, false, $eccLevel);
$size = count($qrTab);
$barcode_array['num_rows'] = $size;
$barcode_array['num_cols'] = $size;
$barcode_array['bcode'] = array();
foreach ($qrTab as $line) {
$arrAdd = array();
foreach(str_split($line) as $char)
$arrAdd[] = ($char=='1')?1:0;
$barcode_array['bcode'][] = $arrAdd;
}
return $barcode_array;
}
//----------------------------------------------------------------------
public static function clearCache()
{
self::$frames = array();
}
//----------------------------------------------------------------------
public static function buildCache()
{
QRtools::markTime('before_build_cache');
$mask = new QRmask();
for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) {
$frame = QRspec::newFrame($a);
if (QR_IMAGE) {
$fileName = QR_CACHE_DIR.'frame_'.$a.'.png';
QRimage::png(self::binarize($frame), $fileName, 1, 0);
}
$width = count($frame);
$bitMask = array_fill(0, $width, array_fill(0, $width, 0));
for ($maskNo
没有合适的资源?快使用搜索试试~ 我知道了~
分享优惠券 1.4.7解密开源版.zip
共135个文件
php:53个
html:37个
css:12个
需积分: 9 6 下载量 11 浏览量
2020-08-10
11:26:08
上传
评论
收藏 1.45MB ZIP 举报
温馨提示
1、支持活动线下直接收款支付核销方式,每个活动配有线下收款二维码!直接扫描二维码,选择优惠券支付核销。 2、不支付方式收款核销,直接长按核销二维码,进行密码核销,或者添加管理员不用输入密码,直接扫描用户二维码进行核销!
资源推荐
资源详情
资源评论
收起资源包目录
分享优惠券 1.4.7解密开源版.zip (135个子文件)
index.css 402KB
weui.css 188KB
bootstrap.min.css 107KB
animate.css 67KB
weui.min.css 39KB
weui.min.css 35KB
font-awesome.min.css 23KB
sweetalert.css 18KB
swiper-3.4.1.min.css 17KB
fonta .css 2KB
common.css 1KB
jquery-weui.css 960B
Simple-Line-Icons-22c149d485c7a93e34970dbf8045411d617d430bc6e4ac58a799b07a877ad601.eot 51KB
edit_activity.html 21KB
index_detail.html 17KB
ac.html 15KB
appsetting.html 13KB
past.html 11KB
index.html 11KB
editbusiness.html 11KB
mycp.html 9KB
choicecoupon.html 9KB
coupon_manage.html 9KB
address.html 9KB
sk.html 9KB
new_address.html 8KB
profileedit.html 7KB
user_coupon.html 7KB
hx.html 6KB
messages.html 6KB
my.html 6KB
leave_msg.html 6KB
acmanage.html 6KB
form.html 5KB
order_manage.html 5KB
business_manage.html 5KB
business_manage_1220.html 5KB
user_list_1219.html 5KB
user_list.html 5KB
about.html 4KB
profile.html 4KB
note.html 4KB
index_list_item.html 2KB
past_item.html 2KB
shotmenu.html 2KB
coupon_batch_add.html 2KB
coupon_edit.html 2KB
mycp_list_item.html 1KB
help.html 1KB
reply_activity_search.html 413B
97b31469c67f.jpg 101KB
e27141366abc.jpg 88KB
63fefd69066a.jpg 42KB
18575d8b6f81.jpg 36KB
templ.jpg 32KB
d119b8f11ff9.jpg 27KB
1d4e5fbbdda2.jpg 15KB
preview.jpg 10KB
icon.jpg 10KB
application-76ad2e6366c62c27774c2a3a009a4eda215a38b221401e4d5c56258fce36255d.js 464KB
baidu.js 142KB
swiper-3.4.1.jquery.min.js 119KB
jquery-2.1.1.min.js 82KB
jquery-2.1.1.min.js 82KB
region_select.js 43KB
sweetalert.min.js 15KB
jquery-weui.js 7KB
locationtransform.js 5KB
page.js 877B
map.json 65B
phpqrcode.php 119KB
upgrade.php 26KB
site.php 11KB
getcoupon.php 5KB
oauth2.class.php 4KB
editcoupon.php 4KB
monUtil.class.php 4KB
dbutil.class.php 3KB
core.php 3KB
exchagnedownload.php 3KB
addactivity.php 3KB
couponmanage.php 2KB
sharelist.php 2KB
choicecoupon.php 2KB
mycoupon.php 2KB
usercoupon.php 2KB
couponmangedownload.php 2KB
orderdownload.php 2KB
ordermanager.php 2KB
module.php 2KB
appsetting.php 2KB
activitymanger.php 2KB
skpay.php 1KB
businessmanger.php 1KB
businessmanger_1220.php 1KB
usermange.php 1KB
sk.php 1KB
editbusiness.php 1KB
userdownload.php 1KB
ac.php 1KB
共 135 条
- 1
- 2
资源评论
qq_41976365
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功