<?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
没有合适的资源?快使用搜索试试~ 我知道了~
PHPEMS在线模拟考试系统 5.0.zip
共1507个文件
js:646个
tpl:440个
php:238个
1星 需积分: 31 13 下载量 158 浏览量
2019-05-23
15:26:33
上传
评论 1
收藏 11.12MB ZIP 举报
温馨提示
PHPEMS在线模拟考试系统基于PHP MySQL开发,永久开源免费,支持多种题型和展现方式,是国内首款支持题冒题和手自动一体评分的PHP在线模拟考试系统。PHPEMS在线模拟考试系统 5.0 更新日志:2018-07-181.增加证书模块;2.增加邮箱密码验证; 3.优化手机端前台界面;4.增加教师管理课程功能; 5.修复已知bug。
资源推荐
资源详情
资源评论
收起资源包目录
PHPEMS在线模拟考试系统 5.0.zip (1507个子文件)
bootstrap.css 144KB
animations.css 51KB
editor_ie8.css 36KB
editor_iequirks.css 36KB
editor_ie.css 35KB
editor_gecko.css 34KB
editor.css 34KB
jquery-ui.css 33KB
bootstrap-theme.css 26KB
swiper.min.css 17KB
dialog_ie8.css 15KB
dialog_iequirks.css 14KB
dialog_ie.css 14KB
dialog.css 13KB
datetimepicker.css 12KB
mathquill.css 9KB
peskin.css 4KB
contents.css 3KB
mskin.css 3KB
wsc.css 1KB
toolbar.css 1KB
wsc.css 1KB
bootstrap-treeview.css 1KB
tableselection.css 1KB
contents.css 635B
dialog.css 419B
scayt.css 381B
contents.css 315B
jquery-ui.min.css 215B
ckeditor.css 67B
PHPEMS安装使用操作文档.docx 2.88MB
Symbola.eot 869KB
glyphicons-halflings-regular.eot 20KB
loading.gif 11KB
loader.gif 9KB
spinner.gif 3KB
music.gif 930B
loader.gif 784B
noimage.gif 455B
noimage.gif 455B
video.gif 202B
wikititle.gif 89B
nestedwidgets.html 11KB
widgetstyles.html 9KB
mathjax.html 9KB
magicfinger.html 9KB
dnd.html 8KB
tmpFrameset.html 2KB
ciframe.html 2KB
mathjax.html 1KB
preview.html 249B
login.jpg 64KB
item2.jpg 58KB
item3.jpg 38KB
item.jpg 30KB
sample.jpg 18KB
ckeditor.js 547KB
TeX-AMS_HTML.js 213KB
swiper.jquery.js 201KB
all.fine-uploader.min.js 196KB
ckplayer.js 190KB
plugin.js 134KB
jquery.min.js 90KB
swiper.jquery.min.js 85KB
jax.js 79KB
MathJax.js 62KB
bootstrap-datetimepicker.js 54KB
wsc.js 47KB
fontdata.js 43KB
bootstrap.min.js 36KB
jquery-ui.min.js 36KB
bootstrap-treeview.js 33KB
plugin.js 30KB
plugin.js 28KB
fastclick.js 25KB
default.js 24KB
mplugin.js 24KB
mplugin.4.2.js 22KB
km.js 21KB
image.js 21KB
ka.js 20KB
gu.js 19KB
jquery.tmpl.js 19KB
th.js 18KB
el.js 18KB
ru.js 17KB
uk.js 17KB
ug.js 16KB
ku.js 16KB
plugin.js 16KB
options.js 16KB
si.js 16KB
jquery.media.js 16KB
bg.js 16KB
hi.js 15KB
bn.js 15KB
fa.js 15KB
mn.js 14KB
plugin.js 14KB
tt.js 14KB
共 1507 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16
资源评论
- weixin_418685212021-04-21没啥大的用处
weixin_39840387
- 粉丝: 791
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 微信小程序源码-警务辅助人员管理系统-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-警务辅助人员管理系统-服务端-毕业设计源码-期末大作业.zip
- Java项目总结怎么写
- 微信小程序源码-乐室预约小程序-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-考研论坛设计-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-乐室预约小程序-服务端-毕业设计源码-期末大作业.zip
- 微信小程序源码-马拉松报名系统微信小程序-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-培训咨询微信小程序-服务端-毕业设计源码-期末大作业.zip
- 微信小程序源码-马拉松报名系统微信小程序-服务端-毕业设计源码-期末大作业.zip
- 微信小程序源码-汽车预约维修系统-服务端-毕业设计源码-期末大作业.zip
- 微信小程序源码-培训咨询微信小程序-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-汽车预约维修系统-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-四六级词汇-微信端-毕业设计源码-期末大作业.zip
- 微信小程序源码-四六级词汇-服务端-毕业设计源码-期末大作业.zip
- 微信小程序源码-私家车位共享系统演示录像-毕业设计源码-期末大作业.zip
- 微信小程序源码-停车场微信小程序的设计与实现-微信端-毕业设计源码-期末大作业.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功