<?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));
fo
没有合适的资源?快使用搜索试试~ 我知道了~
培训课堂v1.1.4开源版源码下载-培训类机构公众号程序
共402个文件
php:159个
png:129个
html:50个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 18 浏览量
2022-03-15
15:08:42
上传
评论
收藏 1.59MB ZIP 举报
温馨提示
选择课程->购买课程->观看->考试 分享课程->下级用户加入->注册成为VIP->下级用户购买课程或者升级成为VIP时分佣。 版本号:1.1.4 – 1.0 15:47 1、添加了聚合短信验证 2、修复了wap登陆密码不正确BUG 2、wap端添加了退出按钮
资源推荐
资源详情
资源评论
收起资源包目录
培训课堂v1.1.4开源版源码下载-培训类机构公众号程序 (402个子文件)
mobiscroll.2.13.2.css 72KB
loaders.css 55KB
style.css 31KB
ExpressStoresList.css 29KB
style2.css 29KB
style.css 29KB
style1.css 28KB
main.css 24KB
style2.css 23KB
comom2.css 18KB
comom.css 18KB
swiper.min.css 17KB
swiper.min.css 15KB
reset.css 13KB
ss_base.css 2KB
index.css 2KB
audio.css 2KB
defaultpic.gif 4KB
surPay_list1_bg.gif 1KB
paper_list.html 24KB
commission.html 24KB
setting.html 21KB
halltest.html 19KB
lesson.html 17KB
member.html 17KB
lesson.html 15KB
questions_list.html 14KB
details_0803.html 14KB
order1.html 14KB
order.html 14KB
reading.html 12KB
user.html 12KB
xuanyan.html 11KB
test_list.html 11KB
details_one.html 11KB
details_bak.html 10KB
yp.html 10KB
details.html 10KB
details_buy.html 10KB
list.html 10KB
details_bak1.html 9KB
son_details_bak1.html 8KB
son_details_bak11.html 8KB
cover.html 8KB
son_details_bak.html 8KB
kind.html 8KB
cover_bak.html 7KB
son_details.html 7KB
usercenter.html 7KB
audioCourse.html 7KB
learningExperience.html 6KB
banner.html 5KB
son_details_article.html 5KB
experiencerecord.html 5KB
my_member.html 5KB
comsetting.html 5KB
questions_class.html 5KB
register.html 5KB
learning.html 5KB
header.html 5KB
binding.html 4KB
collect.html 4KB
consume.html 4KB
test.html 4KB
tx_commission.html 4KB
my_commission.html 4KB
login.html 3KB
back.html 411B
pay.html 47B
index_banner_pic1.jpg 99KB
index_pic2.jpg 95KB
index_pic1.jpg 83KB
audio_bg.jpg 82KB
course_pic1.jpg 49KB
icon.jpg 42KB
userCenter_pic1.jpg 29KB
audio_dimg.jpg 19KB
imgcrush.jpg 9KB
daohang1.jpg 4KB
list_ico_money.jpg 2KB
list_ico_search.jpg 1KB
list_ico_mark.jpg 1KB
header_return_white_icon.jpg 1KB
dm.js 117KB
jquery-1.11.1.min.js 94KB
jquery.jplayer.js 93KB
jquery.min.js 85KB
jquery-2.1.4.min.js 84KB
wh.js 70KB
swiper.min.js 62KB
swiper.min.js 55KB
bcore.min.js 52KB
mouseclick.js 8KB
meishijie_wap.js 6KB
fastclick.min.js 6KB
ac.js 3KB
2139665.js 2KB
rem.js 1KB
installed.json 36KB
composer.json 638B
共 402 条
- 1
- 2
- 3
- 4
- 5
资源评论
智慧浩海
- 粉丝: 1w+
- 资源: 5445
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功