<?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');
}
//-----------------------
没有合适的资源?快使用搜索试试~ 我知道了~
PHP实例开发源码—全新改版千月影视app系统源码(全开源).zip
共2931个文件
js:732个
png:489个
css:352个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 36 浏览量
2022-11-12
17:18:57
上传
评论
收藏 65.91MB ZIP 举报
温馨提示
PHP实例开发源码—全新改版千月影视app系统源码(全开源).zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码—全新改版千月影视app系统源码(全开源).zip (2931个子文件)
epay.config.php.bak 3KB
epay.config.php.bak 2KB
epay.config.php.bak 2KB
dx.ios.default.css 775KB
xenon.css 744KB
gb.min_d087b321.css 416KB
msearch.min_d6f9537c.css 381KB
dx.ios7.default.css 311KB
help.css 308KB
search.css 287KB
xenon-skins.css 267KB
amazeui.min.css 249KB
index.min_e1e71516.css 216KB
light-bootstrap-dashboard.css 215KB
dx.win8.black.css 188KB
xenon-core.css 185KB
dx.win8.white.css 182KB
playEpisode.c7b15bca.css 179KB
dx.light.css 174KB
dx.dark.css 170KB
xenon-components.css 164KB
h5-aura2.css 157KB
h5-aura.css 157KB
h5-aura1wdb.css 156KB
styles.css 153KB
uikit.gradient.css 150KB
dx.android.holo-light.css 148KB
dx.android.holo-dark.css 147KB
uikit.almost-flat.css 146KB
bootstrap.css 146KB
uikit.css 138KB
bootstrap.css 128KB
bootstrap.min.css 120KB
bootstrap.css 118KB
elusive-embedded.css 115KB
swiper.min.css 112KB
h5-search.css 105KB
style_xc.css 101KB
style1.css 100KB
style.css 100KB
style3.css 99KB
style.css 98KB
bootstrap.css 90KB
dx.common.css 90KB
bootstrap.css 90KB
h5-play-aura.css 85KB
util.css 85KB
uikit.css 84KB
uikit.gradient.min.css 84KB
layui1.css 82KB
layui.css 82KB
uikit.almost-flat.min.css 81KB
gokalog_mui.min.css 81KB
bootstrap.min.css 79KB
uikit.min.css 75KB
style_user.css 75KB
animate.css 73KB
apic.css 70KB
login_style.css 70KB
xenon-forms.css 68KB
style2.css 68KB
aui.css 65KB
aui2.css 65KB
aui.css 65KB
linecons-embedded.css 65KB
styles.css 65KB
aui.css 63KB
new_file.css 62KB
aui.css 61KB
h5-mine-aura1wdb.css 61KB
animate.min.css 60KB
gb.min_4383aaa5.css 59KB
layui.css 59KB
user.css 59KB
h5-channel-aura.css 54KB
h5-mine-aura.css 53KB
video_classification.css 51KB
frame0_3.css 51KB
grzxui.css 51KB
uikit.css 48KB
frame1.css 47KB
shortcodes.css 43KB
agent_ad_administration.css 43KB
fontawesome-all.css 41KB
fontawesome.css 40KB
frame2.css 38KB
meteocons-embedded.css 38KB
editor_ie7.css 37KB
activation_code_log_list_frm.css 37KB
font-awesome.css 37KB
app.css 36KB
editor_iequirks.css 36KB
editor_ie8.css 36KB
editor_ie.css 35KB
editor_gecko.css 35KB
editor.css 34KB
editor.css 34KB
style.css 34KB
upgrade_vip.css 33KB
upgrade_agent.css 33KB
共 2931 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30
资源评论
- mohen9992023-02-22总算找到了自己想要的资源,对自己的启发很大,感谢分享~
毕业_设计
- 粉丝: 1930
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功