<?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
没有合适的资源?快使用搜索试试~ 我知道了~
可做资源网博客模板源码 WordPress收费模板QUX主题
共1050个文件
png:672个
php:228个
js:47个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 27 浏览量
2022-07-04
15:56:31
上传
评论
收藏 4.56MB ZIP 举报
温馨提示
部分功能 社会化登录:支持社会化登录QQ/微博 自定义代码:支持自定义头部/底部代码 主题HTTPS:主题完美支持HTTPS 自定义代码:支持自定义头部/底部代码 支持多种头部选择:提供两种header头部选项,更加个性化 全站广告:全站提供多个自定义广告位,区分PC/手机端 密码内容:支持文章自定义密码内容提取后可见,文章隐私安全有效 回复后可见:集成自定义内容回复后可见,且支持管理员可见,回复高效而快捷 文章点赞收藏打赏:文章底部用户可以给文章点赞,收藏或者打赏一下作者维持收入 QQ快速获取信息:支持一键输入QQ获取用户信息,减去繁琐手动输入,提高浏览效率 首页滚动公告栏:首页滚动公告,黄金展示位置。 文章页支持短代码:多种短代码支持,回复可见,折叠栏,警告框,提示框,直达按钮,商品直达… 头像本地化处理:支持QQ、微博、本地上传头 更多文章小工具:百度收录提示,边栏折叠,手机二维码分享
资源推荐
资源详情
资源评论
收起资源包目录
可做资源网博客模板源码 WordPress收费模板QUX主题 (1050个子文件)
ip-to-country.bin 382KB
main.css 181KB
ucenter.css 108KB
bootstrap.min.css 98KB
animate.min.css 52KB
font-awesome.min.css 30KB
fancybox.min.css 12KB
login.css 8KB
user.css 8KB
optionsframework.css 6KB
game.css 6KB
editor-style.css 2KB
user-editor-style.css 2KB
share.css 2KB
nav.css 2KB
style.css 247B
Thumbs.db 4KB
fontawesome-webfont.eot 162KB
Tico.eot 52KB
post_loading.gif 14KB
icon_wink.gif 13KB
icon_arrow.gif 10KB
icon_twisted.gif 8KB
icon_question.gif 7KB
icon_mad.gif 5KB
icon_surprised.gif 4KB
icon_neutral.gif 4KB
icon_evil.gif 3KB
icon_rolleyes.gif 3KB
icon_lol.gif 3KB
load.gif 2KB
loading.gif 2KB
icon_razz.gif 2KB
icon_exclaim.gif 2KB
icon_idea.gif 2KB
icon_cry.gif 2KB
icon_redface.gif 2KB
icon_eek.gif 2KB
icon_smile.gif 2KB
floading.gif 2KB
icon_mrgreen.gif 2KB
icon_confused.gif 2KB
icon_biggrin.gif 2KB
icon_sad.gif 2KB
icon_cool.gif 1KB
ie.gif 762B
index.htm 2B
index.htm 2B
favicon.ico 1KB
3-full.jpg 165KB
user-default-cover-full.jpg 160KB
2-full.jpg 160KB
1-full.jpg 159KB
6-full.jpg 139KB
4-full.jpg 139KB
5-full.jpg 109KB
shop-bg.jpg 90KB
2.jpg 67KB
6.jpg 63KB
15.jpg 61KB
4.jpg 46KB
14.jpg 43KB
9.jpg 43KB
13.jpg 42KB
12.jpg 40KB
11.jpg 40KB
8.jpg 37KB
7.jpg 36KB
10.jpg 35KB
3.jpg 33KB
1.jpg 29KB
5.jpg 28KB
3-small.jpg 23KB
personcard-cover.jpg 23KB
4-small.jpg 20KB
1-small.jpg 19KB
6-small.jpg 18KB
2-small.jpg 18KB
5-small.jpg 15KB
pinyin.js 167KB
swiper.min.js 125KB
ucenter.js 99KB
jquery.min.js 90KB
codemirror.js 90KB
fancybox.min.js 67KB
main.js 56KB
jquery-ui.min.js 37KB
base.js 31KB
bootstrap.min.js 31KB
jscodeconfusion.js 22KB
forum.scripts.js 20KB
hammer.min.js 18KB
jsformat.js 18KB
comment.js 17KB
loader.js 15KB
user.js 15KB
htmlformat.js 15KB
jsrender.min.js 14KB
javascript.js 12KB
prettyprint.js 12KB
共 1050 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
智慧浩海
- 粉丝: 1w+
- 资源: 5119
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 珍藏多年的基于matlab实现潮流计算程序源代码集合,包含多个潮流计算程序.rar
- 使用FPGA实现串-并型乘法器
- 基于matlab实现针对基于双曲线定位的DV-Hop算法中误差误差出一种基于加权双曲线定位的DV-Hop改进算法.rar
- 基于matlab实现由遗传算法开发的整数规划,车辆调度问题.rar
- 电视家7.0(对电视配置要求高).apk
- 免费计算机毕业设计-基于JavaEE的医院病历管理系统设计与实现(包含论文+源码)
- 手机端 我的世界融合植物大战僵尸版.apk
- 植物大战僵尸 · 戴夫的老年生活 手机版.apk
- Runcraft · 我的世界跑酷游戏 手机端.apk
- pta题库答案c语言.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功