资源简介
代码片段和文件信息
/***********************************************************************
Copyright 2006-2007 Ma Bingyao
These sources is free software. Redistributions of source code must
retain the above copyright notice. Redistributions in binary form
must reproduce the above copyright notice. You can redistribute it
freely. You can use it with any free or commercial software.
These sources 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.
You may contact the author by:
e-mail: andot@coolcode.cn
*************************************************************************/
#ifdef HAVE_CONFIG_H
#include “config.h“
#endif
#include “php.h“
#if HAVE_XXTEA
#include “php_xxtea.h“
#include “ext/standard/info.h“ /* for phpinfo() functions */
#include “xxtea.h“
/* compiled function list so Zend knows what‘s in this module */
zend_function_entry xxtea_functions[] =
{
ZEND_FE(xxtea_encrypt NULL)
ZEND_FE(xxtea_decrypt NULL)
ZEND_FE(xxtea_info NULL)
{NULL NULL NULL}
};
/* compiled module information */
zend_module_entry xxtea_module_entry =
{
STANDARD_MODULE_HEADER
XXTEA_MODULE_NAME
xxtea_functions
ZEND_MINIT(xxtea)
ZEND_MSHUTDOWN(xxtea)
NULL
NULL
ZEND_MINFO(xxtea)
XXTEA_VERSION
STANDARD_MODULE_PROPERTIES
};
/* implement standard “stub“ routine to introduce ourselves to Zend */
#if defined(COMPILE_DL_XXTEA)
ZEND_GET_MODULE(xxtea)
#endif
static xxtea_long *xxtea_to_long_array(unsigned char *data xxtea_long len int include_length xxtea_long *ret_len) {
xxtea_long i n *result;
n = len >> 2;
n = (((len & 3) == 0) ? n : n + 1);
if (include_length) {
result = (xxtea_long *)emalloc((n + 1) << 2);
result[n] = len;
*ret_len = n + 1;
} else {
result = (xxtea_long *)emalloc(n << 2);
*ret_len = n;
}
memset(result 0 n << 2);
for (i = 0; i < len; i++) {
result[i >> 2] |= (xxtea_long)data[i] << ((i & 3) << 3);
}
return result;
}
static unsigned char *xxtea_to_byte_array(xxtea_long *data xxtea_long len int include_length xxtea_long *ret_len) {
xxtea_long i n m;
unsigned char *result;
n = len << 2;
if (include_length) {
m = data[len - 1];
if ((m < n - 7) || (m > n - 4)) return NULL;
n = m;
}
result = (unsigned char *)emalloc(n + 1);
for (i = 0; i < n; i++) {
result[i] = (unsigned char)((data[i >> 2] >> ((i & 3) << 3)) & 0xff);
}
result[n] = ‘\0‘;
*ret_len = n;
return result;
}
static unsigned char *php_xxtea_encrypt(unsigned char *data xxtea_long len unsigned char *key xxtea_long *ret_len) {
unsigned char *result;
xxtea_long *v *k v_len k_len;
v = xxtea_to_long_array(data len 1 &v_len);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 211 2018-03-29 15:51 .htaccess
文件 9662 2018-03-29 15:51 favicon.ico
文件 955 2018-03-29 15:53 index.php
文件 50 2018-03-29 15:51 robots.txt
目录 0 2018-03-29 16:02 Application\
目录 0 2018-03-29 16:02 Application\Admin\
目录 0 2018-03-29 16:02 Application\Admin\Common\
文件 1 2016-06-27 22:26 Application\Admin\Common\index.html
目录 0 2018-03-29 16:02 Application\Admin\Conf\
文件 483 2017-03-26 19:42 Application\Admin\Conf\config.php
文件 1 2016-06-27 22:26 Application\Admin\Conf\index.html
目录 0 2018-03-29 16:02 Application\Admin\Controller\
文件 1404 2017-10-22 19:38 Application\Admin\Controller\AdminController.class.php
文件 27254 2017-10-22 19:37 Application\Admin\Controller\ExtendController.class.php
文件 1 2016-06-27 22:26 Application\Admin\Controller\index.html
文件 48365 2017-12-16 10:20 Application\Admin\Controller\IndexController.class.php
文件 1 2016-06-27 22:26 Application\Admin\index.html
目录 0 2018-03-29 16:02 Application\Admin\Model\
文件 1 2016-06-27 22:26 Application\Admin\Model\index.html
目录 0 2018-03-29 16:02 Application\Admin\View\
目录 0 2018-03-29 16:02 Application\Admin\View\Extend\
文件 3517 2017-08-03 15:24 Application\Admin\View\Extend\advertise.html
文件 3487 2017-08-01 11:16 Application\Admin\View\Extend\cache.html
文件 9273 2017-08-28 10:23 Application\Admin\View\Extend\category.html
文件 3892 2017-05-05 18:08 Application\Admin\View\Extend\chapter.html
文件 12654 2017-08-01 11:21 Application\Admin\View\Extend\dataarea.html
文件 1002 2017-08-26 10:56 Application\Admin\View\Extend\pickers.html
文件 1193 2017-05-30 00:40 Application\Admin\View\Extend\searchlog.html
文件 4980 2017-06-04 14:59 Application\Admin\View\Extend\seowords.html
文件 3369 2017-05-30 00:43 Application\Admin\View\Extend\spider.html
文件 2072 2017-05-05 18:13 Application\Admin\View\Extend\tags.html
............此处省略1098个文件信息
- 上一篇:PHP在线人数统计
- 下一篇:苹果cms-电影网站源码
相关资源
- PHP超精简全站自适应小说源码
- php小说采集demo
- 杰奇小说2.3清新风格网站整站源码(
- jieqicms1.8官方2015最新原版授权破解+杰
- 小说网站源码PHP
- 价值数万PHP深度二次开发小说站源码
- 2019漫画小说分销源码,亲测可用刚刚
- 2019微信小说分销带漫画、听说系统源
- 杰奇笔趣阁 小说网站源码 自动采集送
- 小说系统隆重推出!24小时全自动无人
- 狂雨小说 两套优化模板 一套采集规则
- 杰奇2.4版本网站最新小说源码+自动采
- ThinkPHP5.1开发的狂雨小说cms v1.0.6系统
- 小说网站带自动采集
- ptcms搭建可听书可的小说站(PT小说聚
- 书城 源码以及安装数据库脚本(上传
- 《娴娴小说》网站源码自动采集小说
- php制作的小说网站源码
- 小说网站源码自动采集
评论
共有 条评论