<?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=0; $maskNo<8; $maskNo++)
$mask->makeMaskNo($maskNo, $width, $frame, $bitMask, true);
}
QRtools::markTime('after_build_cache');
}
//-----------------------
没有合适的资源?快使用搜索试试~ 我知道了~
已测试,WordPress主题 Relive 3.1版本,自媒体博客主题模板
共526个文件
php:385个
png:80个
js:29个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 49 浏览量
2022-07-13
12:33:54
上传
评论
收藏 5.17MB RAR 举报
温馨提示
已测试,WordPress主题 Relive 3.1版本,自媒体博客主题模板
资源推荐
资源详情
资源评论
收起资源包目录
已测试,WordPress主题 Relive 3.1版本,自媒体博客主题模板 (526个子文件)
style.css 286KB
vendors.css 147KB
user.css 51KB
cs-framework.min.css 34KB
font-awesome.min.css 30KB
iconfont.css 24KB
blocks.style.build.css 14KB
jquery.fancybox.min.css 12KB
editor-style.css 9KB
demo.css 8KB
blocks.editor.build.css 3KB
cs-framework-rtl.min.css 3KB
cs-framework-light.css 3KB
post_thumb.css 2KB
style.css 140B
iconfont.eot 25KB
软希网58soho.cn-虚拟资源下载平台-小程序、APP源码、整站源码、视频教程、精品源码、网站源码、游戏源码、文库素材、实用软件工具、商业源码、实用EXCEL_WORD_PPT文档等 (1).html 252KB
fonts.html 24KB
favicon.ico 1KB
screenshot.jpg 151KB
prismjs.min.js 72KB
jquery.fancybox.min.js 67KB
scripts.js 65KB
blocks.build.js 63KB
flickity.min.js 53KB
chosen.jquery.js 44KB
owl.carousel.min.js 43KB
owl-carousel.min.js 42KB
cs-plugins.min.js 40KB
fotorama.min.js 38KB
bootstrap.min.js 36KB
perfect-scrollbar.min.js 25KB
prism.js 21KB
magnific-popup.min.js 20KB
jquery.tooltip.js 17KB
jquery.interdependencies.js 17KB
cs-framework.min.js 17KB
webfont.js 13KB
shortcodes.js 12KB
blocks.front.build.js 8KB
lazysizes.min.js 7KB
user.js 6KB
theiaStickySidebar.min.js 5KB
vticker.min.js 4KB
countdown.min.js 4KB
fitvids.js 3KB
jquery.actual.js 3KB
admin-colorful-categories.js 899B
throttle-debounce.min.js 739B
01-font-awesome.json 3KB
wp-clean-up-zh_CN.mo 2KB
phpqrcode.php 116KB
framework.config.php 93KB
timthumb.php 51KB
author.php 31KB
hooks.php 26KB
utils.php 24KB
shortcodes.php 21KB
functions.php 20KB
widget-hotpost.php 16KB
wp_clean_up_admin.php 14KB
framework.class.php 14KB
open-social.php 14KB
colorful-categories.php 13KB
theme-updater-admin.php 12KB
admin.php 12KB
options.class.php 10KB
cs-framework-path.php 9KB
widget.php 9KB
follow.php 8KB
class-sitemap-settings.php 8KB
xintheme-login.php 8KB
single.php 8KB
comments.php 7KB
metabox.class.php 7KB
simple-urls.php 7KB
class-do-sitemap.php 7KB
xintheme-seo.php 7KB
toImage.php 7KB
taxonomy.config.php 6KB
taxonomy.class.php 6KB
full-4.php 6KB
full-4.php 6KB
header.php 6KB
theme-updater-class.php 6KB
full-4.php 5KB
shortcode.class.php 5KB
full-4.php 5KB
full-4.php 5KB
full-4.php 5KB
full-4.php 5KB
full-6.php 5KB
full-6.php 5KB
full-6.php 5KB
full-6.php 5KB
helpers.php 5KB
metabox.config.php 5KB
full-6.php 5KB
full-6.php 5KB
full-6.php 5KB
共 526 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
软希源码
- 粉丝: 4596
- 资源: 3635
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Anaconda3-2024.02-1-Windows-x86-64.exe
- stm32cubemx can通信 一个板子负责传感器采集 一个板子负责wifi传递到网页 网页可控制传感器板子.zip
- k8s集群搭建1.27.1版本(来源于图灵k8s笔记)
- 树莓派连接 DS18B20 温度传感器读取温度时监控客户端,服务器端连接状况,实现断线重连机制
- 小游戏-坦克大战,你认为的小游戏
- 最好用的富文本编辑器wangeditor
- jQuery 3.7.1
- 校园失物招领小程序源码可作毕业设计
- SAP客户端GUI740安装包(JAVA版本)
- winlibs-x86-64-posix-seh-gcc-13.2.0-llvm-16.0.6-mingw-w64msvcrt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功